@@ -31,40 +31,40 @@ const pageTemplate = `
3131 </StackLayout>
3232 </Page>` ;
3333
34- export function test_onLiveSync_HmrContext_AppStyle_AppNewCss ( ) {
35- _test_onLiveSync_HmrContext_AppStyle ( appNewCssFileName ) ;
34+ export function test_onLiveSync_ModuleContext_AppStyle_AppNewCss ( ) {
35+ _test_onLiveSync_ModuleContext_AppStyle ( appNewCssFileName ) ;
3636}
3737
38- export function test_onLiveSync_HmrContext_AppStyle_AppNewScss ( ) {
39- _test_onLiveSync_HmrContext_AppStyle ( appNewScssFileName ) ;
38+ export function test_onLiveSync_ModuleContext_AppStyle_AppNewScss ( ) {
39+ _test_onLiveSync_ModuleContext_AppStyle ( appNewScssFileName ) ;
4040}
4141
42- export function test_onLiveSync_HmrContext_ContextUndefined ( ) {
43- _test_onLiveSync_HmrContext ( { type : undefined , module : undefined } ) ;
42+ export function test_onLiveSync_ModuleContext_ContextUndefined ( ) {
43+ _test_onLiveSync_ModuleContext ( { type : undefined , path : undefined } ) ;
4444}
4545
46- export function test_onLiveSync_HmrContext_ModuleUndefined ( ) {
47- _test_onLiveSync_HmrContext ( { type : "script" , module : undefined } ) ;
46+ export function test_onLiveSync_ModuleContext_ModuleUndefined ( ) {
47+ _test_onLiveSync_ModuleContext ( { type : "script" , path : undefined } ) ;
4848}
4949
50- export function test_onLiveSync_HmrContext_Script_AppJs ( ) {
51- _test_onLiveSync_HmrContext ( { type : "script" , module : appJsFileName } ) ;
50+ export function test_onLiveSync_ModuleContext_Script_AppJs ( ) {
51+ _test_onLiveSync_ModuleContext ( { type : "script" , path : appJsFileName } ) ;
5252}
5353
54- export function test_onLiveSync_HmrContext_Script_AppTs ( ) {
55- _test_onLiveSync_HmrContext ( { type : "script" , module : appTsFileName } ) ;
54+ export function test_onLiveSync_ModuleContext_Script_AppTs ( ) {
55+ _test_onLiveSync_ModuleContext ( { type : "script" , path : appTsFileName } ) ;
5656}
5757
58- export function test_onLiveSync_HmrContext_Style_MainPageCss ( ) {
59- _test_onLiveSync_HmrContext ( { type : "style" , module : mainPageCssFileName } ) ;
58+ export function test_onLiveSync_ModuleContext_Style_MainPageCss ( ) {
59+ _test_onLiveSync_ModuleContext ( { type : "style" , path : mainPageCssFileName } ) ;
6060}
6161
62- export function test_onLiveSync_HmrContext_Markup_MainPageHtml ( ) {
63- _test_onLiveSync_HmrContext ( { type : "markup" , module : mainPageHtmlFileName } ) ;
62+ export function test_onLiveSync_ModuleContext_Markup_MainPageHtml ( ) {
63+ _test_onLiveSync_ModuleContext ( { type : "markup" , path : mainPageHtmlFileName } ) ;
6464}
6565
66- export function test_onLiveSync_HmrContext_Markup_MainPageXml ( ) {
67- _test_onLiveSync_HmrContext ( { type : "markup" , module : mainPageXmlFileName } ) ;
66+ export function test_onLiveSync_ModuleContext_Markup_MainPageXml ( ) {
67+ _test_onLiveSync_ModuleContext ( { type : "markup" , path : mainPageXmlFileName } ) ;
6868}
6969
7070export function setUpModule ( ) {
@@ -76,15 +76,15 @@ export function tearDown() {
7676 app . setCssFileName ( appCssFileName ) ;
7777}
7878
79- function _test_onLiveSync_HmrContext_AppStyle ( styleFileName : string ) {
79+ function _test_onLiveSync_ModuleContext_AppStyle ( styleFileName : string ) {
8080 const pageBeforeNavigation = helper . getCurrentPage ( ) ;
8181
8282 const page = < Page > parse ( pageTemplate ) ;
8383 helper . navigateWithHistory ( ( ) => page ) ;
8484 app . setCssFileName ( styleFileName ) ;
8585
8686 const pageBeforeLiveSync = helper . getCurrentPage ( ) ;
87- global . __onLiveSync ( { type : "style" , module : styleFileName } ) ;
87+ global . __onLiveSync ( { type : "style" , path : styleFileName } ) ;
8888
8989 const pageAfterLiveSync = helper . getCurrentPage ( ) ;
9090 TKUnit . waitUntilReady ( ( ) => pageAfterLiveSync . getViewById ( "button" ) . style . color . toString ( ) === green . toString ( ) ) ;
@@ -101,10 +101,10 @@ function _test_onLiveSync_HmrContext_AppStyle(styleFileName: string) {
101101 TKUnit . assertTrue ( pageAfterNavigationBack . _cssState . isSelectorsLatestVersionApplied ( ) , "Latest selectors version is NOT applied!" ) ;
102102}
103103
104- function _test_onLiveSync_HmrContext ( context : { type , module } ) {
104+ function _test_onLiveSync_ModuleContext ( context : { type , path } ) {
105105 const page = < Page > parse ( pageTemplate ) ;
106106 helper . navigateWithHistory ( ( ) => page ) ;
107- global . __onLiveSync ( { type : context . type , module : context . module } ) ;
107+ global . __onLiveSync ( { type : context . type , path : context . path } ) ;
108108
109109 TKUnit . waitUntilReady ( ( ) => ! ! frame . topmost ( ) ) ;
110110 const topmostFrame = frame . topmost ( ) ;
0 commit comments