mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision 281f62f2d8ffe72128d848851ac1e8d823f608f6
This commit is contained in:
parent
f4a5709e37
commit
2999a91526
292 changed files with 2232 additions and 742 deletions
|
@ -15,13 +15,13 @@ test(function() {
|
|||
const wrapper = document.createElement('div');
|
||||
const html = `<${c}><${e}></${c}`
|
||||
wrapper.innerHTML = html;
|
||||
assert_false(wrapper.innerHTML == html, "The inner HTML should get mutated");
|
||||
assert_not_equals(wrapper.innerHTML, html, "The inner HTML should get mutated");
|
||||
|
||||
const tagname = e[0]=='/' ? e.substr(1) : e;
|
||||
const element = wrapper.getElementsByTagName(tagname)[0];
|
||||
assert_true(element !== undefined,`Unable to locate the ${e} node in ${c}`)
|
||||
assert_not_equals(element, undefined,`Unable to locate the ${e} node in ${c}`)
|
||||
const parent = element.parentNode
|
||||
assert_true(element.parentNode === wrapper,`The ${e} tag did not exit the ${c}`)
|
||||
assert_equals(element.parentNode, wrapper,`The ${e} tag did not exit the ${c}`)
|
||||
});
|
||||
});
|
||||
}, "HTML namespace nodes should exit foreign contexts");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue