mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user