@@ -32,41 +32,41 @@ export var test_backstackVisible = function() {
32
32
}
33
33
34
34
// Clearing the history messes up the tests app.
35
- export var test_ClearHistory = function ( ) {
36
- var pageFactory = function ( ) : pageModule . Page {
37
- return new pageModule . Page ( ) ;
38
- } ;
35
+ // export var test_ClearHistory = function () {
36
+ // var pageFactory = function(): pageModule.Page {
37
+ // return new pageModule.Page();
38
+ // };
39
39
40
- var mainTestPage = frame . topmost ( ) . currentPage ;
41
- var mainPageFactory = function ( ) : pageModule . Page {
42
- return mainTestPage ;
43
- } ;
40
+ // var mainTestPage = frame.topmost().currentPage;
41
+ // var mainPageFactory = function(): pageModule.Page {
42
+ // return mainTestPage;
43
+ // };
44
44
45
- var currentPage : pageModule . Page ;
45
+ // var currentPage: pageModule.Page;
46
46
47
- currentPage = frame . topmost ( ) . currentPage ;
48
- frame . topmost ( ) . navigate ( { create : pageFactory } ) ;
49
- TKUnit . waitUntilReady ( ( ) => { return frame . topmost ( ) . currentPage !== currentPage ; } ) ;
47
+ // currentPage = frame.topmost().currentPage;
48
+ // frame.topmost().navigate({ create: pageFactory });
49
+ // TKUnit.waitUntilReady(() => { return frame.topmost().currentPage !== currentPage; });
50
50
51
- currentPage = frame . topmost ( ) . currentPage ;
52
- frame . topmost ( ) . navigate ( { create : pageFactory } ) ;
53
- TKUnit . waitUntilReady ( ( ) => { return frame . topmost ( ) . currentPage !== currentPage ; } ) ;
51
+ // currentPage = frame.topmost().currentPage;
52
+ // frame.topmost().navigate({ create: pageFactory });
53
+ // TKUnit.waitUntilReady(() => { return frame.topmost().currentPage !== currentPage; });
54
54
55
- currentPage = frame . topmost ( ) . currentPage ;
56
- frame . topmost ( ) . navigate ( { create : pageFactory } ) ;
57
- TKUnit . waitUntilReady ( ( ) => { return frame . topmost ( ) . currentPage !== currentPage ; } ) ;
55
+ // currentPage = frame.topmost().currentPage;
56
+ // frame.topmost().navigate({ create: pageFactory });
57
+ // TKUnit.waitUntilReady(() => { return frame.topmost().currentPage !== currentPage; });
58
58
59
- TKUnit . assert ( frame . topmost ( ) . canGoBack ( ) , "Frame should be able to go back." ) ;
60
- TKUnit . assert ( frame . topmost ( ) . backStack . length === 3 , "Back stack should have 3 entries." ) ;
59
+ // TKUnit.assert(frame.topmost().canGoBack(), "Frame should be able to go back.");
60
+ // TKUnit.assert(frame.topmost().backStack.length === 3, "Back stack should have 3 entries.");
61
61
62
- // Navigate with clear history.
63
- currentPage = frame . topmost ( ) . currentPage ;
64
- frame . topmost ( ) . navigate ( { create : pageFactory , clearHistory : true } ) ;
65
- TKUnit . waitUntilReady ( ( ) => { return frame . topmost ( ) . currentPage !== currentPage ; } ) ;
62
+ // // Navigate with clear history.
63
+ // currentPage = frame.topmost().currentPage;
64
+ // frame.topmost().navigate({ create: pageFactory, clearHistory: true });
65
+ // TKUnit.waitUntilReady(() => { return frame.topmost().currentPage !== currentPage; });
66
66
67
- TKUnit . assert ( ! frame . topmost ( ) . canGoBack ( ) , "Frame should NOT be able to go back." ) ;
68
- TKUnit . assert ( frame . topmost ( ) . backStack . length === 0 , "Back stack should have 0 entries." ) ;
67
+ // TKUnit.assert(!frame.topmost().canGoBack(), "Frame should NOT be able to go back.");
68
+ // TKUnit.assert(frame.topmost().backStack.length === 0, "Back stack should have 0 entries.");
69
69
70
- frame . topmost ( ) . navigate ( { create : mainPageFactory } ) ;
71
- TKUnit . waitUntilReady ( ( ) => { return frame . topmost ( ) . currentPage === mainTestPage ; } ) ;
72
- }
70
+ // frame.topmost().navigate({ create: mainPageFactory });
71
+ // TKUnit.waitUntilReady(() => { return frame.topmost().currentPage === mainTestPage; });
72
+ // }
0 commit comments