mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 33c263fb308d1c3f6ac6d2590d7292317262819d
This commit is contained in:
parent
5bf00c07c2
commit
482fda3a78
524 changed files with 14686 additions and 3270 deletions
|
@ -60,47 +60,48 @@
|
|||
xtd.parentNode.replaceChild(td,xtd);
|
||||
}
|
||||
|
||||
generate_tests(assert_equals, [
|
||||
[
|
||||
"Control test for table-cell padding and border-spacing, etc (width)",
|
||||
document.querySelector("x-table:nth-of-type(1)").offsetWidth,
|
||||
100
|
||||
],
|
||||
[
|
||||
"Control test for table-cell padding and border-spacing (height)",
|
||||
document.querySelector("x-table:nth-of-type(1)").offsetHeight,
|
||||
100
|
||||
],
|
||||
[
|
||||
"Anonymous consecutive columns spanned by the same set of cells are merged",
|
||||
document.querySelector("x-table:nth-of-type(2)").offsetWidth,
|
||||
100
|
||||
],
|
||||
[
|
||||
"Anonymous consecutive rows spanned by the same set of cells are merged",
|
||||
document.querySelector("x-table:nth-of-type(2)").offsetHeight,
|
||||
100
|
||||
],
|
||||
[
|
||||
"Explicitely-defined consecutive columns spanned by the same set of cells are not merged",
|
||||
document.querySelector("x-table:nth-of-type(3)").offsetWidth,
|
||||
75
|
||||
],
|
||||
[
|
||||
"Explicitely-defined consecutive rows spanned by the same set of cells are not merged",
|
||||
document.querySelector("x-table:nth-of-type(3)").offsetHeight,
|
||||
75
|
||||
],
|
||||
[
|
||||
"Explicitely-defined consecutive columns spanned by the same set of cells are not merged, and cells span across border-spacing",
|
||||
document.querySelector("x-table:nth-of-type(4) x-col").getBoundingClientRect().width,
|
||||
12.5
|
||||
],
|
||||
[
|
||||
"Explicitely-defined consecutive rows spanned by the same set of cells are not merged, and cells span across border-spacing",
|
||||
document.querySelector("x-table:nth-of-type(4) x-tr").getBoundingClientRect().height,
|
||||
12.5
|
||||
],
|
||||
])
|
||||
|
||||
document.body.onload = () => {
|
||||
generate_tests(assert_equals, [
|
||||
[
|
||||
"Control test for table-cell padding and border-spacing, etc (width)",
|
||||
document.querySelector("x-table:nth-of-type(1)").offsetWidth,
|
||||
100
|
||||
],
|
||||
[
|
||||
"Control test for table-cell padding and border-spacing (height)",
|
||||
document.querySelector("x-table:nth-of-type(1)").offsetHeight,
|
||||
100
|
||||
],
|
||||
[
|
||||
"Anonymous consecutive columns spanned by the same set of cells are merged",
|
||||
document.querySelector("x-table:nth-of-type(2)").offsetWidth,
|
||||
100
|
||||
],
|
||||
[
|
||||
"Anonymous consecutive rows spanned by the same set of cells are merged",
|
||||
document.querySelector("x-table:nth-of-type(2)").offsetHeight,
|
||||
100
|
||||
],
|
||||
[
|
||||
"Explicitely-defined consecutive columns spanned by the same set of cells are not merged",
|
||||
document.querySelector("x-table:nth-of-type(3)").offsetWidth,
|
||||
75
|
||||
],
|
||||
[
|
||||
"Explicitely-defined consecutive rows spanned by the same set of cells are not merged",
|
||||
document.querySelector("x-table:nth-of-type(3)").offsetHeight,
|
||||
75
|
||||
],
|
||||
[
|
||||
"Explicitely-defined consecutive columns spanned by the same set of cells are not merged, and cells span across border-spacing",
|
||||
document.querySelector("x-table:nth-of-type(4) x-col").getBoundingClientRect().width,
|
||||
12.5
|
||||
],
|
||||
[
|
||||
"Explicitely-defined consecutive rows spanned by the same set of cells are not merged, and cells span across border-spacing",
|
||||
document.querySelector("x-table:nth-of-type(4) x-tr").getBoundingClientRect().height,
|
||||
12.5
|
||||
],
|
||||
])
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue