mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
* Include test for issue #849 from nativescirpt-angular * Fix tslint
This commit is contained in:
5
tests/app/ui/action-bar/ActionBar_NumberAsTitle.ts
Normal file
5
tests/app/ui/action-bar/ActionBar_NumberAsTitle.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import * as frame from "tns-core-modules/ui/frame";
|
||||||
|
|
||||||
|
export function buttonTap(args) {
|
||||||
|
frame.topmost().goBack();
|
||||||
|
}
|
9
tests/app/ui/action-bar/ActionBar_NumberAsTitle.xml
Normal file
9
tests/app/ui/action-bar/ActionBar_NumberAsTitle.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<Page>
|
||||||
|
<Page.actionBar>
|
||||||
|
<ActionBar title="123">
|
||||||
|
</ActionBar>
|
||||||
|
</Page.actionBar>
|
||||||
|
<StackLayout>
|
||||||
|
<Button text="Click me" />
|
||||||
|
</StackLayout>
|
||||||
|
</Page>
|
@ -221,6 +221,19 @@ export function test_Setting_ActionItemsWithNumberAsText_doesnt_thrown() {
|
|||||||
TKUnit.assert(!gotException, "Expected: false, Actual: " + gotException);
|
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() {
|
export function test_CanDefineEverythingAsContentBetweenTheTwoTags() {
|
||||||
|
|
||||||
helper.navigateToModuleAndRunTest("ui/action-bar/ActionBar_BetweenTags", undefined, (page: Page) => {
|
helper.navigateToModuleAndRunTest("ui/action-bar/ActionBar_BetweenTags", undefined, (page: Page) => {
|
||||||
|
Reference in New Issue
Block a user