[common][ml] Remove unnecessary test case 38/310538/1 tizen_7.0
authorSangjung Woo <sangjung.woo@samsung.com>
Mon, 24 Jul 2023 08:24:05 +0000 (17:24 +0900)
committerYongjoo Ahn <yongjoo1.ahn@samsung.com>
Tue, 30 Apr 2024 10:14:16 +0000 (10:14 +0000)
To support the large model, ML_TENSOR_SIZE_LIMIT has been updated from
16 to 256 (ACR-1773). Due to this update, the existing
TensorsInfo_addTensorInfo_AbortError_2 test case always fails. This
patch fixes the bug.

Change-Id: Ie8410db21bfefc551dce8508306d9f3c7fc92426
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
(cherry picked from commit 8fdde43dce2376ececbe26c87a387118df1faf58)

common/tct-ml-tizen-tests/ml/TensorsInfo_addTensorInfo_AbortError_2.html [deleted file]
common/tct-ml-tizen-tests/tests.full.xml
common/tct-ml-tizen-tests/tests.xml

diff --git a/common/tct-ml-tizen-tests/ml/TensorsInfo_addTensorInfo_AbortError_2.html b/common/tct-ml-tizen-tests/ml/TensorsInfo_addTensorInfo_AbortError_2.html
deleted file mode 100755 (executable)
index 782f526..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>\r
-<!--\r
-Copyright (c) 2021 Samsung Electronics Co., Ltd.\r
-\r
-Licensed under the Apache License, Version 2.0 (the License);\r
-you may not use this file except in compliance with the License.\r
-You may obtain a copy of the License at\r
-\r
-    http://www.apache.org/licenses/LICENSE-2.0\r
-\r
-Unless required by applicable law or agreed to in writing, software\r
-distributed under the License is distributed on an "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-See the License for the specific language governing permissions and\r
-limitations under the License.\r
-\r
-Authors:\r
-        Chen Chen <chen89.chen@samsung.com>\r
-\r
--->\r
-<html>\r
-<head>\r
-<title>TensorsInfo_addTensorInfo_AbortError_2</title>\r
-<meta charset="utf-8"/>\r
-<script src="support/unitcommon.js"></script>\r
-</head>\r
-<body>\r
-<div id="log"></div>\r
-<script>\r
-//==== TEST: TensorsInfo_addTensorInfo_AbortError_2\r
-//==== LABEL Check if TensorsInfo::addTensorInfo() error occurs throws an exception\r
-//==== SPEC Tizen Web API:TBD:MachineLearning:TensorsInfo:addTensorInfo M\r
-//==== SPEC_URL TBD\r
-//==== PRIORITY P2\r
-//==== TEST_CRITERIA MC\r
-\r
-//TensorsInfo object can hold information about up to 16 tensors. \r
-//An attempt to add more tensors will trigger AbortError.\r
-test(function () {\r
-    var tensorsInfo;\r
-    tensorsInfo = new tizen.ml.TensorsInfo();\r
-    tensorsInfo.addTensorInfo("tensor1", "UINT8", [4, 4]);\r
-    tensorsInfo.addTensorInfo("tensor2", "UINT8", [4, 4]);\r
-    tensorsInfo.addTensorInfo("tensor3", "UINT8", [4, 4]);\r
-    tensorsInfo.addTensorInfo("tensor4", "UINT8", [4, 4]);\r
-    tensorsInfo.addTensorInfo("tensor5", "UINT8", [4, 4]);\r
-    tensorsInfo.addTensorInfo("tensor6", "UINT8", [4, 4]);\r
-    tensorsInfo.addTensorInfo("tensor7", "UINT8", [4, 4]);\r
-    tensorsInfo.addTensorInfo("tensor8", "UINT8", [4, 4]);\r
-    tensorsInfo.addTensorInfo("tensor9", "UINT8", [4, 4]);\r
-    tensorsInfo.addTensorInfo("tensor10", "UINT8", [4, 4]);\r
-    tensorsInfo.addTensorInfo("tensor11", "UINT8", [4, 4]);\r
-    tensorsInfo.addTensorInfo("tensor12", "UINT8", [4, 4]);\r
-    tensorsInfo.addTensorInfo("tensor13", "UINT8", [4, 4]);\r
-    tensorsInfo.addTensorInfo("tensor14", "UINT8", [4, 4]);\r
-    tensorsInfo.addTensorInfo("tensor15", "UINT8", [4, 4]);\r
-    tensorsInfo.addTensorInfo("tensor16", "UINT8", [4, 4]);\r
-\r
-    assert_throws({name: 'AbortError'}, function () {\r
-        tensorsInfo.addTensorInfo("tensor17", "UINT8", [4, 4]);\r
-    }, "AbortError should be thrown - Disposes an object and releases the memory. Object should not be used after calling dispose.");\r
-}, document.title);\r
-\r
-</script>\r
-</body>\r
-</html>
\ No newline at end of file
index d0a77996956829a2300e0eccc653d951bbcd7ae0..c1ea21844a927ebe613be5e8723dfd11f4ffe668 100755 (executable)
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if TensorsInfo::addTensorInfo() error occurs throws an exception " type="compliance" status="approved" component="Tizen Web Device APIs/TBD/MachineLearning" execution_type="auto" priority="P2 " id="TensorsInfo_addTensorInfo_AbortError_2">
-        <description>
-          <test_script_entry>/opt/tct-ml-tizen-tests/ml/TensorsInfo_addTensorInfo_AbortError_2.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="TensorsInfo" element_type="method" element_name="addTensorInfo" specification="MachineLearning" section="TBD" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/machinelearning.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
       <testcase purpose="Check if TensorsInfo::getDimensions() error occurs throws an exception " type="compliance" status="approved" component="Tizen Web Device APIs/TBD/MachineLearning" execution_type="auto" priority="P2 " id="TensorsInfo_getDimensions_AbortError">
         <description>
           <test_script_entry>/opt/tct-ml-tizen-tests/ml/TensorsInfo_getDimensions_AbortError.html</test_script_entry>
index f6152f6f8473af80a4775c18b4e9fb5961b0f8fa..364c8bb871a120d8a8d2fb58b16505d7ce036c1b 100755 (executable)
           <test_script_entry>/opt/tct-ml-tizen-tests/ml/TensorsInfo_addTensorInfo_AbortError_1.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if TensorsInfo::addTensorInfo() error occurs throws an exception " component="Tizen Web Device APIs/TBD/MachineLearning" execution_type="auto" priority="P2 " id="TensorsInfo_addTensorInfo_AbortError_2">
-        <description>
-          <test_script_entry>/opt/tct-ml-tizen-tests/ml/TensorsInfo_addTensorInfo_AbortError_2.html</test_script_entry>
-        </description>
-      </testcase>
       <testcase purpose="Check if TensorsInfo::getDimensions() error occurs throws an exception " component="Tizen Web Device APIs/TBD/MachineLearning" execution_type="auto" priority="P2 " id="TensorsInfo_getDimensions_AbortError">
         <description>
           <test_script_entry>/opt/tct-ml-tizen-tests/ml/TensorsInfo_getDimensions_AbortError.html</test_script_entry>