blob: f9e363121492212bdb0b72c9aff0098d1f74cf6e [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title class="a b">Testing of DOMTokenList iterable capacities</title>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description('Testing of DOMTokenList iterable capacities.');
var testingGround = document.getElementsByTagName('title')[0];
var classList = testingGround.classList;
function checkItemType(item) {
return typeof item === 'string';
}
function createIterable(items) {
items.push(classList[0]);
items.push(classList[1]);
return classList;
}
function updateIterable() {
testingGround.setAttribute("class", "a b c d");
}
</script>
<script src="iterable-tests.js"></script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>