Skip to content

Commit f735a65

Browse files
committed
Merge pull request #8 from NativeScript/feature/run-test-after-navigation
Run test on navigatedTo event - after the navigation is finished.
2 parents 2c99d78 + 3971011 commit f735a65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test-run-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import vmModule = require("./main-view-model");
22

3-
export function pageLoaded(args) {
3+
export function pageNavigatedTo(args) {
44
var page = args.object;
55
var broker = vmModule.mainViewModel;
66
page.bindingContext = broker;

test-run-page.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Page xmlns="http://www.nativescript.org/tns.xsd" loaded="pageLoaded">
1+
<Page xmlns="http://www.nativescript.org/tns.xsd" navigatedTo="pageNavigatedTo">
22
<GridLayout rows="*,auto,8*,auto,auto">
33
<GridLayout row="0" columns="*,auto,*" cssClass="title">
44
<Image src="~/tns_modules/nativescript-unit-test-runner/nativescript.png" stretch="aspectFill" col="1"/>

0 commit comments

Comments
 (0)