Auto merge of #6857 - dzbarsky:rm-test, r=metajack

Delete unneeded test now that DOMTokenList.toggle exists



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6857)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-07-30 21:52:19 -06:00
commit ff0549a923
2 changed files with 0 additions and 28 deletions

View file

@ -443,12 +443,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>