[common][metadata][TWDAPI-271, add new TCs according to new APIs] 40/250440/4
authorqunfang.lin <qunfang.lin@samsung.com>
Fri, 25 Dec 2020 09:45:44 +0000 (17:45 +0800)
committerQunfang Lin <qunfang.lin@samsung.com>
Tue, 19 Jan 2021 11:26:37 +0000 (11:26 +0000)
- add: 15 TC, modify: 5 TCs, delete: 0 TC

Change-Id: I935ef0e8a087b9bcf41201e1dbfe0b0de55377c9
Signed-off-by: qunfang.lin <qunfang.lin@samsung.com>
24 files changed:
common/tct-metadata-tizen-tests/media/sample.mp3 [new file with mode: 0755]
common/tct-metadata-tizen-tests/media/tct-metadata-tizen-tests_video.mp3 [new file with mode: 0755]
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get.html
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork.html [new file with mode: 0644]
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_exist.html [new file with mode: 0644]
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_extra_argument.html [new file with mode: 0644]
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime.html [new file with mode: 0644]
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_exist.html [new file with mode: 0644]
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_with_isAccurate.html [new file with mode: 0644]
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics.html [new file with mode: 0644]
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_InvalidValuesError.html [new file with mode: 0644]
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_exist.html [new file with mode: 0644]
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame.html [new file with mode: 0644]
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_exist.html [new file with mode: 0644]
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_extra_argument.html [new file with mode: 0644]
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_exist.html
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_misarg.html
common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_type_TypeMismatch.html
common/tct-metadata-tizen-tests/metadata/MetadataManager_createFileHandle.html
common/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_lyrics_attribute.html [new file with mode: 0644]
common/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_notexist.html [new file with mode: 0644]
common/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_timestamp_attribute.html [new file with mode: 0644]
common/tct-metadata-tizen-tests/tests.full.xml
common/tct-metadata-tizen-tests/tests.xml

