D | check-layout-th.js | 5 function checkSubtreeExpectedValues(t, parent, prefix) argument 7 var checkedLayout = checkExpectedValues(t, parent, prefix); 9 checkedLayout |= checkSubtreeExpectedValues(t, node, prefix); 23 if (isNaN(expected) || Math.abs(actual - expected) >= 1) { 28 function checkExpectedValues(t, node, prefix) argument 32 var expectedWidth = checkAttribute(output, node, "data-expected-width"); 34 assert_tolerance(node.offsetWidth, expectedWidth, prefix + "width"); 37 var expectedHeight = checkAttribute(output, node, "data-expected-height"); 39 assert_tolerance(node.offsetHeight, expectedHeight, prefix + "height"); 42 var expectedOffset = checkAttribute(output, node, "data-offset-x"); [all …]
|