Lines Matching refs:prefix
5 function checkSubtreeExpectedValues(t, parent, prefix)
7 var checkedLayout = checkExpectedValues(t, parent, prefix);
9 checkedLayout |= checkSubtreeExpectedValues(t, node, prefix);
54 // Use "data-test" prefix if you need custom-named data elements.
61 function checkExpectedValues(t, node, prefix)
68 assert_tolerance(node.offsetWidth, expectedWidth, prefix + "width");
73 assert_tolerance(node.offsetHeight, expectedHeight, prefix + "height");
78 assert_tolerance(node.offsetLeft, expectedOffset, prefix + "offsetLeft");
83 assert_tolerance(node.offsetTop, expectedOffset, prefix + "offsetTop");
88 assert_tolerance(node.clientWidth, expectedWidth, prefix + "clientWidth");
93 assert_tolerance(node.clientHeight, expectedHeight, prefix + "clientHeight");
98 assert_tolerance(node.scrollWidth, expectedWidth, prefix + "scrollWidth");
103 assert_tolerance(node.scrollHeight, expectedHeight, prefix + "scrollHeight");
108 assert_tolerance(node.getBoundingClientRect().width, expectedWidth, prefix + "getBoundingClientRect().width");
113 assert_tolerance(node.getBoundingClientRect().height, expectedHeight, prefix + "getBoundingClientRect().height");
119 assert_tolerance(totalLeft, expectedOffset, prefix +
126 assert_tolerance(totalTop, expectedOffset, prefix +
133 assert_equals(actualDisplay, expectedDisplay, prefix + "display");
141 assert_equals(actualPaddingTop, expectedPaddingTop, prefix + "padding-top");
149 assert_equals(actualPaddingBottom, expectedPaddingBottom, prefix + "padding-bottom");
157 assert_equals(actualPaddingLeft, expectedPaddingLeft, prefix + "padding-left");
165 assert_equals(actualPaddingRight, expectedPaddingRight, prefix + "padding-right");
173 assert_equals(actualMarginTop, expectedMarginTop, prefix + "margin-top");
181 assert_equals(actualMarginBottom, expectedMarginBottom, prefix + "margin-bottom");
189 assert_equals(actualMarginLeft, expectedMarginLeft, prefix + "margin-left");
197 assert_equals(actualMarginRight, expectedMarginRight, prefix + "margin-right");
219 var prefix =
223 checkedLayout |= checkExpectedValues(t, node.parentNode, prefix);
224 checkedLayout |= checkSubtreeExpectedValues(t, node, prefix);