Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
400a314
commit 23d1d1c
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters