mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Mark WPT tests as FAIL due to lack of DOMTokenList.toggle
For now, these tests are being handled in test_element_classList.html until DOMTokenList.toggle gets implemented. Created issue #3138 to track DOMTokenList.toggle implementation.
This commit is contained in:
parent
400a31443b
commit
23d1d1cf7b
2 changed files with 27 additions and 0 deletions
21
src/test/content/test_element_classList.html
Normal file
21
src/test/content/test_element_classList.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!-- Remove this and update WPT metadata once DOMTokenList.toggle (#3138) is implemented. -->
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="harness.js"></script>
|
||||
<script>
|
||||
let div = document.createElement("div");
|
||||
div.className = "foo bar";
|
||||
|
||||
let classList = div.classList;
|
||||
div.className = "";
|
||||
|
||||
is(classList.item(0), null, "classList.item(0) must return null when all classes have been removed");
|
||||
is(classList[0], undefined, "classList[0] must be undefined when all classes have been removed");
|
||||
|
||||
finish();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
|
@ -102,6 +102,12 @@
|
|||
[classList must stringify to an empty string when all classes have been removed]
|
||||
expected: FAIL
|
||||
|
||||
[classList.item(0) must return null when all classes have been removed]
|
||||
expected: FAIL
|
||||
|
||||
[classList[0\] must be undefined when all classes have been removed]
|
||||
expected: FAIL
|
||||
|
||||
[classList.add should treat " " as a space]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue