summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/lists/DOMTokenList-Iterable.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/dom/lists/DOMTokenList-Iterable.html')
-rw-r--r--testing/web-platform/tests/dom/lists/DOMTokenList-Iterable.html34
1 files changed, 0 insertions, 34 deletions
diff --git a/testing/web-platform/tests/dom/lists/DOMTokenList-Iterable.html b/testing/web-platform/tests/dom/lists/DOMTokenList-Iterable.html
deleted file mode 100644
index 4cf84b12a..000000000
--- a/testing/web-platform/tests/dom/lists/DOMTokenList-Iterable.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!doctype html>
-<meta charset="utf-8">
-<title>DOMTokenList Iterable Test</title>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<span class="foo Foo foo "></span>
-<script>
- var elementClasses;
- setup(function() {
- elementClasses = document.querySelector("span").classList;
- })
- test(function() {
- assert_true('length' in elementClasses);
- }, 'DOMTokenList has length method.');
- test(function() {
- assert_true('values' in elementClasses);
- }, 'DOMTokenList has values method.');
- test(function() {
- assert_true('entries' in elementClasses);
- }, 'DOMTokenList has entries method.');
- test(function() {
- assert_true('forEach' in elementClasses);
- }, 'DOMTokenList has forEach method.');
- test(function() {
- assert_true(Symbol.iterator in elementClasses);
- }, 'DOMTokenList has Symbol.iterator.');
- test(function() {
- var classList = [];
- for (var className of elementClasses){
- classList.push(className);
- }
- assert_array_equals(classList, ['foo', 'Foo']);
- }, 'DOMTokenList is iterable via for-of loop.');
-</script>