change buildUI function to accept options param

This commit is contained in:
Martin Yankov
2018-09-18 11:25:28 +03:00
parent 1b66f99cc2
commit b741a676d5
3 changed files with 64 additions and 60 deletions

View File

@@ -1,6 +1,7 @@
import * as frame from "tns-core-modules/ui/frame";
import { ViewBase, View, unsetValue, isIOS } from "tns-core-modules/ui/core/view";
import { Page } from "tns-core-modules/ui/page";
import { TabView, TabViewItem } from "tns-core-modules/ui/tab-view";
import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout";
import { Button } from "tns-core-modules/ui/button";
import * as TKUnit from "../TKUnit";
@@ -78,12 +79,15 @@ export function do_PageTest_WithStackLayout_AndButton(test: (views: [Page, Stack
newPage.content = null;
}
//export function buildUIAndRunTest(controlToTest, testFunction, pageCss?, testDelay?) {
export function buildUIAndRunTest<T extends View>(controlToTest: T, testFunction: (views: [T, Page]) => void, pageCss?) {
//export function buildUIAndRunTest(controlToTest, testFunction, options) {
export function buildUIAndRunTest<T extends View>(controlToTest: T, testFunction: (views: [T, Page]) => void, options?: {pageCss}) {
clearPage();
let newPage = getCurrentPage();
newPage.css = pageCss;
if (options) {
newPage.css = options.pageCss;
}
newPage.content = controlToTest;
testFunction([controlToTest, newPage]);

View File

@@ -364,7 +364,7 @@ export const test_composite_selector_type_and_class = function () {
TKUnit.assert(lblWithClass.style.color === undefined, "lblWithClass color should not have a value");
}
helper.buildUIAndRunTest(testStack, testFunc, testCss);
helper.buildUIAndRunTest(testStack, testFunc, { pageCss: testCss });
}
export const test_composite_selector_type_class_state = function () {
@@ -394,7 +394,7 @@ export const test_composite_selector_type_class_state = function () {
TKUnit.assertNull(lblWithClass.style.color, "Color should not have a value");
}
helper.buildUIAndRunTest(testStack, testFunc, testCss);
helper.buildUIAndRunTest(testStack, testFunc, { pageCss: testCss });
}
export const test_style_is_applied_when_control_is_added_after_load = function () {
@@ -433,7 +433,7 @@ export function test_styles_are_updated_when_cssClass_is_set() {
helper.assertViewBackgroundColor(btn2, "#111111");
};
helper.buildUIAndRunTest(testStack, testFunc, changeIdOrClassTestCss);
helper.buildUIAndRunTest(testStack, testFunc, { pageCss: changeIdOrClassTestCss });
}
export function test_styles_are_updated_when_cssClass_is_changed() {
@@ -454,7 +454,7 @@ export function test_styles_are_updated_when_cssClass_is_changed() {
helper.assertViewBackgroundColor(btn2, "#111111");
};
helper.buildUIAndRunTest(testStack, testFunc, changeIdOrClassTestCss);
helper.buildUIAndRunTest(testStack, testFunc, { pageCss: changeIdOrClassTestCss });
}
export function test_styles_are_updated_when_cssClass_is_cleared() {
@@ -475,7 +475,7 @@ export function test_styles_are_updated_when_cssClass_is_cleared() {
helper.assertViewBackgroundColor(btn2, "#111111");
};
helper.buildUIAndRunTest(testStack, testFunc, changeIdOrClassTestCss);
helper.buildUIAndRunTest(testStack, testFunc, { pageCss: changeIdOrClassTestCss });
}
export function test_styles_are_updated_when_id_is_set() {
@@ -495,7 +495,7 @@ export function test_styles_are_updated_when_id_is_set() {
helper.assertViewBackgroundColor(btn2, "#111111");
};
helper.buildUIAndRunTest(testStack, testFunc, changeIdOrClassTestCss);
helper.buildUIAndRunTest(testStack, testFunc, { pageCss: changeIdOrClassTestCss });
}
export function test_styles_are_updated_when_id_is_changed() {
@@ -516,7 +516,7 @@ export function test_styles_are_updated_when_id_is_changed() {
helper.assertViewBackgroundColor(btn2, "#111111");
};
helper.buildUIAndRunTest(testStack, testFunc, changeIdOrClassTestCss);
helper.buildUIAndRunTest(testStack, testFunc, { pageCss: changeIdOrClassTestCss });
}
export function test_styles_are_updated_when_id_is_cleared() {
@@ -537,7 +537,7 @@ export function test_styles_are_updated_when_id_is_cleared() {
helper.assertViewBackgroundColor(btn2, "#111111");
};
helper.buildUIAndRunTest(testStack, testFunc, changeIdOrClassTestCss);
helper.buildUIAndRunTest(testStack, testFunc, { pageCss: changeIdOrClassTestCss });
}
const typeSelector = "button { color: blue } ";
@@ -698,7 +698,7 @@ export function test_set_invalid_CSS_values_dont_cause_crash() {
helper.buildUIAndRunTest(testButton, (views: Array<viewModule.View>) => {
TKUnit.assertEqual(30, testButton.style.fontSize);
}, invalidCSS);
}, { pageCss: invalidCSS });
}
// Check Mixed, Upper and lower case properties
@@ -717,7 +717,7 @@ export function test_set_mixed_CSS_cases_works() {
TKUnit.assertEqual(30, testButton.style.fontSize);
helper.assertViewBackgroundColor(testButton, "#FF0000");
helper.assertViewColor(testButton, "#0000FF");
}, casedCSS);
}, { pageCss: casedCSS });
}
export function test_basic_hierarchical_selectors() {
@@ -742,7 +742,7 @@ export function test_basic_hierarchical_selectors() {
helper.assertViewBackgroundColor(stack.getViewById("testButton2"), "#FF0000");
}
helper.buildUIAndRunTest(stack, testFunc, testCss);
helper.buildUIAndRunTest(stack, testFunc, { pageCss: testCss });
}
export function test_basic_hierarchical_direct_child_selectors() {
@@ -768,7 +768,7 @@ export function test_basic_hierarchical_direct_child_selectors() {
helper.assertViewBackgroundColor(stack.getViewById("testButton2"), "#00FF00");
}
helper.buildUIAndRunTest(stack, testFunc, testCss);
helper.buildUIAndRunTest(stack, testFunc, { pageCss: testCss });
}
export function test_basic_hierarchical_direct_child_more_levels_selectors() {
@@ -794,7 +794,7 @@ export function test_basic_hierarchical_direct_child_more_levels_selectors() {
helper.assertViewBackgroundColor(stack.getViewById("testButton2"), "#FF0000");
}
helper.buildUIAndRunTest(stack, testFunc, testCss);
helper.buildUIAndRunTest(stack, testFunc, { pageCss: testCss });
}
export function test_hierarchical_direct_child_more_levels_diff_selector_types() {
@@ -822,7 +822,7 @@ export function test_hierarchical_direct_child_more_levels_diff_selector_types()
helper.assertViewBackgroundColor(stack.getViewById("testButton2"), "#FF0000");
}
helper.buildUIAndRunTest(stack, testFunc, testCss);
helper.buildUIAndRunTest(stack, testFunc, { pageCss: testCss });
}
export function test_hierarchical_direct_child_more_levels_diff_selector_types2() {
@@ -851,7 +851,7 @@ export function test_hierarchical_direct_child_more_levels_diff_selector_types2(
helper.assertViewBackgroundColor(stack.getViewById("testButton2"), "#FF0000");
}
helper.buildUIAndRunTest(stack, testFunc, testCss);
helper.buildUIAndRunTest(stack, testFunc, { pageCss: testCss });
}
export function test_hierarchical_direct_child_more_levels_diff_selector_types_invalid() {
@@ -880,7 +880,7 @@ export function test_hierarchical_direct_child_more_levels_diff_selector_types_i
helper.assertViewBackgroundColor(stack.getViewById("testButton2"), "#00FF00");
}
helper.buildUIAndRunTest(stack, testFunc, testCss);
helper.buildUIAndRunTest(stack, testFunc, { pageCss: testCss });
}
export function test_hierarchical_direct_child_more_levels_diff_selector_types_invalid_middle() {
@@ -909,7 +909,7 @@ export function test_hierarchical_direct_child_more_levels_diff_selector_types_i
helper.assertViewBackgroundColor(stack.getViewById("testButton2"), "#00FF00");
}
helper.buildUIAndRunTest(stack, testFunc, testCss);
helper.buildUIAndRunTest(stack, testFunc, { pageCss: testCss });
}
export function test_type_attr_selector() {
@@ -921,7 +921,7 @@ export function test_type_attr_selector() {
let testFunc = function (views: Array<viewModule.View>) {
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_class_attr_selector() {
@@ -934,7 +934,7 @@ export function test_class_attr_selector() {
let testFunc = function (views: Array<viewModule.View>) {
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_id_attr_selector() {
@@ -947,7 +947,7 @@ export function test_id_attr_selector() {
let testFunc = function (views: Array<viewModule.View>) {
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_type_attr_value_selector() {
@@ -959,7 +959,7 @@ export function test_type_attr_value_selector() {
let testFunc = function (views: Array<viewModule.View>) {
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_type_attr_invalid_value_selector() {
@@ -972,7 +972,7 @@ export function test_type_attr_invalid_value_selector() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_tilde_attr_selector_correct_syntax() {
@@ -985,7 +985,7 @@ export function test_tilde_attr_selector_correct_syntax() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_tilde_attr_selector_correct_syntax1() {
@@ -998,7 +998,7 @@ export function test_tilde_attr_selector_correct_syntax1() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_tilde_attr_selector_correct_syntax2() {
@@ -1011,7 +1011,7 @@ export function test_tilde_attr_selector_correct_syntax2() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_tilde_attr_selector_incorrect_syntax() {
@@ -1024,7 +1024,7 @@ export function test_tilde_attr_selector_incorrect_syntax() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_tilde_attr_selector_incorrect_syntax1() {
@@ -1037,7 +1037,7 @@ export function test_tilde_attr_selector_incorrect_syntax1() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_tilde_attr_selector_incorrect_syntax2() {
@@ -1050,7 +1050,7 @@ export function test_tilde_attr_selector_incorrect_syntax2() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_pipe_attr_selector_correct_syntax() {
@@ -1063,7 +1063,7 @@ export function test_pipe_attr_selector_correct_syntax() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_pipe_attr_selector_correct_syntax1() {
@@ -1076,7 +1076,7 @@ export function test_pipe_attr_selector_correct_syntax1() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_pipe_attr_selector_incorrect_syntax() {
@@ -1089,7 +1089,7 @@ export function test_pipe_attr_selector_incorrect_syntax() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_pipe_attr_selector_incorrect_syntax1() {
@@ -1102,7 +1102,7 @@ export function test_pipe_attr_selector_incorrect_syntax1() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_pipe_attr_selector_incorrect_syntax2() {
@@ -1115,7 +1115,7 @@ export function test_pipe_attr_selector_incorrect_syntax2() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_power_attr_selector_correct_syntax() {
@@ -1128,7 +1128,7 @@ export function test_power_attr_selector_correct_syntax() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_power_attr_selector_correct_syntax1() {
@@ -1141,7 +1141,7 @@ export function test_power_attr_selector_correct_syntax1() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_power_attr_selector_correct_synta2() {
@@ -1154,7 +1154,7 @@ export function test_power_attr_selector_correct_synta2() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_power_attr_selector_incorrect_syntax() {
@@ -1167,7 +1167,7 @@ export function test_power_attr_selector_incorrect_syntax() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_power_attr_selector_incorrect_syntax1() {
@@ -1180,7 +1180,7 @@ export function test_power_attr_selector_incorrect_syntax1() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_dollar_attr_selector_correct_syntax() {
@@ -1193,7 +1193,7 @@ export function test_dollar_attr_selector_correct_syntax() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_dollar_attr_selector_correct_syntax1() {
@@ -1206,7 +1206,7 @@ export function test_dollar_attr_selector_correct_syntax1() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_dollar_attr_selector_correct_syntax2() {
@@ -1219,7 +1219,7 @@ export function test_dollar_attr_selector_correct_syntax2() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_dollar_attr_selector_incorrect_syntax() {
@@ -1232,7 +1232,7 @@ export function test_dollar_attr_selector_incorrect_syntax() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_dollar_attr_selector_incorrect_syntax1() {
@@ -1245,7 +1245,7 @@ export function test_dollar_attr_selector_incorrect_syntax1() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_dollar_attr_selector_incorrect_syntax2() {
@@ -1258,7 +1258,7 @@ export function test_dollar_attr_selector_incorrect_syntax2() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_star_attr_selector_correct_syntax() {
@@ -1271,7 +1271,7 @@ export function test_star_attr_selector_correct_syntax() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_star_attr_selector_correct_syntax1() {
@@ -1284,7 +1284,7 @@ export function test_star_attr_selector_correct_syntax1() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_star_attr_selector_correct_syntax2() {
@@ -1297,7 +1297,7 @@ export function test_star_attr_selector_correct_syntax2() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_star_attr_selector_correct_syntax3() {
@@ -1310,7 +1310,7 @@ export function test_star_attr_selector_correct_syntax3() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_star_attr_selector_correct_syntax4() {
@@ -1323,7 +1323,7 @@ export function test_star_attr_selector_correct_syntax4() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_star_attr_selector_correct_syntax5() {
@@ -1336,7 +1336,7 @@ export function test_star_attr_selector_correct_syntax5() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#FF0000");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_star_attr_selector_incorrect_syntax() {
@@ -1349,7 +1349,7 @@ export function test_star_attr_selector_incorrect_syntax() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_alone_attr_selector() {
@@ -1362,7 +1362,7 @@ export function test_alone_attr_selector() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_UsingSameSelectors_ShouldApplyLatest() {
@@ -1375,7 +1375,7 @@ export function test_UsingSameSelectors_ShouldApplyLatest() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_UsingSameSelectorsWithSpecific_ShouldApplyLatest() {
@@ -1388,7 +1388,7 @@ export function test_UsingSameSelectorsWithSpecific_ShouldApplyLatest() {
// style from correct type css should be applied
helper.assertViewBackgroundColor(testButton, "#00FF00");
}
helper.buildUIAndRunTest(testButton, testFunc, testCss);
helper.buildUIAndRunTest(testButton, testFunc, { pageCss: testCss });
}
export function test_CascadingClassNamesAppliesAfterPageLoad() {

View File

@@ -495,7 +495,7 @@ export function test_NativeSetter_called_only_once_with_cssValue() {
TKUnit.assertEqual(testView.cssPropNativeValue, "testCssValue", "Native value");
TKUnit.assertEqual(testView.cssAnimPropNativeValue, "testCssAnimValue", "Native value");
TKUnit.assertEqual(testView.viewPropNativeValue, "testViewValue", "Native value");
}, pageCSS);
}, { pageCss: pageCSS });
};
export function test_NativeSetter_called_only_once_with_cssValue_and_localValue() {
@@ -521,7 +521,7 @@ export function test_NativeSetter_called_only_once_with_cssValue_and_localValue(
TKUnit.assertEqual(testView.cssAnimPropNativeValue, "testCssAnimationValueLocal", "Native value");
// View property set from CSS sets local value
TKUnit.assertEqual(testView.viewPropNativeValue, "testViewValueCSS", "Native value");
}, pageCSS);
}, { pageCss: pageCSS });
};
export function test_NativeSetter_called_only_once_with_multiple_sets() {
@@ -971,7 +971,7 @@ export function testBackgroundShorthand_With_EmptyBorder() {
helper.buildUIAndRunTest(lbl, (views: Array<View>) => {
helper.waitUntilLayoutReady(lbl);
}, css);
}, { pageCss: css });
};
export function test_automation_text_default_value() {