From: qunfang.lin Date: Fri, 25 Dec 2020 09:45:44 +0000 (+0800) Subject: [common][metadata][TWDAPI-271, add new TCs according to new APIs] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=072b95b9894ec99bf11a138632b6410c11a83211;p=test%2Ftct%2Fweb%2Fapi.git [common][metadata][TWDAPI-271, add new TCs according to new APIs] - add: 15 TC, modify: 5 TCs, delete: 0 TC Change-Id: I935ef0e8a087b9bcf41201e1dbfe0b0de55377c9 Signed-off-by: qunfang.lin --- diff --git a/common/tct-metadata-tizen-tests/media/sample.mp3 b/common/tct-metadata-tizen-tests/media/sample.mp3 new file mode 100755 index 000000000..ce7fd6f6e 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 index 000000000..59ec8aa79 Binary files /dev/null and b/common/tct-metadata-tizen-tests/media/tct-metadata-tizen-tests_video.mp3 differ diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get.html index dae37f283..dc3dfff30 100644 --- a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get.html +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get.html @@ -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); 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 index 000000000..1712a92f9 --- /dev/null +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork.html @@ -0,0 +1,50 @@ + + + + +MetadataFileHandle_getArtwork + + + + + +
+ + + 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 index 000000000..22e601f6c --- /dev/null +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_exist.html @@ -0,0 +1,49 @@ + + + + +MetadataFileHandle_getArtwork_exist + + + + + +
+ + + 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 index 000000000..8ff45a548 --- /dev/null +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_extra_argument.html @@ -0,0 +1,49 @@ + + + + +MetadataFileHandle_getArtwork_extra_argument + + + + + +
+ + + 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 index 000000000..b023cea62 --- /dev/null +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime.html @@ -0,0 +1,50 @@ + + + + +MetadataFileHandle_getFrameAtTime + + + + + +
+ + + 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 index 000000000..89b97872e --- /dev/null +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_exist.html @@ -0,0 +1,49 @@ + + + + +MetadataFileHandle_getFrameAtTime_exist + + + + + +
+ + + 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 index 000000000..65861cbbe --- /dev/null +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_with_isAccurate.html @@ -0,0 +1,50 @@ + + + + +MetadataFileHandle_getFrameAtTime_with_isAccurate + + + + + +
+ + + 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 index 000000000..d41414363 --- /dev/null +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics.html @@ -0,0 +1,50 @@ + + + + +MetadataFileHandle_getSyncLyrics + + + + + +
+ + + 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 index 000000000..d8da0da23 --- /dev/null +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_InvalidValuesError.html @@ -0,0 +1,54 @@ + + + + +MetadataFileHandle_getSyncLyrics_InvalidValuesError + + + + + +
+ + + 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 index 000000000..f6a3edbce --- /dev/null +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_exist.html @@ -0,0 +1,49 @@ + + + + +MetadataFileHandle_getSyncLyrics_exist + + + + + +
+ + + 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 index 000000000..b4d5bd7f6 --- /dev/null +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame.html @@ -0,0 +1,50 @@ + + + + +MetadataFileHandle_getThumbnailFrame + + + + + +
+ + + 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 index 000000000..30c37944b --- /dev/null +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_exist.html @@ -0,0 +1,49 @@ + + + + +MetadataFileHandle_getThumbnailFrame_exist + + + + + +
+ + + 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 index 000000000..969209fa8 --- /dev/null +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_extra_argument.html @@ -0,0 +1,49 @@ + + + + +MetadataFileHandle_getThumbnailFrame_extra_argument + + + + + +
+ + + diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_exist.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_exist.html index 3cdacd60d..a5816b318 100644 --- a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_exist.html +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_exist.html @@ -40,6 +40,8 @@ test(function () { fileHandle = tizen.metadata.createFileHandle(uri); check_method_exists(fileHandle, "get"); + + fileHandle.release(); }, document.title); diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_misarg.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_misarg.html index 8de06f27a..75f2a995e 100644 --- a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_misarg.html +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_misarg.html @@ -42,6 +42,8 @@ test(function () { assert_throws(TYPE_MISMATCH_EXCEPTION, function () { fileHandle.get(); }, "TypeMismatchError should be thrown."); + + fileHandle.release(); }, document.title); diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_type_TypeMismatch.html b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_type_TypeMismatch.html index 3a97c88c0..eba367496 100644 --- a/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_type_TypeMismatch.html +++ b/common/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_type_TypeMismatch.html @@ -29,7 +29,7 @@ Authors:
diff --git a/common/tct-metadata-tizen-tests/metadata/MetadataManager_createFileHandle.html b/common/tct-metadata-tizen-tests/metadata/MetadataManager_createFileHandle.html index f787a9e0f..799ca3b07 100644 --- a/common/tct-metadata-tizen-tests/metadata/MetadataManager_createFileHandle.html +++ b/common/tct-metadata-tizen-tests/metadata/MetadataManager_createFileHandle.html @@ -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); 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 index 000000000..9c64f17de --- /dev/null +++ b/common/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_lyrics_attribute.html @@ -0,0 +1,50 @@ + + + + +MetadataSyncLyrics_lyrics_attribute + + + + + +
+ + + 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 index 000000000..425b9cb64 --- /dev/null +++ b/common/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_notexist.html @@ -0,0 +1,44 @@ + + + + +MetadataSyncLyrics_notexist + + + + + +
+ + + 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 index 000000000..c78c50530 --- /dev/null +++ b/common/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_timestamp_attribute.html @@ -0,0 +1,50 @@ + + + + +MetadataSyncLyrics_timestamp_attribute + + + + + +
+ + + diff --git a/common/tct-metadata-tizen-tests/tests.full.xml b/common/tct-metadata-tizen-tests/tests.full.xml index 90daa70f6..753e7c857 100644 --- a/common/tct-metadata-tizen-tests/tests.full.xml +++ b/common/tct-metadata-tizen-tests/tests.full.xml @@ -1,7 +1,7 @@ - + @@ -15,13 +15,145 @@ - + - /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_type_TypeMismatch.html + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork.html - + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html + TBD + + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_exist.html + + + + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html + TBD + + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_extra_argument.html + + + + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html + TBD + + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime.html + + + + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html + TBD + + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_exist.html + + + + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html + TBD + + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_with_isAccurate.html + + + + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html + TBD + + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics.html + + + + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html + TBD + + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_exist.html + + + + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html + TBD + + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_InvalidValuesError.html + + + + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html + TBD + + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame.html + + + + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html + TBD + + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_exist.html + + + + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html + TBD + + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_extra_argument.html + + + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html TBD @@ -51,6 +183,18 @@ + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_type_TypeMismatch.html + + + + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html + TBD + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_notexist.html @@ -207,6 +351,42 @@ + + + /opt/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_lyrics_attribute.html + + + + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html + TBD + + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_notexist.html + + + + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html + TBD + + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_timestamp_attribute.html + + + + + https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/metadata.html + TBD + + + diff --git a/common/tct-metadata-tizen-tests/tests.xml b/common/tct-metadata-tizen-tests/tests.xml index c78631cd6..877e66207 100644 --- a/common/tct-metadata-tizen-tests/tests.xml +++ b/common/tct-metadata-tizen-tests/tests.xml @@ -1,16 +1,71 @@ - + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get.html - + - /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_type_TypeMismatch.html + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork.html + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_exist.html + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getArtwork_extra_argument.html + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime.html + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_exist.html + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getFrameAtTime_with_isAccurate.html + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics.html + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_exist.html + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getSyncLyrics_InvalidValuesError.html + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame.html + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_exist.html + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_getThumbnailFrame_extra_argument.html @@ -23,6 +78,11 @@ /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_misarg.html + + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_get_type_TypeMismatch.html + + /opt/tct-metadata-tizen-tests/metadata/MetadataFileHandle_notexist.html @@ -88,6 +148,21 @@ /opt/tct-metadata-tizen-tests/metadata/MetadataObject_notexist.html + + + /opt/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_lyrics_attribute.html + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_notexist.html + + + + + /opt/tct-metadata-tizen-tests/metadata/MetadataSyncLyrics_timestamp_attribute.html + +