Update web-platform-tests to revision b'468d01bbd84da2babf265c6af46947be68713440'

This commit is contained in:
WPT Sync Bot 2021-09-07 11:16:33 +00:00 committed by cybai
parent 35e95f55a1
commit 58e8ee674b
9438 changed files with 266112 additions and 106976 deletions

View file

@ -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');
}

View file

@ -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');
}