[crypto][Fix tc issue on m56] 21/120721/2
authoryuanzhongyuan <zy123.yuan@samsung.com>
Fri, 24 Mar 2017 02:17:00 +0000 (10:17 +0800)
committeryuanzhongyuan <zy123.yuan@samsung.com>
Tue, 28 Mar 2017 00:52:25 +0000 (08:52 +0800)
Change-Id: I716f55ee3f1d36e61afa700be2e6fe03701de363
Signed-off-by: yuanzhongyuan <zy123.yuan@samsung.com>
common/tct-crypto-w3c-tests/crypto/Crypto_getRandomValues_array_TypeError.html [new file with mode: 0755]
common/tct-crypto-w3c-tests/crypto/Crypto_getRandomValues_array_TypeMismatch.html [deleted file]
common/tct-crypto-w3c-tests/tests.full.xml
common/tct-crypto-w3c-tests/tests.xml

diff --git a/common/tct-crypto-w3c-tests/crypto/Crypto_getRandomValues_array_TypeError.html b/common/tct-crypto-w3c-tests/crypto/Crypto_getRandomValues_array_TypeError.html
new file mode 100755 (executable)
index 0000000..9856ef4
--- /dev/null
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2015 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaochun Wang <xiaochn.wang@samsung.com>
+
+-->
+<html>
+<head>
+<title>Crypto_getRandomValues_array_TypeError</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: Crypto_getRandomValues_array_TypeError
+//==== LABEL check getRandomValues method with wrong type of array
+//==== SPEC Tizen Web API:TBD:CryptoApi:Crypto:getRandomValues M
+//==== SPEC_URL http://www.w3.org/TR/2014/CR-WebCryptoAPI-20141211/
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+test(function () {
+    assert_throws({name: "TypeError"}, function () {
+        window.crypto.getRandomValues(["a","b"]);
+    }, "fail to get typeError exception");
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-crypto-w3c-tests/crypto/Crypto_getRandomValues_array_TypeMismatch.html b/common/tct-crypto-w3c-tests/crypto/Crypto_getRandomValues_array_TypeMismatch.html
deleted file mode 100755 (executable)
index 39a905c..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2015 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Xiaochun Wang <xiaochn.wang@samsung.com>
-
--->
-<html>
-<head>
-<title>Crypto_getRandomValues_array_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Crypto_getRandomValues_array_TypeMismatch
-//==== LABEL check getRandomValues method with wrong type of array
-//==== SPEC Tizen Web API:TBD:CryptoApi:Crypto:getRandomValues M
-//==== SPEC_URL http://www.w3.org/TR/2014/CR-WebCryptoAPI-20141211/
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-test(function () {
-    assert_throws({name: "TypeMismatchError"}, function () {
-        window.crypto.getRandomValues(["a","b"]);
-    }, "fail to get typemistake exception");
-}, document.title);
-
-</script>
-</body>
-</html>
index be1720127a9879ee46355f4675cb3e6a5a3308e4..2a2355e1383b6cc7996ffcafc4a3b17901965680 100755 (executable)
@@ -63,9 +63,9 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check getRandomValues method with wrong type of array" type="compliance" status="approved" component="TizenAPI/TBD/CryptoApi" execution_type="auto" priority="P2" id="Crypto_getRandomValues_array_TypeMismatch">
+      <testcase purpose="check getRandomValues method with wrong type of array" type="compliance" status="approved" component="TizenAPI/TBD/CryptoApi" execution_type="auto" priority="P2" id="Crypto_getRandomValues_array_TypeError">
         <description>
-          <test_script_entry>/opt/tct-crypto-w3c-tests/crypto/Crypto_getRandomValues_array_TypeMismatch.html</test_script_entry>
+          <test_script_entry>/opt/tct-crypto-w3c-tests/crypto/Crypto_getRandomValues_array_TypeError.html</test_script_entry>
         </description>
         <specs>
           <spec>
index fe27a5c62aadf32f2b69b4e2b55c92b4fc2d8db3..28048df1c22a7ae547bb6ee880da28e38caed43f 100755 (executable)
@@ -28,9 +28,9 @@
           <test_script_entry>/opt/tct-crypto-w3c-tests/crypto/Crypto_getRandomValues.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check getRandomValues method with wrong type of array" component="TizenAPI/TBD/CryptoApi" execution_type="auto" priority="P2" id="Crypto_getRandomValues_array_TypeMismatch">
+      <testcase purpose="check getRandomValues method with wrong type of array" component="TizenAPI/TBD/CryptoApi" execution_type="auto" priority="P2" id="Crypto_getRandomValues_array_TypeError">
         <description>
-          <test_script_entry>/opt/tct-crypto-w3c-tests/crypto/Crypto_getRandomValues_array_TypeMismatch.html</test_script_entry>
+          <test_script_entry>/opt/tct-crypto-w3c-tests/crypto/Crypto_getRandomValues_array_TypeError.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="check the getRandomValues exists " component="TizenAPI/TBD/CryptoApi" execution_type="auto" priority="P0" id="Crypto_getRandomValues_exist">