diff --git a/common/tct-metadata-tizen-tests/media/sample.mp3 b/common/tct-metadata-tizen-tests/media/sample.mp3
new file mode 100755 (executable)
index 0000000..ce7fd6f
Binary files /dev/null and b/common/tct-metadata-tizen-tests/media/sample.mp3 differ
diff --git a/common/tct-metadata-tizen-tests/media/tct-metadata-tizen-tests_video.mp3 b/common/tct-metadata-tizen-tests/media/tct-metadata-tizen-tests_video.mp3
new file mode 100755 (executable)
index 0000000..59ec8aa
Binary files /dev/null and b/common/tct-metadata-tizen-tests/media/tct-metadata-tizen-tests_video.mp3 differ
index dae37f283d248f49effc63a0000d4cbf4b8a53f3..dc3dfff30dc12210266c7ff404a67c3eb9b475b1 100644 (file)
@@ -42,6 +42,8 @@ test(function () {
     ret = fileHandle.get("DURATION");
     assert_type(ret, "string", "Type of return value should be of DOMString.");
     assert_equals(ret, "10667", "The duration is not right.");
+
+    fileHandle.release();
 }, document.title);
 
 </script>
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork.html
new file mode 100644 (file)
index 0000000..1712a92
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>MetadataFileHandle_getArtwork</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/metadata_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MetadataFileHandle_getArtwork
+//==== LABEL Check if MetadataFileHandle::getArtwork() method works properly
+//==== SPEC Tizen Web API:TBD:Metadata:MetadataFileHandle:getArtwork M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR MNA
+
+test(function () {
+    var fileHandle, uri = TEST_DIR + "media/tct-metadata-tizen-tests_video.mp3", ret;
+
+    fileHandle = tizen.metadata.createFileHandle(uri);
+    ret = fileHandle.getArtwork();
+    assert_type(ret, "object", "Type of return value should be of object.");
+
+    fileHandle.release();
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_exist.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_exist.html
new file mode 100644 (file)
index 0000000..22e601f
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>MetadataFileHandle_getArtwork_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/metadata_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MetadataFileHandle_getArtwork_exist
+//==== LABEL Check if MetadataFileHandle::getArtwork() method exists
+//==== SPEC Tizen Web API:TBD:Metadata:MetadataFileHandle:getArtwork M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+    var fileHandle, uri = TEST_DIR + "media/tct-metadata-tizen-tests_video.mp3";
+
+    fileHandle = tizen.metadata.createFileHandle(uri);
+    check_method_exists(fileHandle, "getArtwork");
+
+    fileHandle.release();
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_extra_argument.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_extra_argument.html
new file mode 100644 (file)
index 0000000..8ff45a5
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>MetadataFileHandle_getArtwork_extra_argument</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/metadata_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MetadataFileHandle_getArtwork_extra_argument
+//==== LABEL Check using MetadataFileHandle::getArtwork() method with extra argument
+//==== SPEC Tizen Web API:TBD:Metadata:MetadataFileHandle:getArtwork M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MNAEX
+
+test(function () {
+    var fileHandle, uri = TEST_DIR + "media/tct-metadata-tizen-tests_video.mp3";
+
+    fileHandle = tizen.metadata.createFileHandle(uri);
+    checkExtraArgument(fileHandle, "getArtwork");
+
+    fileHandle.release();
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime.html
new file mode 100644 (file)
index 0000000..b023cea
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>MetadataFileHandle_getFrameAtTime</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/metadata_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MetadataFileHandle_getFrameAtTime
+//==== LABEL Check if MetadataFileHandle::getFrameAtTime() method works properly without optional parameter
+//==== SPEC Tizen Web API:TBD:Metadata:MetadataFileHandle:getFrameAtTime M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR MMINA
+
+test(function () {
+    var fileHandle, uri = TEST_DIR + "media/tct-metadata-tizen-tests_video.mp4", ret;
+
+    fileHandle = tizen.metadata.createFileHandle(uri);
+    ret = fileHandle.getFrameAtTime(2000);
+    assert_type(ret, "object", "Type of return value should be of object.");
+
+    fileHandle.release();
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_exist.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_exist.html
new file mode 100644 (file)
index 0000000..89b9787
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>MetadataFileHandle_getFrameAtTime_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/metadata_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MetadataFileHandle_getFrameAtTime_exist
+//==== LABEL Check if MetadataFileHandle::getFrameAtTime() method exists
+//==== SPEC Tizen Web API:TBD:Metadata:MetadataFileHandle:getFrameAtTime M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+    var fileHandle, uri = TEST_DIR + "media/tct-metadata-tizen-tests_video.mp4";
+
+    fileHandle = tizen.metadata.createFileHandle(uri);
+    check_method_exists(fileHandle, "getFrameAtTime");
+
+    fileHandle.release();
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_with_isAccurate.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_with_isAccurate.html
new file mode 100644 (file)
index 0000000..65861cb
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>MetadataFileHandle_getFrameAtTime_with_isAccurate</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/metadata_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MetadataFileHandle_getFrameAtTime_with_isAccurate
+//==== LABEL Check if MetadataFileHandle::getFrameAtTime() method works properly
+//==== SPEC Tizen Web API:TBD:Metadata:MetadataFileHandle:getFrameAtTime M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MOA MR
+
+test(function () {
+    var fileHandle, uri = TEST_DIR + "media/tct-metadata-tizen-tests_video.mp4", ret;
+
+    fileHandle = tizen.metadata.createFileHandle(uri);
+    ret = fileHandle.getFrameAtTime(2000, true);
+    assert_type(ret, "object", "Type of return value should be of object.");
+
+    fileHandle.release();
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics.html
new file mode 100644 (file)
index 0000000..d414143
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>MetadataFileHandle_getSyncLyrics</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/metadata_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MetadataFileHandle_getSyncLyrics
+//==== LABEL Check if MetadataFileHandle::getSyncLyrics() method works properly
+//==== SPEC Tizen Web API:TBD:Metadata:MetadataFileHandle:getSyncLyrics M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+test(function () {
+    var fileHandle, uri = TEST_DIR + "media/sample.mp3", ret;
+
+    fileHandle = tizen.metadata.createFileHandle(uri);
+    ret = fileHandle.getSyncLyrics(0);
+    assert_type(ret, "object", "Type of return value should be of object.");
+
+    fileHandle.release();
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_InvalidValuesError.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_InvalidValuesError.html
new file mode 100644 (file)
index 0000000..d8da0da
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>MetadataFileHandle_getSyncLyrics_InvalidValuesError</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/metadata_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MetadataFileHandle_getSyncLyrics_InvalidValuesError
+//==== LABEL Check if getSyncLyrics throws exception if input index exceeds a maxmium index
+//==== SPEC Tizen Web API:TBD:Metadata:MetadataFileHandle:getSyncLyrics M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+test(function () {
+    var fileHandle, uri, lyricsNum;
+
+    uri = TEST_DIR + "media/sample.mp3";
+    fileHandle = tizen.metadata.createFileHandle(uri);
+    lyricsNum = fileHandle.get("SYNCLYRICS_NUM");
+
+    assert_throws(INVALID_VALUES_EXCEPTION, function () {
+        fileHandle.getSyncLyrics(lyricsNum + 1);
+    }, "InvalidValuesError should be thrown.");
+
+    fileHandle.release();
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_exist.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_exist.html
new file mode 100644 (file)
index 0000000..f6a3edb
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>MetadataFileHandle_getSyncLyrics_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/metadata_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MetadataFileHandle_getSyncLyrics_exist
+//==== LABEL Check if MetadataFileHandle::getSyncLyrics() method exists
+//==== SPEC Tizen Web API:TBD:Metadata:MetadataFileHandle:getSyncLyrics M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+    var fileHandle, uri = TEST_DIR + "media/tct-metadata-tizen-tests_video.mp3";
+
+    fileHandle = tizen.metadata.createFileHandle(uri);
+    check_method_exists(fileHandle, "getSyncLyrics");
+
+    fileHandle.release();
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame.html
new file mode 100644 (file)
index 0000000..b4d5bd7
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>MetadataFileHandle_getThumbnailFrame</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/metadata_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MetadataFileHandle_getThumbnailFrame
+//==== LABEL Check if MetadataFileHandle::getThumbnailFrame() method works properly
+//==== SPEC Tizen Web API:TBD:Metadata:MetadataFileHandle:getThumbnailFrame M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR MNA
+
+test(function () {
+    var fileHandle, uri = TEST_DIR + "media/tct-metadata-tizen-tests_video.mp4", ret;
+
+    fileHandle = tizen.metadata.createFileHandle(uri);
+    ret = fileHandle.getThumbnailFrame();
+    assert_type(ret, "object", "Type of return value should be of object.");
+
+    fileHandle.release();
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_exist.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_exist.html
new file mode 100644 (file)
index 0000000..30c3794
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>MetadataFileHandle_getThumbnailFrame_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/metadata_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MetadataFileHandle_getThumbnailFrame_exist
+//==== LABEL Check if MetadataFileHandle::getThumbnailFrame() method exists
+//==== SPEC Tizen Web API:TBD:Metadata:MetadataFileHandle:getThumbnailFrame M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+    var fileHandle, uri = TEST_DIR + "media/tct-metadata-tizen-tests_video.mp4";
+
+    fileHandle = tizen.metadata.createFileHandle(uri);
+    check_method_exists(fileHandle, "getThumbnailFrame");
+
+    fileHandle.release();
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_extra_argument.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_extra_argument.html
new file mode 100644 (file)
index 0000000..969209f
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>MetadataFileHandle_getThumbnailFrame_extra_argument</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/metadata_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MetadataFileHandle_getThumbnailFrame_extra_argument
+//==== LABEL Check using MetadataFileHandle::getThumbnailFrame() method with extra argument
+//==== SPEC Tizen Web API:TBD:Metadata:MetadataFileHandle:getThumbnailFrame M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MNAEX
+
+test(function () {
+    var fileHandle, uri = TEST_DIR + "media/tct-metadata-tizen-tests_video.mp4";
+
+    fileHandle = tizen.metadata.createFileHandle(uri);
+    checkExtraArgument(fileHandle, "getThumbnailFrame");
+
+    fileHandle.release();
+}, document.title);
+
+</script>
+</body>
+</html>
index 3cdacd60dccc04d9f21571c0be6e9f1395d2232d..a5816b318de418c66b372c3c4b09e658c6138244 100644 (file)
@@ -40,6 +40,8 @@ test(function () {
 
     fileHandle = tizen.metadata.createFileHandle(uri);
     check_method_exists(fileHandle, "get");
+
+    fileHandle.release();
 }, document.title);
 
 </script>
index 8de06f27a057f5588f775a88360c466aa4991bfa..75f2a995e9de06a75ee2272cff65bcdcfb70c98c 100644 (file)
@@ -42,6 +42,8 @@ test(function () {
     assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         fileHandle.get();
     }, "TypeMismatchError should be thrown.");
+
+    fileHandle.release();
 }, document.title);
 
 </script>
index 3a97c88c0ddb6120b140a77209d92cf4517230b6..eba367496cd271ddb0d895421987195d6c77d020 100644 (file)
@@ -29,7 +29,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MetadataFileHandle_get_type_TypeMismatch
-//==== LABEL Check if MetadataFileHandle::get() method throws TypeMismatchException when incorrect uri given
+//==== LABEL Check if MetadataFileHandle::get() method throws exception when given incorrect metadata type
 //==== SPEC Tizen Web API:TBD:Metadata:MetadataFileHandle:get M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
 //==== PRIORITY P2
@@ -45,8 +45,10 @@ test(function () {
         wrgArg = conversionTable[i][0];
         assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             fileHandle.get(wrgArg);
-        }, "Exception should be thrown - given invalid uri");
+        }, "Exception should be thrown - given invalid metadata type");
     }
+
+    fileHandle.release();
 }, document.title);
 
 </script>
index f787a9e0fe24cc2e3ccde5405ff7d11da0daeaf2..799ca3b0766a490efc73d0da7103c4ecf747433b 100644 (file)
@@ -41,6 +41,8 @@ test(function () {
     fileHandle = tizen.metadata.createFileHandle(uri);
     assert_type(fileHandle, "object", "Type of return value should be of object.");
     assert_equals(fileHandle.uri, "file://" + uri, "The file uri is not right.");
+
+    fileHandle.release();
 }, document.title);
 
 </script>
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_lyrics_attribute.html b/common/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_lyrics_attribute.html
new file mode 100644 (file)
index 0000000..9c64f17
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>MetadataSyncLyrics_lyrics_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/metadata_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MetadataSyncLyrics_lyrics_attribute
+//==== LABEL Check if attribute lyrics of MetadataSyncLyrics exists, has type string and is readonly
+//==== SPEC Tizen Web API:TBD:Metadata:MetadataSyncLyrics:lyrics A
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA AE AT ARO
+
+test(function () {
+    var fileHandle, uri = TEST_DIR + "media/sample.mp3", mtdataSyncLyrics;
+
+    fileHandle = tizen.metadata.createFileHandle(uri);
+    mtdataSyncLyrics = fileHandle.getSyncLyrics(0);
+    check_readonly(mtdataSyncLyrics, "lyrics", mtdataSyncLyrics.lyrics, "string", "wrong");
+
+    fileHandle.release();
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_notexist.html b/common/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_notexist.html
new file mode 100644 (file)
index 0000000..425b9cb
--- /dev/null
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>MetadataSyncLyrics_notexist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/metadata_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MetadataSyncLyrics_notexist
+//==== LABEL Interface MetadataSyncLyrics should not be accessible
+//==== SPEC Tizen Web API:TBD:Metadata:MetadataSyncLyrics:MetadataSyncLyrics U
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
+//==== PRIORITY P3
+//==== TEST_CRITERIA NIO
+
+test(function () {
+    check_no_interface_object("MetadataSyncLyrics");
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_timestamp_attribute.html b/common/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_timestamp_attribute.html
new file mode 100644 (file)
index 0000000..c78c505
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>MetadataSyncLyrics_timestamp_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/metadata_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MetadataSyncLyrics_timestamp_attribute
+//==== LABEL Check if attribute timestamp of MetadataSyncLyrics exists, has type number and is readonly
+//==== SPEC Tizen Web API:TBD:Metadata:MetadataSyncLyrics:timestamp A
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA AE AT ARO
+
+test(function () {
+    var fileHandle, uri = TEST_DIR + "media/sample.mp3", mtdataSyncLyrics;
+
+    fileHandle = tizen.metadata.createFileHandle(uri);
+    mtdataSyncLyrics = fileHandle.getSyncLyrics(0);
+    check_readonly(mtdataSyncLyrics, "timestamp", mtdataSyncLyrics.timestamp, "number", "wrong");
+
+    fileHandle.release();
+}, document.title);
+
+</script>
+</body>
+</html>
index 90daa70f62bd40df37f75e1f88394eefa21ea5d1..753e7c8572286609554c4262698c60f490787f8c 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml-stylesheet type="text/xsl" href="./testcase.xsl"?>
 <test_definition>
-  <suite name="tct-metadata-tizen-tests" extension="crosswalk" category="Tizen Device APIs">
+  <suite category="Tizen Web Device APIs" extension="crosswalk" name="tct-metadata-tizen-tests">
     <set name="Metadata" type="js">
       <testcase purpose="Check if MetadataFileHandle::get() method works properly" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_get">
         <description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if MetadataFileHandle::get() method throws TypeMismatchException when incorrect uri given" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P2" id="MetadataFileHandle_get_type_TypeMismatch">
+      <testcase purpose="Check if MetadataFileHandle::getArtwork() method works properly" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_getArtwork">
         <description>
-          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_type_TypeMismatch.html</test_script_entry>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork.html</test_script_entry>
         </description>
         <specs>
           <spec>
-            <spec_assertion interface="MetadataFileHandle" element_type="method" element_name="get" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_assertion interface="MetadataFileHandle" element_type="method" element_name="getArtwork" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getArtwork() method exists" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P0" id="MetadataFileHandle_getArtwork_exist">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MetadataFileHandle" element_type="method" element_name="getArtwork" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check using MetadataFileHandle::getArtwork() method with extra argument" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_getArtwork_extra_argument">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_extra_argument.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MetadataFileHandle" element_type="method" element_name="getArtwork" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getFrameAtTime() method works properly without optional parameter" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_getFrameAtTime">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MetadataFileHandle" element_type="method" element_name="getFrameAtTime" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getFrameAtTime() method exists" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P0" id="MetadataFileHandle_getFrameAtTime_exist">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MetadataFileHandle" element_type="method" element_name="getFrameAtTime" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getFrameAtTime() method works properly" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_getFrameAtTime_with_isAccurate">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_with_isAccurate.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MetadataFileHandle" element_type="method" element_name="getFrameAtTime" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getSyncLyrics() method works properly" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_getSyncLyrics">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MetadataFileHandle" element_type="method" element_name="getSyncLyrics" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getSyncLyrics() method exists" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P0" id="MetadataFileHandle_getSyncLyrics_exist">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MetadataFileHandle" element_type="method" element_name="getSyncLyrics" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if getSyncLyrics throws exception if input index exceeds a maxmium index" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P2" id="MetadataFileHandle_getSyncLyrics_InvalidValuesError">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_InvalidValuesError.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MetadataFileHandle" element_type="method" element_name="getSyncLyrics" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getThumbnailFrame() method works properly" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_getThumbnailFrame">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MetadataFileHandle" element_type="method" element_name="getThumbnailFrame" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getThumbnailFrame() method exists" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P0" id="MetadataFileHandle_getThumbnailFrame_exist">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MetadataFileHandle" element_type="method" element_name="getThumbnailFrame" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check using MetadataFileHandle::getThumbnailFrame() method with extra argument" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_getThumbnailFrame_extra_argument">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_extra_argument.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MetadataFileHandle" element_type="method" element_name="getThumbnailFrame" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
             <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check if MetadataFileHandle::get() method throws exception when given incorrect metadata type" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P2" id="MetadataFileHandle_get_type_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_type_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MetadataFileHandle" element_type="method" element_name="get" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
       <testcase purpose="Interface MetadataFileHandle should not be accessible" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P3" id="MetadataFileHandle_notexist">
         <description>
           <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_notexist.html</test_script_entry>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check if attribute lyrics of MetadataSyncLyrics exists, has type string and is readonly" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataSyncLyrics_lyrics_attribute">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_lyrics_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MetadataSyncLyrics" element_type="attribute" element_name="lyrics" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Interface MetadataSyncLyrics should not be accessible" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P3" id="MetadataSyncLyrics_notexist">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MetadataSyncLyrics" usage="true" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute timestamp of MetadataSyncLyrics exists, has type number and is readonly" type="compliance" status="approved" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataSyncLyrics_timestamp_attribute">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_timestamp_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MetadataSyncLyrics" element_type="attribute" element_name="timestamp" specification="Metadata" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
     </set>
   </suite>
 </test_definition>
index c78631cd651ab375fd330325c6b593a16e60348c..877e66207af1eb109414f69466ba87c89c99c175 100644 (file)
@@ -1,16 +1,71 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml-stylesheet type="text/xsl" href="./testcase.xsl"?>
 <test_definition>
-  <suite name="tct-metadata-tizen-tests" extension="crosswalk" category="Tizen Device APIs">
+  <suite category="Tizen Web Device APIs" extension="crosswalk" name="tct-metadata-tizen-tests">
     <set name="Metadata" type="js">
       <testcase purpose="Check if MetadataFileHandle::get() method works properly" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_get">
         <description>
           <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if MetadataFileHandle::get() method throws TypeMismatchException when incorrect uri given" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P2" id="MetadataFileHandle_get_type_TypeMismatch">
+      <testcase purpose="Check if MetadataFileHandle::getArtwork() method works properly" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_getArtwork">
         <description>
-          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_type_TypeMismatch.html</test_script_entry>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getArtwork() method exists" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P0" id="MetadataFileHandle_getArtwork_exist">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check using MetadataFileHandle::getArtwork() method with extra argument" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_getArtwork_extra_argument">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_extra_argument.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getFrameAtTime() method works properly without optional parameter" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_getFrameAtTime">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getFrameAtTime() method exists" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P0" id="MetadataFileHandle_getFrameAtTime_exist">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getFrameAtTime() method works properly" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_getFrameAtTime_with_isAccurate">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_with_isAccurate.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getSyncLyrics() method works properly" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_getSyncLyrics">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getSyncLyrics() method exists" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P0" id="MetadataFileHandle_getSyncLyrics_exist">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getSyncLyrics throws exception if input index exceeds a maxmium index" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P2" id="MetadataFileHandle_getSyncLyrics_InvalidValuesError">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_InvalidValuesError.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getThumbnailFrame() method works properly" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_getThumbnailFrame">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MetadataFileHandle::getThumbnailFrame() method exists" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P0" id="MetadataFileHandle_getThumbnailFrame_exist">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check using MetadataFileHandle::getThumbnailFrame() method with extra argument" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataFileHandle_getThumbnailFrame_extra_argument">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_extra_argument.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if MetadataFileHandle::get() method exists" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P0" id="MetadataFileHandle_get_exist">
           <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_misarg.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="Check if MetadataFileHandle::get() method throws exception when given incorrect metadata type" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P2" id="MetadataFileHandle_get_type_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_type_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase purpose="Interface MetadataFileHandle should not be accessible" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P3" id="MetadataFileHandle_notexist">
         <description>
           <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_notexist.html</test_script_entry>
           <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataObject_notexist.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="Check if attribute lyrics of MetadataSyncLyrics exists, has type string and is readonly" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataSyncLyrics_lyrics_attribute">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_lyrics_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Interface MetadataSyncLyrics should not be accessible" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P3" id="MetadataSyncLyrics_notexist">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute timestamp of MetadataSyncLyrics exists, has type number and is readonly" component="Tizen Device APIs/System/Metadata" execution_type="auto" priority="P1" id="MetadataSyncLyrics_timestamp_attribute">
+        <description>
+          <test_script_entry>/opt/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_timestamp_attribute.html</test_script_entry>
+        </description>
+      </testcase>
     </set>
   </suite>
 </test_definition>