mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
Update CSS tests to revision 4e1aa4f3dcbff1abd654c63d0f677379c1e2775f
This commit is contained in:
parent
0f72049363
commit
6bb495338b
1321 changed files with 34875 additions and 7209 deletions
|
@ -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 + ";");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue