mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -140,7 +140,7 @@
|
|||
caption.appendChild(table5)
|
||||
|
||||
// Node cannot be inserted at the specified point in the hierarchy
|
||||
assert_throws("HierarchyRequestError", function() {
|
||||
assert_throws_dom("HierarchyRequestError", function() {
|
||||
table5.caption = caption;
|
||||
});
|
||||
|
||||
|
@ -173,7 +173,7 @@
|
|||
test(function() {
|
||||
var table8 = document.createElement("table");
|
||||
var caption = document.createElement("captİon");
|
||||
assert_throws(new TypeError(), function() {
|
||||
assert_throws_js(TypeError, function() {
|
||||
table8.caption = caption;
|
||||
});
|
||||
}, "Assigning a non-caption to table.caption")
|
||||
|
@ -181,7 +181,7 @@
|
|||
test(function() {
|
||||
var table9 = document.createElement("table");
|
||||
var caption = document.createElementNS("http://www.example.com", "caption");
|
||||
assert_throws(new TypeError(), function() {
|
||||
assert_throws_js(TypeError, function() {
|
||||
table9.caption = caption;
|
||||
});
|
||||
}, "Assigning a foreign caption to table.caption")
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
<script>
|
||||
test(function() {
|
||||
var table = document.getElementById("test").getElementsByTagName("table")[0];
|
||||
assert_throws("INDEX_SIZE_ERR", function() {
|
||||
assert_throws_dom("INDEX_SIZE_ERR", function() {
|
||||
table.insertRow(-2);
|
||||
})
|
||||
assert_throws("INDEX_SIZE_ERR", function() {
|
||||
assert_throws_dom("INDEX_SIZE_ERR", function() {
|
||||
table.insertRow(2);
|
||||
})
|
||||
});
|
||||
|
|
|
@ -25,12 +25,12 @@
|
|||
var el = document.getElementById('element');
|
||||
|
||||
test(function() {
|
||||
assert_throws("IndexSizeError", function() {
|
||||
assert_throws_dom("IndexSizeError", function() {
|
||||
el.deleteRow(-2)
|
||||
})
|
||||
}, 'deleteRow function invalid argument');
|
||||
test(function() {
|
||||
assert_throws("IndexSizeError", function() {
|
||||
assert_throws_dom("IndexSizeError", function() {
|
||||
el.deleteRow(el.rows.length)
|
||||
})
|
||||
}, 'deleteRow function invalid argument bis');
|
||||
|
@ -57,7 +57,7 @@ test(function() {
|
|||
|
||||
test(function() {
|
||||
assert_equals(el.rows.length, 0);
|
||||
assert_throws("IndexSizeError", function() {
|
||||
assert_throws_dom("IndexSizeError", function() {
|
||||
el.deleteRow(0);
|
||||
});
|
||||
}, 'deleteRow(0) with no rows');
|
||||
|
|
|
@ -46,11 +46,11 @@ test(function() {
|
|||
assert_equals(t.tFoot.previousSibling, tbody2);
|
||||
assert_equals(t.tFoot.nextSibling, null);
|
||||
|
||||
assert_throws(new TypeError(), function(){
|
||||
assert_throws_js(TypeError, function(){
|
||||
t.tFoot = document.createElement("div");
|
||||
});
|
||||
|
||||
assert_throws("HierarchyRequestError", function(){
|
||||
assert_throws_dom("HierarchyRequestError", function(){
|
||||
t.tFoot = document.createElement("thead");
|
||||
});
|
||||
})
|
||||
|
|
|
@ -45,11 +45,11 @@ test(function() {
|
|||
assert_equals(t.tHead.previousSibling, tcaption);
|
||||
assert_equals(t.tHead.nextSibling, tbody1);
|
||||
|
||||
assert_throws(new TypeError(), function(){
|
||||
assert_throws_js(TypeError, function(){
|
||||
t.tHead = document.createElement("div");
|
||||
});
|
||||
|
||||
assert_throws("HierarchyRequestError", function(){
|
||||
assert_throws_dom("HierarchyRequestError", function(){
|
||||
t.tHead = document.createElement("tbody");
|
||||
});
|
||||
|
||||
|
@ -59,7 +59,7 @@ test(function() {
|
|||
var t2 = document.getElementById("t2");
|
||||
var t2thead = document.getElementById("t2thead");
|
||||
|
||||
assert_throws("HierarchyRequestError", function() {
|
||||
assert_throws_dom("HierarchyRequestError", function() {
|
||||
t2.tHead = t2thead;
|
||||
});
|
||||
});
|
||||
|
|
|
@ -32,13 +32,13 @@ test(function () {
|
|||
}, "HTMLTableSectionElement deleteRow(-1)");
|
||||
|
||||
test(function () {
|
||||
assert_throws("IndexSizeError", function () {
|
||||
assert_throws_dom("IndexSizeError", function () {
|
||||
tbody.deleteRow(tbody.rows.length);
|
||||
});
|
||||
}, "HTMLTableSectionElement deleteRow(rows.length)");
|
||||
|
||||
test(function () {
|
||||
assert_throws("IndexSizeError", function () {
|
||||
assert_throws_dom("IndexSizeError", function () {
|
||||
tbody.deleteRow(-2);
|
||||
});
|
||||
}, "HTMLTableSectionElement deleteRow(-2)");
|
||||
|
@ -53,7 +53,7 @@ test(function () {
|
|||
|
||||
test(function () {
|
||||
assert_equals(tbody.rows.length, 0);
|
||||
assert_throws("IndexSizeError", function () {
|
||||
assert_throws_dom("IndexSizeError", function () {
|
||||
tbody.deleteRow(0);
|
||||
});
|
||||
}, "HTMLTableSectionElement deleteRow(0) with no rows");
|
||||
|
|
|
@ -42,13 +42,13 @@ test(function () {
|
|||
}, "HTMLTableSectionElement insertRow(rows.length)");
|
||||
|
||||
test(function () {
|
||||
assert_throws("IndexSizeError", function () {
|
||||
assert_throws_dom("IndexSizeError", function () {
|
||||
tbody.insertRow(-2);
|
||||
});
|
||||
}, "HTMLTableSectionElement insertRow(-2)");
|
||||
|
||||
test(function () {
|
||||
assert_throws("IndexSizeError", function () {
|
||||
assert_throws_dom("IndexSizeError", function () {
|
||||
tbody.insertRow(tbody.rows.length + 1);
|
||||
});
|
||||
}, "HTMLTableSectionElement insertRow(rows.length + 1)");
|
||||
|
|
|
@ -32,13 +32,13 @@ test(function () {
|
|||
}, "HTMLTableRowElement deleteCell(-1)");
|
||||
|
||||
test(function () {
|
||||
assert_throws("IndexSizeError", function () {
|
||||
assert_throws_dom("IndexSizeError", function () {
|
||||
tr.deleteCell(-2);
|
||||
});
|
||||
}, "HTMLTableRowElement deleteCell(-2)");
|
||||
|
||||
test(function () {
|
||||
assert_throws("IndexSizeError", function () {
|
||||
assert_throws_dom("IndexSizeError", function () {
|
||||
tr.deleteCell(tr.cells.length);
|
||||
});
|
||||
}, "HTMLTableRowElement deleteCell(cells.length)");
|
||||
|
@ -53,7 +53,7 @@ test(function () {
|
|||
|
||||
test(function () {
|
||||
assert_equals(tr.cells.length, 0);
|
||||
assert_throws("IndexSizeError", function () {
|
||||
assert_throws_dom("IndexSizeError", function () {
|
||||
tr.deleteCell(0);
|
||||
});
|
||||
}, "HTMLTableRowElement deleteCell(0) with no cells");
|
||||
|
|
|
@ -41,13 +41,13 @@ test(function () {
|
|||
}, "HTMLTableRowElement insertCell()");
|
||||
|
||||
test(function () {
|
||||
assert_throws("IndexSizeError", function () {
|
||||
assert_throws_dom("IndexSizeError", function () {
|
||||
tr.insertCell(-2);
|
||||
});
|
||||
}, "HTMLTableRowElement insertCell(-2)");
|
||||
|
||||
test(function () {
|
||||
assert_throws("IndexSizeError", function () {
|
||||
assert_throws_dom("IndexSizeError", function () {
|
||||
tr.insertCell(tr.cells.length + 1);
|
||||
});
|
||||
}, "HTMLTableRowElement insertCell(cells.length + 1)");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue