Change-Id: I2e45c3f921a5c9135421f2c9682bf18ddbd5f4cc
<div id="test" class="d1 d2"></div>
<script>
test(function (){
- assert_throws("SYNTAX_ERR",
- function(){document.getElementById("test").classList.contains("");},
- "The SYNTAX_ERR exception should be thrown.");
+ assert_false(document.getElementById("test").classList.contains(""),
+ "element.classList.contains method set empty string should return false");
}, document.title);
</script>
</body>
<div id="test" class="d1 d2"></div>
<script>
test(function (){
- assert_throws("INVALID_CHARACTER_ERR",
- function(){document.getElementById("test").classList.contains(" ");},
- "The INVALID_CHARACTER_ERR exception should be thrown.");
+ assert_false(document.getElementById("test").classList.contains(" "),
+ "element.classList.contains method set space characters should return false.");
}, document.title);
</script>
</body>