[common][websocket][sync tcs from tizen_4.0 branch] 88/118388/1
authormengli.zhang <mengli.zhang@samsung.com>
Fri, 10 Mar 2017 19:18:04 +0000 (14:18 -0500)
committermengli.zhang <mengli.zhang@samsung.com>
Fri, 10 Mar 2017 19:18:16 +0000 (14:18 -0500)
Change-Id: Iae91c11601ff7c3f658dbd4d5e3cc92d22f3bf7c
Signed-off-by: mengli.zhang <mengli.zhang@samsung.com>
common/tct-websocket-w3c-tests/tests.full.xml
common/tct-websocket-w3c-tests/tests.xml
common/tct-websocket-w3c-tests/websocket/w3c/Secure-Close-undefined.htm [deleted file]

index 3d206fe58a775a0fadb140c6b410449c9952ac11..a0f8aad68ce077435532aba724ce8b2021ca59f3 100755 (executable)
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if the desired exception thrown when the WebSocket.close secure has an argument undefined" type="compliance" status="approved" component="W3C_HTML5 APIs/Communication/The WebSocket API" execution_type="manual" priority="P2" id="Secure_Close_undefined" onload_delay="10">
-        <description>
-          <pre_condition>Security ceritifcation for the site wss://127.0.0.1:8443/echo MUST be allowed on the device.</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Push the "Run" button and press "Allow" button if authorization dialogue is prompted</step_desc>
-              <expected>The test case is passed</expected>
-            </step>
-          </steps>
-          <test_script_entry>http://127.0.0.1:8080/opt/tct-websocket-w3c-tests/websocket/w3c/Secure-Close-undefined.htm</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion element_type="method" element_name="close" interface="WebSocket" specification="The WebSocket API" section="Communication" category="Tizen W3C API Specifications"/>
-            <spec_url>http://www.w3.org/TR/2012/CR-websockets-20120920/#dom-websocket-close</spec_url>
-            <spec_statement/>
-          </spec>
-        </specs>
-      </testcase>
       <testcase purpose="Check if the type of WebSocket.close is 'function'" type="compliance" status="approved" component="W3C_HTML5 APIs/Communication/The WebSocket API" execution_type="auto" priority="P2" id="websocket_WebSocket_close_type">
         <description>
           <test_script_entry>/opt/tct-websocket-w3c-tests/websocket/websocket_WebSocket_close_type.html</test_script_entry>
index 56557ddd5bd5fae97682105c11256fc8e49eb9dc..190cdf6fce4e964f8fa1f404909cdafb99269f2d 100755 (executable)
           <test_script_entry>/opt/tct-websocket-w3c-tests/websocket/w3c/Secure-Close-onlyReason.htm</test_script_entry>
         </description>
       </testcase>
-      <testcase component="W3C_HTML5 APIs/Communication/The WebSocket API" execution_type="manual" id="Secure_Close_undefined" onload_delay="10" purpose="Check if the desired exception thrown when the WebSocket.close secure has an argument undefined">
-        <description>
-          <pre_condition>Security ceritifcation for the site wss://127.0.0.1:8443/echo MUST be allowed on the device.</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Push the "Run" button and press "Allow" button if authorization dialogue is prompted</step_desc>
-              <expected>The test case is passed</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-websocket-w3c-tests/websocket/w3c/Secure-Close-undefined.htm</test_script_entry>
-        </description>
-      </testcase>
       <testcase component="W3C_HTML5 APIs/Communication/The WebSocket API" execution_type="auto" id="websocket_WebSocket_close_type" purpose="Check if the type of WebSocket.close is 'function'">
         <description>
           <test_script_entry>/opt/tct-websocket-w3c-tests/websocket/websocket_WebSocket_close_type.html</test_script_entry>
diff --git a/common/tct-websocket-w3c-tests/websocket/w3c/Secure-Close-undefined.htm b/common/tct-websocket-w3c-tests/websocket/w3c/Secure-Close-undefined.htm
deleted file mode 100755 (executable)
index 1801e71..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <title>W3C WebSocket API - Close Secure WebSocket - Code is undefined</title>
-    <script type="text/javascript" src="../../resources/testharness.js"></script>
-    <script type="text/javascript" src="../../resources/testharnessreport.js"></script>
-    <script type="text/javascript" src="websocket.js"></script>
-</head>
-<body>
-    <div id="log"></div>
-    <script type="text/javascript">
-
-        var test = async_test("W3C WebSocket API - Create Secure WebSocket - Close the Connection - close(undefined) - INVALID_ACCESS_ERR is thrown");
-
-        var wsocket = CreateWebSocket(true, false, false);
-        var isOpenCalled = false;
-
-        wsocket.addEventListener('open', test.step_func(function (evt) {
-            assert_throws("INVALID_ACCESS_ERR", function () { wsocket.close(undefined) });
-            clearTimeout(timeOut);
-            test.done();
-        }), true);
-    </script>
-
-</body>
-</html>