aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-grid-1_dev/xhtml1print/support/testing-utils.js
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2015-11-30 18:14:56 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2015-11-30 18:14:56 +0530
commit78a298bdba64829947d9ef106d65ccd2e9ce6ed5 (patch)
tree613a534cce47e348811e3e4d7056724aa52db8da /tests/wpt/css-tests/css-grid-1_dev/xhtml1print/support/testing-utils.js
parent0f7204936394fe104431f01c68ffa17829426cba (diff)
parent3bbee99cdb3bbcc322aedc5579c866deb8769188 (diff)
downloadservo-78a298bdba64829947d9ef106d65ccd2e9ce6ed5.tar.gz
servo-78a298bdba64829947d9ef106d65ccd2e9ce6ed5.zip
Auto merge of #8748 - Ms2ger:update-tests, r=Ms2ger
Update tests. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8748) <!-- Reviewable:end -->
Diffstat (limited to 'tests/wpt/css-tests/css-grid-1_dev/xhtml1print/support/testing-utils.js')
-rw-r--r--tests/wpt/css-tests/css-grid-1_dev/xhtml1print/support/testing-utils.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/wpt/css-tests/css-grid-1_dev/xhtml1print/support/testing-utils.js b/tests/wpt/css-tests/css-grid-1_dev/xhtml1print/support/testing-utils.js
index c4ceec3a805..202c865b15e 100644
--- a/tests/wpt/css-tests/css-grid-1_dev/xhtml1print/support/testing-utils.js
+++ b/tests/wpt/css-tests/css-grid-1_dev/xhtml1print/support/testing-utils.js
@@ -18,11 +18,15 @@ var TestingUtils = (function() {
}, "'" + gridId + "' with: grid-template-columns: " + columnsStyle + "; and grid-template-rows: " + rowsStyle + ";");
}
+ function checkGridTemplateAreas(element, value) {
+ assert_in_array(getComputedStyle(element).gridTemplateAreas, value, "gridTemplateAreas");
+ }
+
function testGridTemplateAreas(gridId, style, value) {
test(function() {
var grid = document.getElementById(gridId);
grid.style.gridTemplateAreas = style;
- assert_equals(getComputedStyle(grid).gridTemplateAreas, value, "gridTemplateAreas");
+ checkGridTemplateAreas(grid, value);
}, "'" + gridId + "' with: grid-template-areas: " + style + ";");
}