From: Tomasz Kusmierz Date: Mon, 23 Sep 2013 11:21:52 +0000 (+0200) Subject: [Content] clean up - part 1 X-Git-Tag: 2.2.1_release~114^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4ba5c9f99aebce5e5707ac11651e6b5318baf6e;p=test%2Ftct%2Fweb%2Fapi.git [Content] clean up - part 1 Change-Id: I18e7b7c41f8518979873f7d92575c360b052a290 --- diff --git a/tct-content-tizen-tests/content/AudioContentLyrics_extend.html b/tct-content-tizen-tests/content/AudioContentLyrics_extend.html index c9069d44e..c7ec29d5b 100644 --- a/tct-content-tizen-tests/content/AudioContentLyrics_extend.html +++ b/tct-content-tizen-tests/content/AudioContentLyrics_extend.html @@ -34,7 +34,7 @@ Authors: //==== PRIORITY P3 //==== ONLOAD_DELAY 30 //==== SPEC: Tizen Web API:Content:Content:AudioContentLyrics:AudioContentLyrics U -//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html //==== TEST_CRITERIA OBX setup({timeout: 30000}); @@ -45,11 +45,12 @@ setup_contents(t, t.step_func(function () { filter = new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"); onError = t.step_func(function (error) { - assert_unreached("Error callback was called: " + error.message); + assert_unreached("Find() Error callback was invoked: " + error.name + " msg: " + error.message); }); onSuccess = t.step_func(function (contents) { - assert_true(contents.length > 0, "media item is not found"); + assert_type(contents, "array", "contents should be an array"); + assert_greater_than(contents.length, 0, "media item is not found"); for(i = 0; i < contents.length; i++) { if(contents[i].lyrics) { @@ -66,6 +67,7 @@ setup_contents(t, t.step_func(function () { tizen.content.find(onSuccess, onError, null, filter); })); + diff --git a/tct-content-tizen-tests/content/AudioContentLyrics_notexist.html b/tct-content-tizen-tests/content/AudioContentLyrics_notexist.html index d36543835..3a6135acc 100644 --- a/tct-content-tizen-tests/content/AudioContentLyrics_notexist.html +++ b/tct-content-tizen-tests/content/AudioContentLyrics_notexist.html @@ -38,6 +38,7 @@ Authors: test(function () { check_no_interface_object("AudioContentLyrics"); }, "AudioContentLyrics_notexist"); + diff --git a/tct-content-tizen-tests/content/AudioContentLyrics_texts_attribute.html b/tct-content-tizen-tests/content/AudioContentLyrics_texts_attribute.html index 01d4be8ec..44b7c4dc1 100644 --- a/tct-content-tizen-tests/content/AudioContentLyrics_texts_attribute.html +++ b/tct-content-tizen-tests/content/AudioContentLyrics_texts_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/AudioContentLyrics_timestamps_attribute.html b/tct-content-tizen-tests/content/AudioContentLyrics_timestamps_attribute.html index 477262478..bb884fd5d 100644 --- a/tct-content-tizen-tests/content/AudioContentLyrics_timestamps_attribute.html +++ b/tct-content-tizen-tests/content/AudioContentLyrics_timestamps_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/AudioContentLyrics_type_attribute.html b/tct-content-tizen-tests/content/AudioContentLyrics_type_attribute.html index 2737a6c68..5a80a7daa 100644 --- a/tct-content-tizen-tests/content/AudioContentLyrics_type_attribute.html +++ b/tct-content-tizen-tests/content/AudioContentLyrics_type_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/AudioContent_album_attribute.html b/tct-content-tizen-tests/content/AudioContent_album_attribute.html index 307546400..4f8e19236 100644 --- a/tct-content-tizen-tests/content/AudioContent_album_attribute.html +++ b/tct-content-tizen-tests/content/AudioContent_album_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/AudioContent_artists_attribute.html b/tct-content-tizen-tests/content/AudioContent_artists_attribute.html index cfff71031..8261ec27c 100644 --- a/tct-content-tizen-tests/content/AudioContent_artists_attribute.html +++ b/tct-content-tizen-tests/content/AudioContent_artists_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/AudioContent_bitrate_attribute.html b/tct-content-tizen-tests/content/AudioContent_bitrate_attribute.html index 481a27176..41cf5eaff 100644 --- a/tct-content-tizen-tests/content/AudioContent_bitrate_attribute.html +++ b/tct-content-tizen-tests/content/AudioContent_bitrate_attribute.html @@ -33,7 +33,7 @@ Authors: //==== LABEL: Check if AudioContent have bitrate attribute with proper type, readonly //==== ONLOAD_DELAY 30 //==== SPEC: Tizen Web API:Content:Content:AudioContent:bitrate A -//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html //==== TEST_CRITERIA AE AT ARO setup({timeout: 30000}); @@ -44,11 +44,12 @@ setup_contents(t, t.step_func(function () { filter = new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"); onError = t.step_func(function (error) { - assert_unreached("Error callback was called: " + error.message); + assert_unreached("Find() Error callback was invoked: " + error.name + " msg: " + error.message); }); onSuccess = t.step_func(function (contents) { - assert_true(contents.length > 0, "media item is not found"); + assert_type(contents, "array", "contents should be an array"); + assert_greater_than(contents.length, 0, "media item is not found"); for(i = 0; i < contents.length; i++) { check_readonly(contents[i], "bitrate", contents[i].bitrate, "unsigned long", @@ -59,6 +60,7 @@ setup_contents(t, t.step_func(function () { tizen.content.find(onSuccess, onError, null, filter); })); + diff --git a/tct-content-tizen-tests/content/AudioContent_composers_attribute.html b/tct-content-tizen-tests/content/AudioContent_composers_attribute.html index 76757791d..2340d7dc6 100644 --- a/tct-content-tizen-tests/content/AudioContent_composers_attribute.html +++ b/tct-content-tizen-tests/content/AudioContent_composers_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/AudioContent_copyright_attribute.html b/tct-content-tizen-tests/content/AudioContent_copyright_attribute.html index 79a66a5ee..99c789dd3 100644 --- a/tct-content-tizen-tests/content/AudioContent_copyright_attribute.html +++ b/tct-content-tizen-tests/content/AudioContent_copyright_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/AudioContent_duration_attribute.html b/tct-content-tizen-tests/content/AudioContent_duration_attribute.html index c9bc15890..a14598a83 100644 --- a/tct-content-tizen-tests/content/AudioContent_duration_attribute.html +++ b/tct-content-tizen-tests/content/AudioContent_duration_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/AudioContent_extend.html b/tct-content-tizen-tests/content/AudioContent_extend.html index 44eb5e74e..4bf5d3ac6 100644 --- a/tct-content-tizen-tests/content/AudioContent_extend.html +++ b/tct-content-tizen-tests/content/AudioContent_extend.html @@ -34,7 +34,7 @@ Authors: //==== PRIORITY P3 //==== ONLOAD_DELAY 30 //==== SPEC: Tizen Web API:Content:Content:AudioContent:AudioContent U -//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html //==== TEST_CRITERIA OBX setup({timeout: 30000}); @@ -45,11 +45,12 @@ setup_contents(t, t.step_func(function () { filter = new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"); onError = t.step_func(function (error) { - assert_unreached("Error callback was called: " + error.message); + assert_unreached("Find() Error callback was invoked: " + error.name + " msg: " + error.message); }); onSuccess = t.step_func(function (contents) { - assert_true(contents.length > 0, "media item is not found"); + assert_type(contents, "array", "contents should be an array"); + assert_greater_than(contents.length, 0, "media item is not found"); content = contents[0]; check_extensibility(content); @@ -58,6 +59,7 @@ setup_contents(t, t.step_func(function () { tizen.content.find(onSuccess, onError, null, filter); })); + diff --git a/tct-content-tizen-tests/content/AudioContent_genres_attribute.html b/tct-content-tizen-tests/content/AudioContent_genres_attribute.html index 5a041202a..de38aa83f 100644 --- a/tct-content-tizen-tests/content/AudioContent_genres_attribute.html +++ b/tct-content-tizen-tests/content/AudioContent_genres_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/AudioContent_lyrics_attribute.html b/tct-content-tizen-tests/content/AudioContent_lyrics_attribute.html index 67468c025..90f92dbc2 100644 --- a/tct-content-tizen-tests/content/AudioContent_lyrics_attribute.html +++ b/tct-content-tizen-tests/content/AudioContent_lyrics_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/AudioContent_notexist.html b/tct-content-tizen-tests/content/AudioContent_notexist.html index 4dc70bc5b..beb01e67e 100644 --- a/tct-content-tizen-tests/content/AudioContent_notexist.html +++ b/tct-content-tizen-tests/content/AudioContent_notexist.html @@ -38,6 +38,7 @@ Authors: test(function () { check_no_interface_object("AudioContent"); }, "AudioContent_notexist"); + diff --git a/tct-content-tizen-tests/content/AudioContent_trackNumber_attribute.html b/tct-content-tizen-tests/content/AudioContent_trackNumber_attribute.html index 60c03c3ca..acefc1f60 100644 --- a/tct-content-tizen-tests/content/AudioContent_trackNumber_attribute.html +++ b/tct-content-tizen-tests/content/AudioContent_trackNumber_attribute.html @@ -33,7 +33,7 @@ Authors: //==== LABEL: Check if AudioContent have trackNumber attribute with proper type, readonly, nullable //==== ONLOAD_DELAY 30 //==== SPEC: Tizen Web API:Content:Content:AudioContent:trackNumber A -//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html //==== TEST_CRITERIA AE AT ARO setup({timeout: 30000}); @@ -44,22 +44,25 @@ setup_contents(t, t.step_func(function () { filter = new tizen.AttributeFilter("type", "EXACTLY", "AUDIO"); onError = t.step_func(function (error) { - assert_unreached("Error callback was called: " + error.message); + assert_unreached("Find() Error callback was invoked: " + error.name + " msg: " + error.message); }); onSuccess = t.step_func(function (contents) { - assert_true(contents.length > 0, "media item is not found"); + assert_type(contents, "array", "contents should be an array"); + assert_greater_than(contents.length, 0, "media item is not found"); content = contents[0]; if(content.trackNumber !== null) { check_readonly(content, "trackNumber", content.trackNumber, "number", 100); + t.done(); } - t.done(); + assert_unreached("There are no media items with track number property."); }); tizen.content.find(onSuccess, onError, null, filter); })); + diff --git a/tct-content-tizen-tests/content/ContentArraySuccessCallback_notexist.html b/tct-content-tizen-tests/content/ContentArraySuccessCallback_notexist.html index 31ec16c87..abbeeb3ae 100644 --- a/tct-content-tizen-tests/content/ContentArraySuccessCallback_notexist.html +++ b/tct-content-tizen-tests/content/ContentArraySuccessCallback_notexist.html @@ -38,6 +38,7 @@ Authors: test(function () { check_no_interface_object("ContentArraySuccessCallback"); }, "ContentArraySuccessCallback_notexist"); + diff --git a/tct-content-tizen-tests/content/ContentArraySuccessCallback_onsuccess.html b/tct-content-tizen-tests/content/ContentArraySuccessCallback_onsuccess.html index 8c93112b8..0a4ffcef0 100644 --- a/tct-content-tizen-tests/content/ContentArraySuccessCallback_onsuccess.html +++ b/tct-content-tizen-tests/content/ContentArraySuccessCallback_onsuccess.html @@ -33,7 +33,7 @@ Authors: //==== LABEL: Check if ContentArraySuccessCallback onsuccess is called and if its arguments have proper type //==== ONLOAD_DELAY 30 //==== SPEC: Tizen Web API:Content:Content:ContentArraySuccessCallback:onsuccess M -//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html //==== TEST_CRITERIA CBT CBOA setup({timeout: 30000}); @@ -51,11 +51,12 @@ setup_contents(t, t.step_func(function () { }); onError = t.step_func(function (error) { - assert_unreached("errorCallback called: " + error.name + " with message: " + error.message); + assert_unreached("Find() errorCallback called: " + error.name + " with message: " + error.message); }); tizen.content.find(onSuccess, onError); })); + diff --git a/tct-content-tizen-tests/content/ContentChangeCallback_notexist.html b/tct-content-tizen-tests/content/ContentChangeCallback_notexist.html index f08c654cc..8bd0a433a 100644 --- a/tct-content-tizen-tests/content/ContentChangeCallback_notexist.html +++ b/tct-content-tizen-tests/content/ContentChangeCallback_notexist.html @@ -38,6 +38,7 @@ Authors: test(function () { check_no_interface_object("ContentChangeCallback"); }, "ContentChangeCallback_notexist"); + diff --git a/tct-content-tizen-tests/content/ContentChangeCallback_oncontentadded.html b/tct-content-tizen-tests/content/ContentChangeCallback_oncontentadded.html index 0e95fc758..44f66c6cc 100644 --- a/tct-content-tizen-tests/content/ContentChangeCallback_oncontentadded.html +++ b/tct-content-tizen-tests/content/ContentChangeCallback_oncontentadded.html @@ -34,7 +34,7 @@ Authors: //==== LABEL: Check if ContentChangeCallback oncontentadded is called and if its arguments have proper type //==== ONLOAD_DELAY 30 //==== SPEC Tizen Web API:Content:Content:ContentChangeCallback:oncontentadded M -//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html //==== TEST_CRITERIA CBT CBOA setup({timeout: 30000}); @@ -69,6 +69,7 @@ t.step(function () { prepare_file_for_scan(addedImagePath, onCopySuccess); }); + diff --git a/tct-content-tizen-tests/content/ContentChangeCallback_oncontentremoved.html b/tct-content-tizen-tests/content/ContentChangeCallback_oncontentremoved.html index ab2b56067..1b14660fd 100644 --- a/tct-content-tizen-tests/content/ContentChangeCallback_oncontentremoved.html +++ b/tct-content-tizen-tests/content/ContentChangeCallback_oncontentremoved.html @@ -34,7 +34,7 @@ Authors: //==== LABEL: Check if ContentChangeCallback oncontentremoved is called and if its arguments have proper type //==== ONLOAD_DELAY 30 //==== SPEC Tizen Web API:Content:Content:ContentChangeCallback:oncontentremoved M -//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html //==== TEST_CRITERIA CBT CBOA setup({timeout: 30000}); @@ -114,6 +114,7 @@ t.step(function () { "r" ); }); + diff --git a/tct-content-tizen-tests/content/ContentChangeCallback_oncontentupdated.html b/tct-content-tizen-tests/content/ContentChangeCallback_oncontentupdated.html index c26bc0ac5..7efa7024b 100644 --- a/tct-content-tizen-tests/content/ContentChangeCallback_oncontentupdated.html +++ b/tct-content-tizen-tests/content/ContentChangeCallback_oncontentupdated.html @@ -38,7 +38,7 @@ Authors: setup({timeout: 30000}); var t = async_test("ContentChangeCallback_oncontentupdated", { timeout: 30000 }), - changeCallback, testDescription = "TEST DESCRIPTION", onSuccess; + changeCallback, testDescription = "TEST DESCRIPTION", onSuccess, onError; t.step(function () { //cleanup after TC @@ -51,23 +51,27 @@ t.step(function () { changeCallback = { oncontentupdated: t.step_func(function (content) { assert_type(content, "object", "content should be an object"); - assert_true(content.description === testDescription, "description should be updated"); + assert_equals(content.description, testDescription, "description should be updated"); check_content_object(content); t.done(); }) }; - onSuccess = t.step_func(function (files) { - assert_true(files.length > 0, "content is not found"); - files[0].description = testDescription; - tizen.content.update(files[0]); + onSuccess = t.step_func(function (contents) { + assert_type(contents, "array", "contents should be an array"); + assert_greater_than(contents.length, 0, "media item is not found"); + contents[0].description = testDescription; + tizen.content.update(contents[0]); + }); + onError = t.step_func(function (error) { + assert_unreached("Find() Error callback was invoked: " + error.name + " msg: " + error.message); }); tizen.content.setChangeListener(changeCallback); - - tizen.content.find(onSuccess); + tizen.content.find(onSuccess, onError); }); + diff --git a/tct-content-tizen-tests/content/ContentDirectoryArraySuccessCallback_notexist.html b/tct-content-tizen-tests/content/ContentDirectoryArraySuccessCallback_notexist.html index ad4947d68..d9aca0016 100644 --- a/tct-content-tizen-tests/content/ContentDirectoryArraySuccessCallback_notexist.html +++ b/tct-content-tizen-tests/content/ContentDirectoryArraySuccessCallback_notexist.html @@ -38,6 +38,7 @@ Authors: test(function () { check_no_interface_object("ContentDirectoryArraySuccessCallback"); }, "ContentDirectoryArraySuccessCallback_notexist"); + diff --git a/tct-content-tizen-tests/content/ContentDirectoryArraySuccessCallback_onsuccess.html b/tct-content-tizen-tests/content/ContentDirectoryArraySuccessCallback_onsuccess.html index db07d0c74..d4408bd20 100644 --- a/tct-content-tizen-tests/content/ContentDirectoryArraySuccessCallback_onsuccess.html +++ b/tct-content-tizen-tests/content/ContentDirectoryArraySuccessCallback_onsuccess.html @@ -33,17 +33,17 @@ Authors: //==== LABEL: Check if ContentDirectoryArraySuccessCallback onsuccess is called and if its arguments have proper type //==== ONLOAD_DELAY 30 //==== SPEC: Tizen Web API:Content:Content:ContentDirectoryArraySuccessCallback:onsuccess M -//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html //==== TEST_CRITERIA CBT CBOA setup({timeout: 30000}); var t = async_test("ContentDirectoryArraySuccessCallback_onsuccess", {timeout: 30000}), - onSuccess, directory; + onSuccess, onError, directory; t.step(function () { onSuccess = t.step_func(function (directories) { assert_type(directories, "array", "directories should be an array"); - assert_true(directories.length > 0, "directories was not found"); + assert_greater_than(directories.length, 0, "directories were not found"); directory = directories[0]; assert_type(directory.id, "string", "id should be a string"); @@ -57,9 +57,13 @@ t.step(function () { t.done(); }); + onError = t.step_func(function (error) { + assert_unreached("getDirectories() error callback was invoked: " + error.name + " msg: " + error.message); + }); - tizen.content.getDirectories(onSuccess); + tizen.content.getDirectories(onSuccess, onError); }); + diff --git a/tct-content-tizen-tests/content/ContentDirectory_directoryURI_attribute.html b/tct-content-tizen-tests/content/ContentDirectory_directoryURI_attribute.html index f786d1bc2..2ad5063a8 100644 --- a/tct-content-tizen-tests/content/ContentDirectory_directoryURI_attribute.html +++ b/tct-content-tizen-tests/content/ContentDirectory_directoryURI_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/ContentDirectory_extend.html b/tct-content-tizen-tests/content/ContentDirectory_extend.html index f54382ff0..9970aa860 100644 --- a/tct-content-tizen-tests/content/ContentDirectory_extend.html +++ b/tct-content-tizen-tests/content/ContentDirectory_extend.html @@ -34,7 +34,7 @@ Authors: //==== PRIORITY P3 //==== ONLOAD_DELAY 30 //==== SPEC: Tizen Web API:Content:Content:ContentDirectory:ContentDirectory U -//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html //==== TEST_CRITERIA OBX setup({timeout: 30000}); @@ -43,11 +43,12 @@ var t = async_test("ContentDirectory_extend", {timeout: 30000}), t.step(function () { onError = t.step_func(function (error) { - assert_unreached("Error callback was called: " + error.message); + assert_unreached("getDirectories() error callback was invoked: " + error.name + " msg: " + error.message); }); onSuccess = t.step_func(function (directories) { - assert_true(directories.length > 0, "content directories are not found"); + assert_type(directories, "array", "directories should be an array"); + assert_greater_than(directories.length, 0, "directories were not found"); directory = directories[0]; check_extensibility(directory); @@ -56,6 +57,7 @@ t.step(function () { tizen.content.getDirectories(onSuccess, onError); }); + diff --git a/tct-content-tizen-tests/content/ContentDirectory_id_attribute.html b/tct-content-tizen-tests/content/ContentDirectory_id_attribute.html index 25bbf91a1..8aa44bbe3 100644 --- a/tct-content-tizen-tests/content/ContentDirectory_id_attribute.html +++ b/tct-content-tizen-tests/content/ContentDirectory_id_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/ContentDirectory_modifiedDate_attribute.html b/tct-content-tizen-tests/content/ContentDirectory_modifiedDate_attribute.html index e580331a6..2fca003a2 100644 --- a/tct-content-tizen-tests/content/ContentDirectory_modifiedDate_attribute.html +++ b/tct-content-tizen-tests/content/ContentDirectory_modifiedDate_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/ContentDirectory_notexist.html b/tct-content-tizen-tests/content/ContentDirectory_notexist.html index 466c250be..f157e0928 100644 --- a/tct-content-tizen-tests/content/ContentDirectory_notexist.html +++ b/tct-content-tizen-tests/content/ContentDirectory_notexist.html @@ -38,6 +38,7 @@ Authors: test(function () { check_no_interface_object("ContentDirectory"); }, "ContentDirectory_notexist"); + diff --git a/tct-content-tizen-tests/content/ContentDirectory_storageType_attribute.html b/tct-content-tizen-tests/content/ContentDirectory_storageType_attribute.html index 64c5f5c5d..97b554774 100644 --- a/tct-content-tizen-tests/content/ContentDirectory_storageType_attribute.html +++ b/tct-content-tizen-tests/content/ContentDirectory_storageType_attribute.html @@ -33,7 +33,7 @@ Authors: //==== LABEL: Check if ContentDirectory have storageType attribute with proper type, readonly, not null //==== ONLOAD_DELAY 30 //==== SPEC: Tizen Web API:Content:Content:ContentDirectory:storageType A -//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html //==== TEST_CRITERIA AE AT ARO setup({timeout: 30000}); @@ -42,11 +42,12 @@ var t = async_test("ContentDirectory_storageType_attribute", {timeout: 30000}), t.step(function () { onError = t.step_func(function (error) { - assert_unreached("Error callback was called: " + error.message); + assert_unreached("getDirectories() error callback was invoked: " + error.name + " msg: " + error.message); }); onSuccess = t.step_func(function (directories) { - assert_true(directories.length > 0, "content directories are not found"); + assert_type(directories, "array", "directories should be an array"); + assert_greater_than(directories.length, 0, "directories were not found"); directory = directories[0]; check_readonly(directory, "storageType", directory.storageType, "string", "dummy"); @@ -56,6 +57,7 @@ t.step(function () { tizen.content.getDirectories(onSuccess, onError); }); + diff --git a/tct-content-tizen-tests/content/ContentDirectory_title_attribute.html b/tct-content-tizen-tests/content/ContentDirectory_title_attribute.html index fea652abc..9f2203792 100644 --- a/tct-content-tizen-tests/content/ContentDirectory_title_attribute.html +++ b/tct-content-tizen-tests/content/ContentDirectory_title_attribute.html @@ -33,7 +33,7 @@ Authors: //==== LABEL: Check if ContentDirectory have title attribute with proper type, readonly, not null //==== ONLOAD_DELAY 30 //==== SPEC: Tizen Web API:Content:Content:ContentDirectory:title A -//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html //==== TEST_CRITERIA AE AT ARO setup({timeout: 30000}); @@ -42,11 +42,12 @@ var t = async_test("ContentDirectory_title_attribute", {timeout: 30000}), t.step(function () { onError = t.step_func(function (error) { - assert_unreached("Error callback was called: " + error.message); + assert_unreached("getDirectories() error callback was invoked: " + error.name + " msg: " + error.message); }); onSuccess = t.step_func(function (directories) { - assert_true(directories.length > 0, "content directories are not found"); + assert_type(directories, "array", "directories should be an array"); + assert_greater_than(directories.length, 0, "directories were not found"); directory = directories[0]; check_readonly(directory, "title", directory.title, "string", "dummy"); @@ -55,6 +56,7 @@ t.step(function () { tizen.content.getDirectories(onSuccess, onError); }); + diff --git a/tct-content-tizen-tests/content/ImageContent_extend.html b/tct-content-tizen-tests/content/ImageContent_extend.html index 60a38c3c4..cd6207456 100644 --- a/tct-content-tizen-tests/content/ImageContent_extend.html +++ b/tct-content-tizen-tests/content/ImageContent_extend.html @@ -34,7 +34,7 @@ Authors: //==== PRIORITY P3 //==== ONLOAD_DELAY 30 //==== SPEC: Tizen Web API:Content:Content:ImageContent:ImageContent U -//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html //==== TEST_CRITERIA OBX setup({timeout: 30000}); @@ -45,11 +45,12 @@ setup_contents(t, t.step_func(function () { filter = new tizen.AttributeFilter("type", "EXACTLY", "IMAGE"); onError = t.step_func(function (error) { - assert_unreached("Error callback was called: " + error.message); + assert_unreached("Find() Error callback was invoked: " + error.name + " msg: " + error.message); }); onSuccess = t.step_func(function (contents) { - assert_true(contents.length > 0, "media item is not found"); + assert_type(contents, "array", "contents should be an array"); + assert_greater_than(contents.length, 0, "media item is not found"); content = contents[0]; check_extensibility(content); @@ -58,6 +59,7 @@ setup_contents(t, t.step_func(function () { tizen.content.find(onSuccess, onError, null, filter); })); + diff --git a/tct-content-tizen-tests/content/ImageContent_geolocation_attribute.html b/tct-content-tizen-tests/content/ImageContent_geolocation_attribute.html index 2c84922a9..1a059f802 100644 --- a/tct-content-tizen-tests/content/ImageContent_geolocation_attribute.html +++ b/tct-content-tizen-tests/content/ImageContent_geolocation_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/ImageContent_height_attribute.html b/tct-content-tizen-tests/content/ImageContent_height_attribute.html index 1ca9d79a8..937c1a613 100644 --- a/tct-content-tizen-tests/content/ImageContent_height_attribute.html +++ b/tct-content-tizen-tests/content/ImageContent_height_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/ImageContent_notexist.html b/tct-content-tizen-tests/content/ImageContent_notexist.html index cfcf94a45..fe35f23ff 100644 --- a/tct-content-tizen-tests/content/ImageContent_notexist.html +++ b/tct-content-tizen-tests/content/ImageContent_notexist.html @@ -38,6 +38,7 @@ Authors: test(function () { check_no_interface_object("ImageContent"); }, "ImageContent_notexist"); + diff --git a/tct-content-tizen-tests/content/ImageContent_orientation_attribute.html b/tct-content-tizen-tests/content/ImageContent_orientation_attribute.html index 3aa8b73fe..a691513ad 100644 --- a/tct-content-tizen-tests/content/ImageContent_orientation_attribute.html +++ b/tct-content-tizen-tests/content/ImageContent_orientation_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/ImageContent_width_attribute.html b/tct-content-tizen-tests/content/ImageContent_width_attribute.html index a4eef5b15..1ddc1d35f 100644 --- a/tct-content-tizen-tests/content/ImageContent_width_attribute.html +++ b/tct-content-tizen-tests/content/ImageContent_width_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/VideoContent_album_attribute.html b/tct-content-tizen-tests/content/VideoContent_album_attribute.html index 738da3a6c..9978e3a0c 100644 --- a/tct-content-tizen-tests/content/VideoContent_album_attribute.html +++ b/tct-content-tizen-tests/content/VideoContent_album_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/VideoContent_artists_attribute.html b/tct-content-tizen-tests/content/VideoContent_artists_attribute.html index cfd35765e..d1c426ba6 100644 --- a/tct-content-tizen-tests/content/VideoContent_artists_attribute.html +++ b/tct-content-tizen-tests/content/VideoContent_artists_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/VideoContent_duration_attribute.html b/tct-content-tizen-tests/content/VideoContent_duration_attribute.html index 78d1e36ba..7b25533b3 100644 --- a/tct-content-tizen-tests/content/VideoContent_duration_attribute.html +++ b/tct-content-tizen-tests/content/VideoContent_duration_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/VideoContent_extend.html b/tct-content-tizen-tests/content/VideoContent_extend.html index 4562a9252..d2cb4c8d4 100644 --- a/tct-content-tizen-tests/content/VideoContent_extend.html +++ b/tct-content-tizen-tests/content/VideoContent_extend.html @@ -34,7 +34,7 @@ Authors: //==== PRIORITY P3 //==== ONLOAD_DELAY 30 //==== SPEC: Tizen Web API:Content:Content:VideoContent:VideoContent U -//==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html +//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html //==== TEST_CRITERIA OBX setup({timeout: 30000}); @@ -45,11 +45,12 @@ setup_contents(t, t.step_func(function () { filter = new tizen.AttributeFilter("type", "EXACTLY", "VIDEO"); onError = t.step_func(function (error) { - assert_unreached("Error callback was called: " + error.message); + assert_unreached("Find() Error callback was invoked: " + error.name + " msg: " + error.message); }); onSuccess = t.step_func(function (contents) { - assert_true(contents.length > 0, "media item is not found"); + assert_type(contents, "array", "contents should be an array"); + assert_greater_than(contents.length, 0, "media item is not found"); content = contents[0]; check_extensibility(content); @@ -58,6 +59,7 @@ setup_contents(t, t.step_func(function () { tizen.content.find(onSuccess, onError, null, filter); })); + diff --git a/tct-content-tizen-tests/content/VideoContent_geolocation_attribute.html b/tct-content-tizen-tests/content/VideoContent_geolocation_attribute.html index 8f32d6929..6883953d9 100644 --- a/tct-content-tizen-tests/content/VideoContent_geolocation_attribute.html +++ b/tct-content-tizen-tests/content/VideoContent_geolocation_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/VideoContent_height_attribute.html b/tct-content-tizen-tests/content/VideoContent_height_attribute.html index 66ffc5b2d..91fe3f343 100644 --- a/tct-content-tizen-tests/content/VideoContent_height_attribute.html +++ b/tct-content-tizen-tests/content/VideoContent_height_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/content/VideoContent_notexist.html b/tct-content-tizen-tests/content/VideoContent_notexist.html index fcc9c136d..e90e7b4ff 100644 --- a/tct-content-tizen-tests/content/VideoContent_notexist.html +++ b/tct-content-tizen-tests/content/VideoContent_notexist.html @@ -38,6 +38,7 @@ Authors: test(function () { check_no_interface_object("VideoContent"); }, "VideoContent_notexist"); + diff --git a/tct-content-tizen-tests/content/VideoContent_width_attribute.html b/tct-content-tizen-tests/content/VideoContent_width_attribute.html index 99c11402c..549535ebd 100644 --- a/tct-content-tizen-tests/content/VideoContent_width_attribute.html +++ b/tct-content-tizen-tests/content/VideoContent_width_attribute.html @@ -30,10 +30,10 @@ Authors:
diff --git a/tct-content-tizen-tests/tests.full.xml b/tct-content-tizen-tests/tests.full.xml index 534990b89..12ec1e3b0 100644 --- a/tct-content-tizen-tests/tests.full.xml +++ b/tct-content-tizen-tests/tests.full.xml @@ -675,7 +675,7 @@ - + /opt/tct-content-tizen-tests/content/ImageContent_geolocation_attribute.html @@ -687,7 +687,7 @@ - + /opt/tct-content-tizen-tests/content/ImageContent_width_attribute.html @@ -699,7 +699,7 @@ - + /opt/tct-content-tizen-tests/content/ImageContent_height_attribute.html @@ -711,7 +711,7 @@ - + /opt/tct-content-tizen-tests/content/ImageContent_orientation_attribute.html @@ -1119,7 +1119,7 @@ - + /opt/tct-content-tizen-tests/content/VideoContent_geolocation_attribute.html @@ -1131,7 +1131,7 @@ - + /opt/tct-content-tizen-tests/content/VideoContent_height_attribute.html @@ -1143,7 +1143,7 @@ - + /opt/tct-content-tizen-tests/content/VideoContent_width_attribute.html @@ -1155,7 +1155,7 @@ - + /opt/tct-content-tizen-tests/content/VideoContent_duration_attribute.html @@ -1167,7 +1167,7 @@ - + /opt/tct-content-tizen-tests/content/VideoContent_album_attribute.html @@ -1179,7 +1179,7 @@ - + /opt/tct-content-tizen-tests/content/VideoContent_artists_attribute.html @@ -1251,7 +1251,7 @@ - + /opt/tct-content-tizen-tests/content/AudioContent_album_attribute.html @@ -1263,7 +1263,7 @@ - + /opt/tct-content-tizen-tests/content/AudioContent_artists_attribute.html @@ -1287,7 +1287,7 @@ - + /opt/tct-content-tizen-tests/content/AudioContent_duration_attribute.html @@ -1323,7 +1323,7 @@ - + /opt/tct-content-tizen-tests/content/AudioContent_genres_attribute.html @@ -1335,7 +1335,7 @@ - + /opt/tct-content-tizen-tests/content/AudioContent_composers_attribute.html @@ -1347,7 +1347,7 @@ - + /opt/tct-content-tizen-tests/content/AudioContent_copyright_attribute.html @@ -1359,7 +1359,7 @@ - + /opt/tct-content-tizen-tests/content/AudioContent_lyrics_attribute.html @@ -1383,7 +1383,7 @@ - + /opt/tct-content-tizen-tests/content/AudioContentLyrics_type_attribute.html @@ -1395,7 +1395,7 @@ - + /opt/tct-content-tizen-tests/content/AudioContentLyrics_timestamps_attribute.html @@ -1407,7 +1407,7 @@ - + /opt/tct-content-tizen-tests/content/AudioContentLyrics_texts_attribute.html @@ -1431,7 +1431,7 @@ - + /opt/tct-content-tizen-tests/content/ContentDirectory_id_attribute.html @@ -1443,7 +1443,7 @@ - + /opt/tct-content-tizen-tests/content/ContentDirectory_directoryURI_attribute.html @@ -1467,7 +1467,7 @@ - + /opt/tct-content-tizen-tests/content/ContentDirectory_modifiedDate_attribute.html diff --git a/tct-content-tizen-tests/tests.xml b/tct-content-tizen-tests/tests.xml index 2119e1d94..c70a5b749 100644 --- a/tct-content-tizen-tests/tests.xml +++ b/tct-content-tizen-tests/tests.xml @@ -283,22 +283,22 @@ /opt/tct-content-tizen-tests/content/ImageContent_extend.html - + /opt/tct-content-tizen-tests/content/ImageContent_geolocation_attribute.html - + /opt/tct-content-tizen-tests/content/ImageContent_width_attribute.html - + /opt/tct-content-tizen-tests/content/ImageContent_height_attribute.html - + /opt/tct-content-tizen-tests/content/ImageContent_orientation_attribute.html @@ -468,32 +468,32 @@ /opt/tct-content-tizen-tests/content/VideoContent_extend.html - + /opt/tct-content-tizen-tests/content/VideoContent_geolocation_attribute.html - + /opt/tct-content-tizen-tests/content/VideoContent_height_attribute.html - + /opt/tct-content-tizen-tests/content/VideoContent_width_attribute.html - + /opt/tct-content-tizen-tests/content/VideoContent_duration_attribute.html - + /opt/tct-content-tizen-tests/content/VideoContent_album_attribute.html - + /opt/tct-content-tizen-tests/content/VideoContent_artists_attribute.html @@ -523,12 +523,12 @@ /opt/tct-content-tizen-tests/content/ContentManager_updateBatch_with_successCallback.html - + /opt/tct-content-tizen-tests/content/AudioContent_album_attribute.html - + /opt/tct-content-tizen-tests/content/AudioContent_artists_attribute.html @@ -538,7 +538,7 @@ /opt/tct-content-tizen-tests/content/AudioContent_bitrate_attribute.html - + /opt/tct-content-tizen-tests/content/AudioContent_duration_attribute.html @@ -553,22 +553,22 @@ /opt/tct-content-tizen-tests/content/AudioContent_trackNumber_attribute.html - + /opt/tct-content-tizen-tests/content/AudioContent_genres_attribute.html - + /opt/tct-content-tizen-tests/content/AudioContent_composers_attribute.html - + /opt/tct-content-tizen-tests/content/AudioContent_copyright_attribute.html - + /opt/tct-content-tizen-tests/content/AudioContent_lyrics_attribute.html @@ -578,17 +578,17 @@ /opt/tct-content-tizen-tests/content/AudioContentLyrics_extend.html - + /opt/tct-content-tizen-tests/content/AudioContentLyrics_type_attribute.html - + /opt/tct-content-tizen-tests/content/AudioContentLyrics_timestamps_attribute.html - + /opt/tct-content-tizen-tests/content/AudioContentLyrics_texts_attribute.html @@ -598,12 +598,12 @@ /opt/tct-content-tizen-tests/content/ContentDirectory_extend.html - + /opt/tct-content-tizen-tests/content/ContentDirectory_id_attribute.html - + /opt/tct-content-tizen-tests/content/ContentDirectory_directoryURI_attribute.html @@ -613,7 +613,7 @@ /opt/tct-content-tizen-tests/content/ContentDirectory_title_attribute.html - + /opt/tct-content-tizen-tests/content/ContentDirectory_modifiedDate_attribute.html