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