Delete unneeded test now that DOMTokenList.toggle exists

This commit is contained in:
David Zbarsky 2015-07-30 16:40:11 -04:00
parent 82e476fd07
commit 113665618b
2 changed files with 0 additions and 28 deletions

View file

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

View file

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