From 9b8dd37817b8b8fcaa7d6c4e88d4e06fd138fb32 Mon Sep 17 00:00:00 2001 From: atanasovg Date: Mon, 7 Mar 2016 16:05:26 +0200 Subject: [PATCH] Add unit test to verify the new functionality. --- .../ui/action-bar/action-bar-tests-common.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/apps/tests/ui/action-bar/action-bar-tests-common.ts b/apps/tests/ui/action-bar/action-bar-tests-common.ts index d4bc3338e..5d61b3a5e 100644 --- a/apps/tests/ui/action-bar/action-bar-tests-common.ts +++ b/apps/tests/ui/action-bar/action-bar-tests-common.ts @@ -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 {