mirror of
https://github.com/servo/servo.git
synced 2025-08-26 07:38:21 +01:00
Update web-platform-tests to revision e1edaa3dd1bea4415ee88e042affee32028d7f1d
This commit is contained in:
parent
0bd2661492
commit
0cb6acf9a2
4828 changed files with 87680 additions and 41620 deletions
|
@ -49,7 +49,7 @@
|
|||
}, 'insertRule with no argument throws');
|
||||
|
||||
test(function() {
|
||||
assert_throws("IndexSizeError", function() {
|
||||
assert_throws_dom("IndexSizeError", function() {
|
||||
styleSheet.insertRule("#bar { margin: 10px; }", styleSheet.cssRules.length + 1)
|
||||
});
|
||||
}, 'insertRule with index greater than length throws');
|
||||
|
@ -69,7 +69,7 @@
|
|||
}, 'deleteRule with no argument throws');
|
||||
|
||||
test(function() {
|
||||
assert_throws("IndexSizeError", function() { emptyStyleSheet.deleteRule(0) });
|
||||
assert_throws_dom("IndexSizeError", function() { emptyStyleSheet.deleteRule(0) });
|
||||
}, 'deleteRule on empty style sheet throws');
|
||||
|
||||
test(function() {
|
||||
|
@ -79,7 +79,7 @@
|
|||
}, 'removeRule with no argument removes first rule');
|
||||
|
||||
test(function() {
|
||||
assert_throws("IndexSizeError", function() { emptyStyleSheet.removeRule(0) });
|
||||
assert_throws_dom("IndexSizeError", function() { emptyStyleSheet.removeRule(0) });
|
||||
}, 'removeRule on empty style sheet throws');
|
||||
|
||||
test(function() {
|
||||
|
@ -111,7 +111,7 @@
|
|||
}, 'addRule with no argument adds "undefined" selector');
|
||||
|
||||
test(function() {
|
||||
assert_throws("IndexSizeError", function() {
|
||||
assert_throws_dom("IndexSizeError", function() {
|
||||
styleSheet.addRule("#foo", "color: red", styleSheet.cssRules.length + 1);
|
||||
});
|
||||
}, 'addRule with index greater than length throws');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue