mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
Update CSS tests to revision 4e1aa4f3dcbff1abd654c63d0f677379c1e2775f
This commit is contained in:
@@ -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 + ";");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user