mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
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:
commit
ff0549a923
2 changed files with 0 additions and 28 deletions
|
@ -443,12 +443,6 @@
|
||||||
"url": "/_mozilla/mozilla/element_attributes.html"
|
"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": [
|
"mozilla/element_className.html": [
|
||||||
{
|
{
|
||||||
"path": "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