[common][jsenhance][DPTTIZEN-3023, modify 2 tc due to spec change] 61/178761/1
authorzhongyuan <zy123.yuan@samsung.com>
Mon, 14 May 2018 02:43:00 +0000 (10:43 +0800)
committerzhongyuan <zy123.yuan@samsung.com>
Mon, 14 May 2018 02:43:00 +0000 (10:43 +0800)
Change-Id: I2e45c3f921a5c9135421f2c9682bf18ddbd5f4cc

common/tct-jsenhance-html5-tests/jsenhance/element_classList_contains_empty_string.html
common/tct-jsenhance-html5-tests/jsenhance/element_classList_contains_space_characters.html

index 39c5dca62b8d2afb7d1c78dc997883d64d5bc6c9..a625877c2cd060e96277d147365e000c495ee823 100755 (executable)
@@ -45,9 +45,8 @@ Authors:
     <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>
index 14f541c9d35980f0b84758d72386bb3bfb5030e8..e26d3b6ebb8ee6d2537e3bbbaa9285eb4048e7ac 100755 (executable)
@@ -45,9 +45,8 @@ Authors:
     <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>