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:
Bruno de Oliveira Abinader 2014-08-25 13:57:38 -04:00
parent 400a31443b
commit 23d1d1cf7b
2 changed files with 27 additions and 0 deletions

View 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>

View file

@ -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