Merge pull request #1694 from NativeScript/atanasovg/fix-actionbar-id

[Android] Fix an issue with id not applied to ActionBar in XML
This commit is contained in:
Georgi Atanasov
2016-03-07 17:52:02 +02:00
4 changed files with 35 additions and 4 deletions

View File

@ -465,6 +465,25 @@ export function test_LoadedEventsOrder_WithoutPageContent() {
}
};
export function test_setId() {
var pageFactory = function (): PageModule.Page {
var page = new PageModule.Page();
page.actionBar.id = "myId";
return page;
};
try {
helper.navigate(pageFactory);
}
catch (e) {
TKUnit.assert(false, "Failed to apply property 'id' to actionBar before its nativeView is ready.");
}
finally {
helper.goBack();
}
};
export function createPageAndNavigate() {
var page: PageModule.Page;
var pageFactory = function (): PageModule.Page {