mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Delete unneeded test now that DOMTokenList.toggle exists
This commit is contained in:
parent
82e476fd07
commit
113665618b
2 changed files with 0 additions and 28 deletions
|
@ -455,12 +455,6 @@
|
|||
"url": "/_mozilla/mozilla/element_attributes.html"
|
||||
}
|
||||
],
|
||||
"mozilla/element_classList.html": [
|
||||
{
|
||||
"path": "mozilla/element_classList.html",
|
||||
"url": "/_mozilla/mozilla/element_classList.html"
|
||||
}
|
||||
],
|
||||
"mozilla/element_className.html": [
|
||||
{
|
||||
"path": "mozilla/element_className.html",
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
<!-- Remove this and update WPT metadata once DOMTokenList.toggle (#3138) is implemented. -->
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(function() {
|
||||
var div = document.createElement("div");
|
||||
div.className = "foo bar";
|
||||
|
||||
var classList = div.classList;
|
||||
div.className = "";
|
||||
|
||||
assert_equals(classList.item(0), null, "classList.item(0) must return null when all classes have been removed");
|
||||
assert_equals(classList[0], undefined, "classList[0] must be undefined when all classes have been removed");
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue