@@ -29,6 +29,7 @@ module.exports = function (appClient) {
2929 let textField4Type ;
3030 let textAlignment ;
3131 let configuration ;
32+ let configurationOld ;
3233 let currentScreenData ;
3334 let currentScreenDataUpdatedListener ;
3435 let defaultMainWindowCapability ;
@@ -56,14 +57,15 @@ module.exports = function (appClient) {
5657 textField4Type = SDL . rpc . enums . MetadataType . MEDIA_TITLE ;
5758 textAlignment = SDL . rpc . enums . TextAlignment . CENTERED ;
5859 configuration = new SDL . rpc . structs . TemplateConfiguration ( ) . setTemplate ( SDL . rpc . enums . PredefinedLayout . GRAPHIC_WITH_TEXT ) ;
60+ configurationOld = new SDL . rpc . structs . TemplateConfiguration ( ) . setTemplate ( SDL . rpc . enums . PredefinedLayout . TEXT_WITH_GRAPHIC ) ;
5961 currentScreenData = new SDL . manager . screen . _TextAndGraphicState ( ) ;
6062 currentScreenData . setTextField1 ( 'Old' ) ;
6163 currentScreenData . setTextField2 ( 'Text' ) ;
6264 currentScreenData . setTextField3 ( 'Not' ) ;
6365 currentScreenData . setTextField4 ( 'Important' ) ;
6466 currentScreenData . setPrimaryGraphic ( testArtwork1 ) ;
6567 currentScreenData . setSecondaryGraphic ( testArtwork2 ) ;
66- currentScreenData . setTemplateConfiguration ( configuration ) ;
68+ currentScreenData . setTemplateConfiguration ( configurationOld ) ;
6769 currentScreenDataUpdatedListener = ( asyncListener ) => {
6870 asyncListener ( ) . then ( ( ) => { } ) . catch ( ( ) => { } ) ;
6971 } ;
@@ -925,7 +927,6 @@ module.exports = function (appClient) {
925927 mediaTrackField , title , testArtwork1 , testArtwork2 , textAlignment , textField1Type , textField2Type , textField3Type , textField4Type , configuration ) ;
926928 textAndGraphicUpdateOperation = new SDL . manager . screen . _TextAndGraphicUpdateOperation ( lifecycleManager , fileManager , defaultMainWindowCapability , currentScreenData , textsAndGraphicsState , listener , currentScreenDataUpdatedListener ) ;
927929 await textAndGraphicUpdateOperation . _start ( ) ;
928- Validator . assertEquals ( textAndGraphicUpdateOperation . _getCurrentScreenData ( ) . getTemplateConfiguration ( ) . getParameters ( ) , configuration . getParameters ( ) ) ;
929930
930931 // Verifies that uploadArtworks does not get called because a sendShow failed with text and layout change
931932 Validator . assertTrue ( ! wasUploadArtworksCalled ) ;
0 commit comments