Include test for issue #849 from nativescirpt-angular (#4421)

* Include test for issue #849 from nativescirpt-angular

* Fix tslint
This commit is contained in:
SvetoslavTsenov
2017-06-21 16:49:22 +03:00
committed by GitHub
parent 30d4e93e3a
commit 213722fd81
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,5 @@
import * as frame from "tns-core-modules/ui/frame";
export function buttonTap(args) {
frame.topmost().goBack();
}

View File

@ -0,0 +1,9 @@
<Page>
<Page.actionBar>
<ActionBar title="123">
</ActionBar>
</Page.actionBar>
<StackLayout>
<Button text="Click me" />
</StackLayout>
</Page>

View File

@ -221,6 +221,19 @@ export function test_Setting_ActionItemsWithNumberAsText_doesnt_thrown() {
TKUnit.assert(!gotException, "Expected: false, Actual: " + gotException);
}
export function test_ActionBar_set_title_as_number_doesnt_thrown() {
let gotException = false;
try {
helper.navigateToModule("ui/action-bar/ActionBar_NumberAsTitle");
}
catch (e) {
gotException = true;
}
TKUnit.assert(!gotException, "Expected: false, Actual: " + gotException);
};
export function test_CanDefineEverythingAsContentBetweenTheTwoTags() {
helper.navigateToModuleAndRunTest("ui/action-bar/ActionBar_BetweenTags", undefined, (page: Page) => {