Update CSS tests to revision 4e1aa4f3dcbff1abd654c63d0f677379c1e2775f

This commit is contained in:
Ms2ger 2015-11-30 10:16:54 +01:00
parent 0f72049363
commit 6bb495338b
1321 changed files with 34875 additions and 7209 deletions

View file

@ -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 + ";");
}