</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>
<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>
+++ /dev/null
-<!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>