mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision b'468d01bbd84da2babf265c6af46947be68713440'
This commit is contained in:
parent
35e95f55a1
commit
58e8ee674b
9438 changed files with 266112 additions and 106976 deletions
|
@ -13,7 +13,7 @@
|
|||
<div id="log"></div>
|
||||
<script type="text/javascript">
|
||||
|
||||
function doTest(doc, tagToTest, templateInnerHTML, id, tagName, bodiesNum, footerIsNull,
|
||||
function doTest(doc, tagToTest, templateInnerHTML, id, tagName, bodiesNum = null, footerIsNull,
|
||||
footerId, headerIsNull, headerId) {
|
||||
|
||||
doc.body.innerHTML = '' +
|
||||
|
@ -51,7 +51,7 @@ function doTest(doc, tagToTest, templateInnerHTML, id, tagName, bodiesNum, foote
|
|||
|
||||
assert_equals(table.caption, null, 'Table should have no caption');
|
||||
|
||||
if (bodiesNum) {
|
||||
if (bodiesNum !== null) {
|
||||
assert_equals(table.tBodies.length, bodiesNum, 'Table should have '
|
||||
+ bodiesNum + ' body');
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<div id="log"></div>
|
||||
<script type="text/javascript">
|
||||
|
||||
function doTest(doc, templateInnerHTML, id, tagName, bodiesNum, footerIsNull,
|
||||
function doTest(doc, templateInnerHTML, id, tagName, bodiesNum = null, footerIsNull,
|
||||
headerIsNull) {
|
||||
|
||||
doc.body.innerHTML = '' +
|
||||
|
@ -43,7 +43,7 @@ function doTest(doc, templateInnerHTML, id, tagName, bodiesNum, footerIsNull,
|
|||
assert_equals(doc.querySelector('#tbl').caption, null, 'Table should have no caption');
|
||||
assert_equals(template.content.querySelector('#' + id).tagName, tagName,
|
||||
'Wrong element in the template content');
|
||||
if (bodiesNum) {
|
||||
if (bodiesNum !== null) {
|
||||
assert_equals(table.tBodies.length, bodiesNum, 'Table should have '
|
||||
+ bodiesNum + ' body');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue