minor fix for page options helper

This commit is contained in:
Martin Yankov
2018-09-18 17:50:14 +03:00
parent 0ebeffd704
commit c3b864c26e

View File

@@ -99,12 +99,17 @@ export function buildUIAndRunTest<T extends View>(controlToTest: T, testFunction
newPage.css = options.pageCss; newPage.css = options.pageCss;
} }
newPage.actionBarHidden = true;
newPage.actionBar.flat = false;
if (options.actionBar) { if (options.actionBar) {
newPage.actionBar.title = "Test"; newPage.actionBarHidden = false;
newPage.actionBar.title = "Test ActionBar";
} }
if (options.actionBarFlat) { if (options.actionBarFlat) {
newPage.actionBar.title = "Test"; newPage.actionBarHidden = false;
newPage.actionBar.title = "Test ActionBar Flat";
newPage.actionBar.flat = true; newPage.actionBar.flat = true;
} }