From: Piotr Szydelko
Date: Tue, 8 Oct 2013 06:48:56 +0000 (+0200)
Subject: [Filesystem] code consistency improvement
X-Git-Tag: 2.2.1_release~105^2~10
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dfa0255cafcedf118f1b8fe0829a8bded4a77370;p=test%2Ftct%2Fweb%2Fapi.git
[Filesystem] code consistency improvement
Change-Id: I35aafb64cb80f048535fd8ec02f238608efa6527
---
diff --git a/tct-filesystem-tizen-tests/filesystem/FileArraySuccessCallback_notexist.html b/tct-filesystem-tizen-tests/filesystem/FileArraySuccessCallback_notexist.html
index 78fd364c5..eabc37cce 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileArraySuccessCallback_notexist.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileArraySuccessCallback_notexist.html
@@ -22,20 +22,20 @@ Authors:
FileArraySuccessCallback_notexist
-
+
diff --git a/tct-filesystem-tizen-tests/filesystem/FileArraySuccessCallback_onsuccess.html b/tct-filesystem-tizen-tests/filesystem/FileArraySuccessCallback_onsuccess.html
index 11839a670..0d0c965d0 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileArraySuccessCallback_onsuccess.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileArraySuccessCallback_onsuccess.html
@@ -24,7 +24,7 @@ Authors:
FileArraySuccessCallback_onsuccess
-
+
@@ -32,13 +32,13 @@ Authors:
+
diff --git a/tct-filesystem-tizen-tests/filesystem/FileStreamSuccessCallback_onsuccess.html b/tct-filesystem-tizen-tests/filesystem/FileStreamSuccessCallback_onsuccess.html
index 444387492..f33cae574 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileStreamSuccessCallback_onsuccess.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileStreamSuccessCallback_onsuccess.html
@@ -23,19 +23,19 @@ Authors:
FileStreamSuccessCallback_onsuccess
-
+
+
@@ -48,7 +48,7 @@ Authors:
//==== SPEC Tizen Web API:IO:Filesystem:FileStream:bytesAvailable A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA AE ARO AT
-var t = async_test("FileStream_bytesAvailable_attribute"),
+var t = async_test(document.title),
resolveSuccess, resolveError, openStreamSuccess, openStreamError, file,
testStr = "1234", fsTestFileName = getFileName("existFile01.txt");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileStream_close.html b/tct-filesystem-tizen-tests/filesystem/FileStream_close.html
index e7ae29d4a..85d0d29ad 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileStream_close.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileStream_close.html
@@ -27,7 +27,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
Mariusz Polasinski
-->
@@ -36,7 +36,7 @@ Authors:
FileStream_close
-
+
@@ -49,7 +49,7 @@ Authors:
//==== SPEC Tizen Web API:IO:Filesystem:FileStream:close M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MNA MR MNAST
-var t = async_test("FileStream_close"),
+var t = async_test(document.title),
fsTestFileName = getFileName("closeFile.txt"), retVal = null,
resolveSuccess, resolveError, openStreamSuccess, openStreamError, file;
@@ -58,7 +58,7 @@ t.step(function () {
fs.write("abcdefg");
retVal = fs.close();
assert_equals(retVal, undefined, "incorrect returned value close()");
- assert_throws({name: "IOError"}, function () {
+ assert_throws(IO_EXCEPTION, function () {
fs.read(2);
});
t.done();
diff --git a/tct-filesystem-tizen-tests/filesystem/FileStream_close_exist.html b/tct-filesystem-tizen-tests/filesystem/FileStream_close_exist.html
index a5d95ac15..805f716c2 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileStream_close_exist.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileStream_close_exist.html
@@ -27,7 +27,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
-->
@@ -35,7 +35,7 @@ Authors:
FileStream_close_exist
-
+
@@ -48,7 +48,7 @@ Authors:
//==== SPEC Tizen Web API:IO:Filesystem:FileStream:close M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA ME
-var t = async_test("FileStream_close_exist"),
+var t = async_test(document.title),
fsTestFileName = getFileName("existFile04.txt"),
resolveSuccess, resolveError, openStreamSuccess, openStreamError, file;
diff --git a/tct-filesystem-tizen-tests/filesystem/FileStream_close_extra_argument.html b/tct-filesystem-tizen-tests/filesystem/FileStream_close_extra_argument.html
index caee5c931..b1cfdb8f5 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileStream_close_extra_argument.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileStream_close_extra_argument.html
@@ -23,7 +23,7 @@ Authors:
FileStream_close_extra_argument
-
+
@@ -36,7 +36,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MNAEX
-var t = async_test("FileStream_close_extra_argument"),
+var t = async_test(document.title),
fsTestFileName = getFileName("TestFile.txt"),
resolveSuccess, resolveError, file, openStreamSuccess, openStreamError;
t.step(function () {
diff --git a/tct-filesystem-tizen-tests/filesystem/FileStream_eof_attribute.html b/tct-filesystem-tizen-tests/filesystem/FileStream_eof_attribute.html
index 69a095c65..792fc9375 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileStream_eof_attribute.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileStream_eof_attribute.html
@@ -27,7 +27,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
-->
@@ -35,7 +35,7 @@ Authors:
FileStream_eof_attribute
-
+
@@ -47,7 +47,7 @@ Authors:
//==== SPEC Tizen Web API:IO:Filesystem:FileStream:eof A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA AE ARO AT
-var t = async_test("FileStream_eof_attribute"),
+var t = async_test(document.title),
fsTestFileName = getFileName("existFile02.txt"),
resolveSuccess, resolveError, openStreamSuccess, openStreamError, file;
t.step(function () {
diff --git a/tct-filesystem-tizen-tests/filesystem/FileStream_extend.html b/tct-filesystem-tizen-tests/filesystem/FileStream_extend.html
index ebd8a9394..5f44b9e05 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileStream_extend.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileStream_extend.html
@@ -22,19 +22,19 @@ Authors:
FileStream_extend
-
+
+
diff --git a/tct-filesystem-tizen-tests/filesystem/FileStream_position_attribute.html b/tct-filesystem-tizen-tests/filesystem/FileStream_position_attribute.html
index 78afd3359..f2842729d 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileStream_position_attribute.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileStream_position_attribute.html
@@ -27,7 +27,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
Mariusz Polasinski
-->
@@ -36,7 +36,7 @@ Authors:
FileStream_position_attribute
-
+
@@ -48,7 +48,7 @@ Authors:
//==== SPEC Tizen Web API:IO:Filesystem:FileStream:position A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA AE AT ASG AN
-var t = async_test("FileStream_position_attribute"),
+var t = async_test(document.title),
fsTestFileName = getFileName("existFile0.txt"),
resolveSuccess, resolveError, openStreamSuccess, openStreamError, file;
t.step(function () {
diff --git a/tct-filesystem-tizen-tests/filesystem/FileStream_read.html b/tct-filesystem-tizen-tests/filesystem/FileStream_read.html
index 898970669..f7e56d3c2 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileStream_read.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileStream_read.html
@@ -27,7 +27,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
-->
@@ -42,12 +42,12 @@ Authors:
+
+
+
@@ -35,7 +35,7 @@ Authors:
//==== SPEC Tizen Web API:IO:Filesystem:FileStream:writeBase64 M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MAST MMINA MR
-var t = async_test("FileStream_writeBase64"),
+var t = async_test(document.title),
resolveSuccess, resolveError, openStreamWSuccess, openStreamRSuccess, retVal = null,
openStreamError, file, base64String = "YWJjZGVmZw==", expected = "abcdefg",
readString, fsTestFileName = getFileName("readBaseFile.txt");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_exist.html b/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_exist.html
index a57062c12..233d9f34f 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_exist.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_exist.html
@@ -27,7 +27,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
-->
@@ -47,7 +47,7 @@ Authors:
//==== SPEC Tizen Web API:IO:Filesystem:FileStream:writeBase64 M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA ME
-var t = async_test("FileStream_writeBase64_exist"),
+var t = async_test(document.title),
resolveSuccess, resolveError, openStreamSuccess, openStreamError, file,
fsTestFileName = getFileName("readBaseFile.txt");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_without_w_permission.html b/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_without_w_permission.html
index 453574d56..b4f762024 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_without_w_permission.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_without_w_permission.html
@@ -27,7 +27,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
-->
@@ -42,7 +42,7 @@ Authors:
+
@@ -36,7 +36,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MAST MMINA MR
-var t = async_test("FileStream_writeBytes"),
+var t = async_test(document.title),
resolveSuccess, resolveError, openStreamWithWSuccess, openStreamWithRSuccess,
openStreamError, file, bytes, testString = [1, 2, 3, 4, 5, 6, 7], retVal = null,
fsTestFileName = getFileName("writeBytes.txt");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_byteData_TypeMismatch.html b/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_byteData_TypeMismatch.html
index bdcfb6b0d..3ec8b1126 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_byteData_TypeMismatch.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_byteData_TypeMismatch.html
@@ -23,7 +23,7 @@ Authors:
FileStream_writeBytes_byteData_TypeMismatch
-
+
@@ -37,7 +37,7 @@ Authors:
//==== TEST_CRITERIA MC
// Check if method writeBytes of FileStream works properly.
-var t = async_test("FileStream_writeBytes_byteData_TypeMismatch"),
+var t = async_test(document.title),
resolveSuccess, resolveError, openStreamSuccess, openStreamError,
file, conversionTable, bytes, i, exceptionName = "TypeMismatchError",
fsTestFileName = getFileName("readBytesFiletest3.txt");
@@ -49,7 +49,7 @@ t.step(function (){
bytes = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName}, function () {
+ assert_throws({name: exceptionName}, function () {
fs.writeBytes(bytes);
}, exceptionName + " should be thrown - given incorrect byteData.");
}
diff --git a/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_exist.html b/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_exist.html
index 2e27fb60e..21ae7eb4a 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_exist.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_exist.html
@@ -27,7 +27,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
-->
@@ -48,7 +48,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
// check if method: writeBytes is exist
//==== TEST_CRITERIA ME
-var t = async_test("FileStream_writeBytes_exist"),
+var t = async_test(document.title),
resolveSuccess, resolveError, openStreamSuccess, openStreamError, file,
fsTestFileName = getFileName("existFile09.txt");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_missarg.html b/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_missarg.html
index ba4ebb6a7..8469873bd 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_missarg.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_missarg.html
@@ -23,7 +23,7 @@ Authors:
FileStream_writeBytes_missarg
-
+
@@ -36,7 +36,7 @@ Authors:
//==== TEST_CRITERIA MMA
// Check if method writeBytes of FileStream works properly.
-var t = async_test("FileStream_writeBytes_missarg"),
+var t = async_test(document.title),
resolveSuccess, resolveError, openStreamSuccess, openStreamError, file,
expected = "TypeMismatchError",
fsTestFileName = getFileName("readBytesFiletest2.txt");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_with_additional_null_parameter.html b/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_with_additional_null_parameter.html
index 0b20b4548..6995d52bd 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_with_additional_null_parameter.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_with_additional_null_parameter.html
@@ -26,7 +26,7 @@ Authors:
FileStream_writeBytes_with_additional_null_parameter
-
+
@@ -34,11 +34,11 @@ Authors:
+
diff --git a/tct-filesystem-tizen-tests/filesystem/FileStringSuccessCallback_onsuccess.html b/tct-filesystem-tizen-tests/filesystem/FileStringSuccessCallback_onsuccess.html
index eb21abdc3..aa0c80e94 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileStringSuccessCallback_onsuccess.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileStringSuccessCallback_onsuccess.html
@@ -23,19 +23,19 @@ Authors:
FileStringSuccessCallback_onsuccess
-
+
+
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSuccessCallback_onsuccess.html b/tct-filesystem-tizen-tests/filesystem/FileSuccessCallback_onsuccess.html
index f49749246..9671095cc 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSuccessCallback_onsuccess.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSuccessCallback_onsuccess.html
@@ -24,7 +24,7 @@ Authors:
FileSuccessCallback_onsuccess
-
+
@@ -32,13 +32,13 @@ Authors:
+
@@ -37,7 +37,7 @@ Authors:
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener.html
index 284a1e8c1..856869a52 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_addStorageStateChangeListener
-
+
@@ -36,7 +36,7 @@ Authors:
//==== TEST_CRITERIA MMINA MR
// Check addStorageStateChangeListener with non-optional arguments
-var t = async_test("FileSystemManager_addStorageStateChangeListener"),
+var t = async_test(document.title),
successCallback, retValue = null;
t.step(function () {
successCallback = t.step_func(function (storages) {
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_exist.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_exist.html
index d1397deb8..4fed4e0eb 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_exist.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_exist.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_addStorageStateChangeListener_exist
-
+
@@ -40,7 +40,7 @@ test(function () {
assert_true("addStorageStateChangeListener" in tizen.filesystem,
"No addStorageStateChangeListener method in tizen.filesystem");
check_method_exists(tizen.filesystem, "addStorageStateChangeListener");
-}, "FileSystemManager_addStorageStateChangeListener_exist");
+}, document.title);
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_missarg.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_missarg.html
index 23972db05..f2f7a8d8b 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_missarg.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_missarg.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_addStorageStateChangeListener_missarg
-
+
@@ -37,11 +37,11 @@ Authors:
//==== TEST_CRITERIA MMA
test(function () {
- assert_throws({ name: "TypeMismatchError" },
+ assert_throws(TYPE_MISMATCH_EXCEPTION,
function () {
tizen.filesystem.addStorageStateChangeListener();
}, "Method should throw an exception");
-}, "FileSystemManager_addStorageStateChangeListener_missarg");
+}, document.title);
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_TypeMismatch.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_TypeMismatch.html
index f715cd838..eb2c28826 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_TypeMismatch.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_TypeMismatch.html
@@ -22,7 +22,7 @@ Authors:
FileSystemManager_addStorageStateChangeListener_onerror_TypeMismatch
-
+
@@ -35,7 +35,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MC
-var t = async_test("FileSystemManager_addStorageStateChangeListener_onerror_TypeMismatch"), i,
+var t = async_test(document.title), i,
onSuccess, onError, exceptionName, conversionTable;
t.step(function () {
onSuccess = t.step_func(function (storage) {
@@ -46,7 +46,7 @@ t.step(function () {
onError = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.addStorageStateChangeListener(onSuccess, onError);
}, exceptionName + " should be thrown - given incorrect errorCallback #"+ onError +"#");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_invalid_cb.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_invalid_cb.html
index f569bdc1e..77e35e559 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_invalid_cb.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_invalid_cb.html
@@ -22,7 +22,7 @@ Authors:
FileSystemManager_addStorageStateChangeListener_onerror_invalid_cb
-
+
@@ -36,7 +36,7 @@ Authors:
//==== TEST_CRITERIA MTCB
// Check argument onError validation
-var t = async_test("FileSystemManager_addStorageStateChangeListener_onerror_invalid_cb"),
+var t = async_test(document.title),
exceptionName = "TypeMismatchError", incorrectCallback, onSuccess;
t.step(function () {
onSuccess = t.step_func(function (storage) {
@@ -47,7 +47,7 @@ t.step(function () {
assert_unreached("invalid callback invoked");
})
};
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.addStorageStateChangeListener(onSuccess, incorrectCallback);
}, exceptionName + " should be thrown - given incorrect error callback.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onsuccess_TypeMismatch.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onsuccess_TypeMismatch.html
index 3b0d792df..95a436175 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onsuccess_TypeMismatch.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onsuccess_TypeMismatch.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_addStorageStateChangeListener_onsuccess_TypeMismatch
-
+
@@ -37,7 +37,7 @@ Authors:
//==== TEST_CRITERIA MC
// Check argument onSuccess conversions exception
-var t = async_test("FileSystemManager_addStorageStateChangeListener_onsuccess_TypeMismatch"),
+var t = async_test(document.title),
i, onSuccess, exceptionName, conversionTable;
t.step(function () {
conversionTable = getTypeConversionExceptions("functionObject", false);
@@ -45,7 +45,7 @@ t.step(function () {
onSuccess = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.addStorageStateChangeListener(onSuccess);
}, exceptionName + " should be thrown - given incorrect onSuccess.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onsuccess_invalid_cb.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onsuccess_invalid_cb.html
index 444b89cc9..85beff561 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onsuccess_invalid_cb.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onsuccess_invalid_cb.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_addStorageStateChangeListener_onsuccess_invalid_cb
-
+
@@ -37,7 +37,7 @@ Authors:
//==== TEST_CRITERIA MTCB
// Check argument onSuccess validation
-var t = async_test("FileSystemManager_addStorageStateChangeListener_onsuccess_invalid_cb"),
+var t = async_test(document.title),
exceptionName = "TypeMismatchError", incorrectCallback;
t.step(function () {
@@ -46,7 +46,7 @@ t.step(function () {
assert_unreached("Invalid callback invoked: ");
})
};
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.addStorageStateChangeListener(incorrectCallback);
}, exceptionName + " should be thrown - given incorrect error callback.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_with_onerror.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_with_onerror.html
index b1155711b..56de2081c 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_with_onerror.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_with_onerror.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_addStorageStateChangeListener_with_onerror
-
+
@@ -37,7 +37,7 @@ Authors:
//==== TEST_CRITERIA MOA
// Check with optional arguments getStorage
-var t = async_test("FileSystemManager_addStorageStateChangeListener_with_onerror"),
+var t = async_test(document.title),
onError, successCallback;
t.step(function (){
onError = t.step_func(function (error) {
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_without_arguments.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_without_arguments.html
index b5890c04d..6419c1d17 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_without_arguments.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_without_arguments.html
@@ -26,7 +26,7 @@ Authors:
FileSystemManager_addStorageStateChangeListener_without_arguments
-
+
@@ -37,17 +37,15 @@ Authors:
//==== TEST: FileSystemManager_addStorageStateChangeListener_without_arguments
//==== PRIORITY P2
-//==== LABEL check whether invoking 'addStorageStateChangeListener' method without any argument throws exception properly
+//==== LABEL Check whether invoking 'addStorageStateChangeListener' method without any argument throws exception properly
//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:addStorageStateChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MMA
test(function () {
- assert_throws({
- name: "TypeMismatchError"
- }, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
tizen.filesystem.addStorageStateChangeListener();
});
-}, "FileSystemManager_addStorageStateChangeListener_without_arguments");
+}, document.title);
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_extend.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_extend.html
index 245c9d37f..6a7265745 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_extend.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_extend.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_extend
-
+
@@ -38,7 +38,7 @@ Authors:
test(function () {
check_extensibility(tizen.filesystem);
-}, "FileSystemManager_extend");
+}, document.title);
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage.html
index 41aaae990..4a3980ccb 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage.html
@@ -27,7 +27,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
Piotr Czaja
Beata Koziarek
@@ -36,7 +36,7 @@ Authors:
FileSystemManager_getStorage
-
+
@@ -50,7 +50,7 @@ Authors:
//==== TEST_CRITERIA MMINA MR
// Check with non-optional arguments getStorage
-var t = async_test("FileSystemManager_getStorage"),
+var t = async_test(document.title),
onSuccess, onError, successCallback, retValue = null;
t.step(function () {
onSuccess = t.step_func(function (storage) {
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_exist.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_exist.html
index b07fdf3a6..c39fc5001 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_exist.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_exist.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_getStorage_exist
-
+
@@ -38,7 +38,7 @@ Authors:
test(function () {
assert_true("getStorage" in tizen.filesystem, "No getStorage method in tizen.filesystem");
check_method_exists(tizen.filesystem, "getStorage");
-}, "FileSystemManager_getStorage_exist");
+}, document.title);
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_missarg.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_missarg.html
index 6e0d3b791..817229819 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_missarg.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_missarg.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_getStorage_missarg
-
+
@@ -37,11 +37,11 @@ Authors:
//==== TEST_CRITERIA MMA
test(function () {
- assert_throws({ name: "TypeMismatchError" },
+ assert_throws(TYPE_MISMATCH_EXCEPTION,
function () {
tizen.filesystem.getStorage();
}, "Method should throw an exception");
-}, "FileSystemManager_getStorage_missarg");
+}, document.title);
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_TypeMismatch.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_TypeMismatch.html
index 9af3d5904..bcb5ce416 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_TypeMismatch.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_TypeMismatch.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_getStorage_onerror_TypeMismatch
-
+
@@ -37,7 +37,7 @@ Authors:
//==== TEST_CRITERIA MC
// Check argument onError conversions exception
-var t = async_test("FileSystemManager_getStorage_onerror_TypeMismatch"), i,
+var t = async_test(document.title), i,
getStorageSuccess, getStorageError, exceptionName,
listStoragesSuccess, listStoragesError, conversionTable;
@@ -51,7 +51,7 @@ t.step(function () {
getStorageError = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.getStorage(storages[0].label, getStorageSuccess, getStorageError);
}, exceptionName + " should be thrown - given incorrect errorCallback.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_invalid_cb.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_invalid_cb.html
index 29c213425..756c23a7f 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_invalid_cb.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_invalid_cb.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_getStorage_onerror_invalid_cb
-
+
@@ -37,7 +37,7 @@ Authors:
//==== TEST_CRITERIA MTCB
// Check argument onError validation
-var t = async_test("FileSystemManager_getStorage_onerror_invalid_cb"),
+var t = async_test(document.title),
exceptionName = "TypeMismatchError", getStorageIncorrect, getStorageSuccess,
listStoragesSuccess, listStoragesError;
@@ -54,7 +54,7 @@ t.step(function () {
assert_unreached("listStorages() error callback invoked: name: " + error.name + ", msg: " + error.message);
});
listStoragesSuccess = t.step_func(function (storages) {
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.getStorage(storages[0].label, getStorageSuccess, getStorageIncorrect);
}, exceptionName + " should be thrown - given incorrect error callback.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_TypeMismatch.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_TypeMismatch.html
index 402d51845..5a72799f4 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_TypeMismatch.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_TypeMismatch.html
@@ -24,7 +24,7 @@ Authors:
FileSystemManager_getStorage_onsuccess_TypeMismatch
-
+
@@ -38,7 +38,7 @@ Authors:
//==== TEST_CRITERIA MC
// Check argument onSuccess conversions exception
-var t = async_test("FileSystemManager_getStorage_onsuccess_TypeMismatch"), i,
+var t = async_test(document.title), i,
listStoragesSuccess, listStoragesError, exceptionName,
getStorageSuccess, conversionTable;
@@ -49,7 +49,7 @@ t.step(function () {
getStorageSuccess = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.getStorage(storages[0].label, getStorageSuccess);
}, exceptionName + " should be thrown - given incorrect onSuccess.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_invalid_cb.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_invalid_cb.html
index 1dc03b093..42799e3fc 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_invalid_cb.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_invalid_cb.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_getStorage_onsuccess_invalid_cb
-
+
@@ -37,7 +37,7 @@ Authors:
//==== TEST_CRITERIA MTCB
// Check argument onSuccess validation
-var t = async_test("FileSystemManager_getStorage_onsuccess_invalid_cb"),
+var t = async_test(document.title),
exceptionName = "TypeMismatchError", getStorageIncorrect, listStoragesError,
listStoragesSuccess;
@@ -49,7 +49,7 @@ t.step(function () {
};
listStoragesSuccess = t.step_func(function (storages) {
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.getStorage(storages[0].label, getStorageIncorrect);
}, exceptionName + " should be thrown - given incorrect error callback.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_with_nonexist_label.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_with_nonexist_label.html
index 2101432d8..c7e6fd777 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_with_nonexist_label.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_with_nonexist_label.html
@@ -27,7 +27,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
-->
@@ -41,14 +41,14 @@ Authors:
+
@@ -38,7 +38,7 @@ Authors:
//==== TEST_CRITERIA MOA
// Check with optional arguments getStorage
-var t = async_test("FileSystemManager_getStorage_with_onerror"),
+var t = async_test(document.title),
getStorageSuccess, getStorageError, listStoragesSuccess, listStoragesError;
t.step(function (){
getStorageSuccess = t.step_func(function (storage) {
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_in_tizen.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_in_tizen.html
index b370bcd76..07a6f955e 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_in_tizen.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_in_tizen.html
@@ -24,7 +24,7 @@ Authors:
FileSystemManager_in_tizen
-
+
@@ -41,7 +41,7 @@ Authors:
test(function () {
assert_true("filesystem" in tizen, "No FileSystemManager in tizen.");
check_readonly(tizen, "filesystem", tizen.filesystem, "object", "dummyValue");
-}, "FileSystemManager_in_tizen");
+}, document.title);
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages.html
index ca7c79473..3d9e96642 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages.html
@@ -24,7 +24,7 @@ Authors:
FileSystemManager_listStorages
-
+
@@ -38,7 +38,7 @@ Authors:
//==== TEST_CRITERIA MMINA MR
// check if list the available storages on the device.
-var t = async_test("FileSystemManager_listStorages"),
+var t = async_test(document.title),
onSuccess, retValue = null;
t.step(function () {
onSuccess = t.step_func(function (storages) {
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_exist.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_exist.html
index e52b15d36..7c1056ba7 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_exist.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_exist.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_listStorages_exist
-
+
@@ -38,7 +38,7 @@ Authors:
test(function () {
assert_true("listStorages" in tizen.filesystem, "No listStorages method in tizen.filesystem");
check_method_exists(tizen.filesystem, "listStorages");
-}, "FileSystemManager_listStorages_exist");
+}, document.title);
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_missarg.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_missarg.html
index 164057374..3c5da4fa1 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_missarg.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_missarg.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_listStorages_missarg
-
+
@@ -37,11 +37,11 @@ Authors:
//==== TEST_CRITERIA MMA
test(function () {
- assert_throws({ name: "TypeMismatchError" },
+ assert_throws(TYPE_MISMATCH_EXCEPTION,
function () {
tizen.filesystem.listStorages();
}, "Method should throw an exception");
-}, "FileSystemManager_listStorages_missarg");
+}, document.title);
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_TypeMismatch.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_TypeMismatch.html
index 6f98a2d88..9ecb983c6 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_TypeMismatch.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_TypeMismatch.html
@@ -24,7 +24,7 @@ Authors:
FileSystemManager_listStorages_onerror_TypeMismatch
-
+
@@ -38,7 +38,7 @@ Authors:
//==== TEST_CRITERIA MC
// Check argument onError conversions exception
-var t = async_test("FileSystemManager_listStorages_onerror_TypeMismatch"), i,
+var t = async_test(document.title), i,
listStoragesSuccess, exceptionName, listStoragesSuccess, listStoragesError,
conversionTable;
@@ -52,7 +52,7 @@ t.step(function () {
listStoragesError = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.listStorages(listStoragesSuccess, listStoragesError);
}, exceptionName + " should be thrown - given incorrect errorCallback.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_invalid_cb.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_invalid_cb.html
index 17c25a763..5b1fda80a 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_invalid_cb.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_invalid_cb.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_listStorages_onerror_invalid_cb
-
+
@@ -37,7 +37,7 @@ Authors:
//==== TEST_CRITERIA MTCB
// Check argument onError validation
-var t = async_test("FileSystemManager_listStorages_onerror_invalid_cb"),
+var t = async_test(document.title),
exceptionName = "TypeMismatchError", listStoragesIncorrect,
listStoragesSuccess;
@@ -52,7 +52,7 @@ t.step(function () {
assert_unreached("Invalid callback invoked: ");
})
};
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.listStorages(listStoragesSuccess, listStoragesIncorrect);
}, exceptionName + "should be thrown - given incorrect error callback.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_TypeMismatch.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_TypeMismatch.html
index 18e4896bc..f31033a34 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_TypeMismatch.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_TypeMismatch.html
@@ -24,7 +24,7 @@ Authors:
FileSystemManager_listStorages_onsuccess_TypeMismatch
-
+
@@ -38,7 +38,7 @@ Authors:
//==== TEST_CRITERIA MC
// Check argument onSuccess conversions exception
-var t = async_test("FileSystemManager_listStorages_onsuccess_TypeMismatch"), i,
+var t = async_test(document.title), i,
exceptionName, listStoragesSuccess, listStoragesError, conversionTable;
t.step(function () {
@@ -52,7 +52,7 @@ t.step(function () {
listStoragesSuccess = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.listStorages(listStoragesSuccess, listStoragesError);
}, exceptionName + " should be thrown - given incorrect onSuccess callback.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_invalid_cb.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_invalid_cb.html
index 6cf290a4e..f3fc62cfa 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_invalid_cb.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_invalid_cb.html
@@ -24,7 +24,7 @@ Authors:
FileSystemManager_listStorages_onsuccess_invalid_cb
-
+
@@ -38,7 +38,7 @@ Authors:
//==== TEST_CRITERIA MTCB
// Check argument onSuccess validation
-var t = async_test("FileSystemManager_listStorages_onsuccess_invalid_cb"),
+var t = async_test(document.title),
exceptionName = "TypeMismatchError", listStoragesIncorrect;
t.step(function () {
@@ -48,7 +48,7 @@ t.step(function () {
assert_unreached("Invalid callback invoked: ");
})
};
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.listStorages(listStoragesIncorrect);
}, exceptionName + "should be thrown - given incorrect error callback.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_storages_retrieve.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_storages_retrieve.html
index 240a80ed0..7404c8c60 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_storages_retrieve.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_storages_retrieve.html
@@ -26,7 +26,7 @@ Authors:
FileSystemManager_listStorages_storages_retrieve
-
+
@@ -35,11 +35,11 @@ Authors:
+
@@ -35,12 +35,12 @@ Authors:
// TESTS
//==== TEST: FileSystemManager_listStorages_with_invalid_error_callbacks
-//==== LABEL check whether invoking 'listStorages' method with improper argument throws exception properly
+//==== LABEL Check whether invoking 'listStorages' method with improper argument throws exception properly
//==== PRIORITY P2
//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:listStorages M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MC
-var t = async_test("FileSystemManager_listStorages_with_invalid_error_callbacks"),
+var t = async_test(document.title),
invalid_type_params = [123, "abc", true, {}], getStorageSuccess, i;
t.step(function () {
getStorageSuccess = t.step_func(function (storages) {
@@ -48,7 +48,7 @@ t.step(function () {
});
for (i = 0; i < invalid_type_params.length; i++) {
- assert_throws({"name": TYPE_MISMATCH_ERR}, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
tizen.filesystem.listStorages(
getStorageSuccess,
invalid_type_params[i]
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_with_onerror.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_with_onerror.html
index 328f2f941..3ff3cc655 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_with_onerror.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_with_onerror.html
@@ -25,7 +25,7 @@ Authors:
FileSystemManager_listStorages_with_onerror
-
+
@@ -39,7 +39,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MOA MR
-var t = async_test("FileSystemManager_listStorages_with_onerror"),
+var t = async_test(document.title),
listStoragesSuccess, listStoragesError, retValue = null;
t.step(function () {
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_without_arguments.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_without_arguments.html
index c0c347463..525575a6e 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_without_arguments.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_without_arguments.html
@@ -25,7 +25,7 @@ Authors:
FileSystemManager_listStorages_without_arguments
-
+
@@ -35,17 +35,15 @@ Authors:
// TESTS
//==== TEST: FileSystemManager_listStorages_without_arguments
-//==== LABEL check whether invoking 'listStorages' method without any argument throws exception properly
+//==== LABEL Check whether invoking 'listStorages' method without any argument throws exception properly
//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:listStorages M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MMA
test(function () {
- assert_throws({
- name: "TypeMismatchError"
- }, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
tizen.filesystem.listStorages();
});
-}, "FileSystemManager_listStorages_without_arguments");
+}, document.title);
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_works_correctly.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_works_correctly.html
index 304ff51f4..5d8396b1d 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_works_correctly.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_works_correctly.html
@@ -25,7 +25,7 @@ Authors:
FileSystemManager_listStorages_works_correctly
-
+
@@ -34,20 +34,20 @@ Authors:
+
@@ -42,7 +42,7 @@ test(function () {
var maxLength = tizen.filesystem.maxPathLength;
assert_true("maxPathLength" in tizen.filesystem, "attribute doesn't exist");
check_readonly(tizen.filesystem, "maxPathLength", maxLength, "long", maxLength - 5);
-}, "FileSystemManager_maxPathLength_attribute");
+}, document.title);
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_notexist.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_notexist.html
index abd2d9831..7b16caba3 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_notexist.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_notexist.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_notexist
-
+
@@ -38,8 +38,7 @@ Authors:
test(function () {
check_no_interface_object("FileSystemManager");
-}, "FileSystemManager_notexist");
-// Check if interface FileSystemManager exists, it should not.
+}, document.title);
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener.html
index 9a426b986..d637fa087 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_removeStorageStateChangeListener
-
+
@@ -36,7 +36,7 @@ Authors:
//==== TEST_CRITERIA MMINA MR
// Check removeStorageStateChangeListener with non-optional arguments
-var t = async_test("FileSystemManager_removeStorageStateChangeListener"),
+var t = async_test(document.title),
successCallback, watch, retValue = null;
t.step(function () {
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_exist.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_exist.html
index 19ee68225..40be8e65c 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_exist.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_exist.html
@@ -34,7 +34,7 @@ Authors:
FileSystemManager_removeStorageStateChangeListener_exist
-
+
@@ -50,7 +50,7 @@ test(function () {
"No removeStorageStateChangeListener method in tizen.filesystem");
check_method_exists(tizen.filesystem,
"removeStorageStateChangeListener");
-}, "FileSystemManager_removeStorageStateChangeListener_exist");
+}, document.title);
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_with_para_invalid.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_with_para_invalid.html
index 922b714ea..83faab15c 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_with_para_invalid.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_with_para_invalid.html
@@ -34,15 +34,14 @@ Authors:
FileSystemManager_removeStorageStateChangeListener_with_para_invalid
-
-
+
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_works_correctly.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_works_correctly.html
index fb3c10f4f..f502b50b8 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_works_correctly.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_works_correctly.html
@@ -26,7 +26,7 @@ Authors:
FileSystemManager_removeStorageStateChangeListener_works_correctly
-
+
@@ -35,7 +35,7 @@ Authors:
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve.html
index 7bf9f66dd..8f0fc804a 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve.html
@@ -22,7 +22,7 @@ Authors:
FileSystemManager_resolve
-
+
@@ -36,7 +36,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MMINA MR
-var t = async_test("FileSystemManager_resolve"),
+var t = async_test(document.title),
resolveSuccess, retValue = null;
t.step(function () {
resolveSuccess = t.step_func(function (storage) {
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_documents.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_documents.html
index 9280cc9ec..efe8ee820 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_documents.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_documents.html
@@ -27,21 +27,21 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
-->
FileSystemManager_resolve_documents
-
+
+
+
@@ -33,12 +33,12 @@ Authors:
//==== TEST: FileSystemManager_resolve_error_invoked
//==== PRIORITY P2
-//==== LABEL check with error callback invoked
+//==== LABEL Check with error callback invoked
//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MOA MERRCB
-var t = async_test("FileSystemManager_resolve_error_invoked"),
+var t = async_test(document.title),
resolveSuccess, resolveError;
t.step(function () {
resolveSuccess = t.step_func(function (dir) {
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_exist.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_exist.html
index 08cdec6ae..20da9c320 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_exist.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_exist.html
@@ -22,7 +22,7 @@ Authors:
FileSystemManager_resolve_exist
-
+
@@ -39,7 +39,7 @@ Authors:
test(function () {
assert_true("resolve" in tizen.filesystem, "FileSystemManager has resolve method");
check_method_exists(tizen.filesystem, "resolve");
-});
+}, document.title);
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_images.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_images.html
index ae4e73395..3d31ab3b9 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_images.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_images.html
@@ -27,14 +27,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
-->
FileSystemManager_resolve_images
-
+
@@ -42,13 +42,13 @@ Authors:
+
+
@@ -37,10 +37,10 @@ Authors:
//==== TEST_CRITERIA MMA
test(function () {
- assert_throws({ name: "TypeMismatchError" }, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
tizen.filesystem.resolve();
}, "Method should throw an exception");
-});
+}, document.title);
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_TypeMismatch.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_TypeMismatch.html
index 72a196acc..79260839d 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_TypeMismatch.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_TypeMismatch.html
@@ -24,7 +24,7 @@ Authors:
FileSystemManager_resolve_mode_TypeMismatch
-
+
@@ -38,7 +38,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MC
-var t = async_test("FileSystemManager_resolve_mode_TypeMismatch"),
+var t = async_test(document.title),
conversionTable, resolveSuccess, resolveError, mode, exceptionName, i;
t.step(function () {
@@ -54,7 +54,7 @@ t.step(function () {
mode = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.resolve("images", resolveSuccess, resolveError, mode);
}, exceptionName + " should be thrown - given incorrect errorCallback.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_a.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_a.html
index d81ccd3dc..7bc156572 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_a.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_a.html
@@ -27,21 +27,21 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
-->
FileSystemManager_resolve_mode_a
-
+
+
+
+
+
@@ -37,7 +37,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MC
-var t = async_test("FileSystemManager_resolve_onerror_TypeMismatch"), i,
+var t = async_test(document.title), i,
resolveSuccess, resolveError, exceptionName, conversionTable;
t.step(function () {
conversionTable = getTypeConversionExceptions("functionObject", true);
@@ -50,7 +50,7 @@ t.step(function () {
resolveError = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.resolve("images", resolveSuccess, resolveError);
}, exceptionName + " should be thrown - given incorrect errorCallback.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onerror_invalid_cb.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onerror_invalid_cb.html
index e86f8b318..0c01810c4 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onerror_invalid_cb.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onerror_invalid_cb.html
@@ -22,7 +22,7 @@ Authors:
FileSystemManager_resolve_onerror_invalid_cb
-
+
@@ -36,7 +36,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MTCB
-var t = async_test("FileSystemManager_resolve_onerror_invalid_cb"),
+var t = async_test(document.title),
exceptionName = "TypeMismatchError", resolveError, resolveSuccess,
conversionTable;
@@ -49,7 +49,7 @@ t.step(function () {
assert_unreached("Invalid callback invoked: ");
})
};
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.resolve("images", resolveSuccess, resolveError, "rw");
}, exceptionName + "should be thrown - given incorrect error callback.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onsuccess_TypeMismatch.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onsuccess_TypeMismatch.html
index 4a5f6cb0c..b53efcd0a 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onsuccess_TypeMismatch.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onsuccess_TypeMismatch.html
@@ -23,7 +23,7 @@ Authors:
FileSystemManager_resolve_onsuccess_TypeMismatch
-
+
@@ -37,7 +37,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MC
-var t = async_test("FileSystemManager_resolve_onsuccess_TypeMismatch"), i,
+var t = async_test(document.title), i,
resolveSuccess, resolveError, exceptionName, conversionTable;
t.step(function () {
@@ -51,7 +51,7 @@ t.step(function () {
resolveSuccess = conversionTable[i][0];
exceptionName = conversionTable[i][1];
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.resolve("documents", resolveSuccess, resolveError);
}, exceptionName + " should be thrown - given incorrect onSuccess.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onsuccess_invalid_cb.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onsuccess_invalid_cb.html
index c2d49f999..ba4d843d3 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onsuccess_invalid_cb.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onsuccess_invalid_cb.html
@@ -22,7 +22,7 @@ Authors:
FileSystemManager_resolve_onsuccess_invalid_cb
-
+
@@ -36,7 +36,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MTCB
-var t = async_test("FileSystemManager_resolve_onsuccess_invalid_cb"),
+var t = async_test(document.title),
exceptionName = "TypeMismatchError", resolveSuccess, resolveError;
t.step(function () {
@@ -51,7 +51,7 @@ t.step(function () {
})
};
- assert_throws({name : exceptionName},
+ assert_throws({name: exceptionName},
function () {
tizen.filesystem.resolve("documents", resolveSuccess, resolveError);
}, exceptionName + "should be thrown - given incorrect error callback.");
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones.html
index fe440e385..7c0f8803b 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones.html
@@ -27,14 +27,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
-->
FileSystemManager_resolve_ringtones
-
+
@@ -42,13 +42,13 @@ Authors:
+
+
@@ -42,13 +42,13 @@ Authors:
+
@@ -42,13 +42,13 @@ Authors:
+
@@ -41,13 +41,13 @@ Authors:
+
@@ -37,7 +37,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MOA
-var t = async_test("FileSystemManager_resolve_with_mode"),
+var t = async_test(document.title),
resolveSuccess, resolveError, expected;
t.step(function () {
resolveSuccess = t.step_func(function (dir) {
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_with_onerror.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_with_onerror.html
index 3164083c4..0ff78d1bb 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_with_onerror.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_with_onerror.html
@@ -24,7 +24,7 @@ Authors:
FileSystemManager_resolve_with_onerror
-
+
@@ -38,7 +38,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MOA
-var t = async_test("FileSystemManager_resolve_with_onerror"),
+var t = async_test(document.title),
resolveSuccess, resolveError;
t.step(function (){
resolveSuccess = t.step_func(function (storage) {
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_works_correctly.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_works_correctly.html
index e5b031738..a763a0eae 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_works_correctly.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_works_correctly.html
@@ -26,7 +26,7 @@ Authors:
FileSystemManager_resolve_works_correctly
-
+
@@ -35,16 +35,16 @@ Authors:
+
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemStorageArraySuccessCallback_onsuccess.html b/tct-filesystem-tizen-tests/filesystem/FileSystemStorageArraySuccessCallback_onsuccess.html
index 4ee7a5701..e688c79e6 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemStorageArraySuccessCallback_onsuccess.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemStorageArraySuccessCallback_onsuccess.html
@@ -24,7 +24,7 @@ Authors:
FileSystemStorageArraySuccessCallback_onsuccess
-
+
@@ -32,13 +32,13 @@ Authors:
+
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemStorageSuccessCallback_onsuccess.html b/tct-filesystem-tizen-tests/filesystem/FileSystemStorageSuccessCallback_onsuccess.html
index 6c55babac..2263a65b1 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemStorageSuccessCallback_onsuccess.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemStorageSuccessCallback_onsuccess.html
@@ -25,7 +25,7 @@ Authors:
FileSystemStorageSuccessCallback_onsuccess
-
+
@@ -33,13 +33,13 @@ Authors:
+
@@ -30,13 +30,13 @@ Authors:
+
@@ -31,16 +31,16 @@ Authors:
+
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_state_attribute.html b/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_state_attribute.html
index dccf1334e..2801ba6e7 100644
--- a/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_state_attribute.html
+++ b/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_state_attribute.html
@@ -24,7 +24,7 @@ Authors:
FileSystemStorage_state_attribute
-
+
@@ -32,17 +32,17 @@ Authors:
+
@@ -32,17 +32,17 @@ Authors:
+
@@ -33,12 +33,12 @@ Authors:
+
@@ -50,7 +50,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA ME
-var t = async_test("File_copyTo_exist"), resolveSuccess, resolveError;
+var t = async_test(document.title), resolveSuccess, resolveError;
t.step(function () {
resolveSuccess = t.step_func(function (dir) {
diff --git a/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_false.html b/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_false.html
index e3ec15dd1..f3dce1f46 100644
--- a/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_false.html
+++ b/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_false.html
@@ -33,13 +33,13 @@ Authors:
+
@@ -33,13 +33,13 @@ Authors:
+
@@ -35,13 +35,13 @@ Authors:
+
@@ -34,13 +34,13 @@ Authors:
+
@@ -33,13 +33,13 @@ Authors:
+
@@ -35,41 +35,40 @@ Authors:
+
@@ -35,13 +35,13 @@ Authors:
+
@@ -35,31 +35,31 @@ Authors:
+
@@ -37,12 +37,12 @@ Authors:
+
@@ -37,12 +37,12 @@ Authors:
+
@@ -36,12 +36,12 @@ Authors:
+
@@ -50,7 +50,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA ME
-var t = async_test("File_createDirectory_exist"),
+var t = async_test(document.title),
resolveSuccess, resolveError;
t.step(function () {
diff --git a/tct-filesystem-tizen-tests/filesystem/File_createDirectory_level2.html b/tct-filesystem-tizen-tests/filesystem/File_createDirectory_level2.html
index dfccafa6f..df2f6698f 100644
--- a/tct-filesystem-tizen-tests/filesystem/File_createDirectory_level2.html
+++ b/tct-filesystem-tizen-tests/filesystem/File_createDirectory_level2.html
@@ -27,7 +27,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
Mariusz Polasinski
-->
@@ -45,17 +45,16 @@ Authors:
+
@@ -35,12 +35,12 @@ Authors:
+
@@ -50,7 +50,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA ME
-var t = async_test("File_createFile_exist"),
+var t = async_test(document.title),
resolveSuccess, resolveError;
t.step(function (){
diff --git a/tct-filesystem-tizen-tests/filesystem/File_createFile_existing_file.html b/tct-filesystem-tizen-tests/filesystem/File_createFile_existing_file.html
index 950773286..0d5b92155 100644
--- a/tct-filesystem-tizen-tests/filesystem/File_createFile_existing_file.html
+++ b/tct-filesystem-tizen-tests/filesystem/File_createFile_existing_file.html
@@ -27,7 +27,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
Mariusz Polasinski
-->
@@ -46,13 +46,13 @@ Authors:
+
@@ -35,12 +35,12 @@ Authors:
+
@@ -35,15 +35,14 @@ Authors:
-
+
@@ -46,19 +45,19 @@ Authors:
-
+
@@ -45,20 +44,20 @@ Authors:
-
+
@@ -45,7 +44,7 @@ Authors:
-
+
@@ -45,7 +44,7 @@ Authors:
-
+
@@ -46,20 +45,20 @@ Authors:
+
@@ -50,7 +50,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA ME
-var t = async_test("File_deleteDirectory_exist"),
+var t = async_test(document.title),
resolveSuccess, resolveError;
t.step(function () {
diff --git a/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_onerror_TypeMismatch.html b/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_onerror_TypeMismatch.html
index b8c9d518a..9a652fb74 100644
--- a/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_onerror_TypeMismatch.html
+++ b/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_onerror_TypeMismatch.html
@@ -26,7 +26,7 @@ Authors:
File_deleteDirectory_onerror_TypeMismatch
-
+
@@ -35,13 +35,13 @@ Authors:
+
@@ -35,13 +35,13 @@ Authors:
+
@@ -37,13 +37,13 @@ Authors:
+
@@ -36,13 +36,13 @@ Authors:
+
@@ -36,15 +36,15 @@ Authors:
+
@@ -36,28 +36,27 @@ Authors:
+
@@ -37,12 +37,12 @@ Authors:
+
@@ -30,12 +30,12 @@ Authors:
+
+
+
+
+
+
@@ -49,7 +49,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA ME
-var t = async_test("File_deleteFile_exist"),
+var t = async_test(document.title),
resolveSuccess, resolveError;
t.step(function (){
diff --git a/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listDocumentsFiles.html b/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listDocumentsFiles.html
index 6db06e38a..868019776 100644
--- a/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listDocumentsFiles.html
+++ b/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listDocumentsFiles.html
@@ -27,27 +27,27 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
-->
File_deleteFile_listDocumentsFiles
-
+
+
+
@@ -44,13 +44,13 @@ Authors:
+
+
+
@@ -30,13 +30,13 @@ Authors:
+
@@ -30,13 +30,13 @@ Authors:
+
@@ -30,13 +30,13 @@ Authors:
+
@@ -30,13 +30,13 @@ Authors:
+
@@ -43,14 +43,14 @@ Authors:
+
@@ -43,14 +43,14 @@ Authors:
+
@@ -31,12 +31,12 @@ Authors:
+
@@ -30,12 +30,12 @@ Authors:
+
@@ -32,37 +32,37 @@ Authors:
+
@@ -32,28 +32,28 @@ Authors:
+
@@ -30,13 +30,13 @@ Authors:
+
@@ -31,12 +31,12 @@ Authors:
+
@@ -30,12 +30,12 @@ Authors:
+
@@ -30,12 +30,12 @@ Authors:
+
@@ -30,12 +30,12 @@ Authors:
+
@@ -31,12 +31,12 @@ Authors:
+
@@ -30,12 +30,12 @@ Authors:
+
@@ -43,13 +43,13 @@ Authors:
+
@@ -49,7 +49,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA ME
-var t = async_test("File_listFiles_exist"), resolveSuccess, resolveError;
+var t = async_test(document.title), resolveSuccess, resolveError;
t.step(function () {
resolveSuccess = t.step_func(function (dir) {
diff --git a/tct-filesystem-tizen-tests/filesystem/File_listFiles_filter_TypeMismatch.html b/tct-filesystem-tizen-tests/filesystem/File_listFiles_filter_TypeMismatch.html
index 899324944..2de6838bb 100644
--- a/tct-filesystem-tizen-tests/filesystem/File_listFiles_filter_TypeMismatch.html
+++ b/tct-filesystem-tizen-tests/filesystem/File_listFiles_filter_TypeMismatch.html
@@ -22,7 +22,7 @@ Authors:
File_listFiles_filter_TypeMismatch
-
+
@@ -30,13 +30,13 @@ Authors:
+
@@ -31,13 +31,13 @@ Authors:
+
@@ -31,17 +31,15 @@ Authors:
//==== TEST: File_listFiles_missarg
//==== PRIORITY: P2
-//==== LABEL: Check if listFiles of File with missing non-optional argument works
+//==== LABEL Check if listFiles of File with missing non-optional argument works
//==== SPEC: Tizen Web API:IO:Filesystem:File:listFiles M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MMA
-var t = async_test("File_listFiles_missarg"), resolveSuccess, resolveError;
+var t = async_test(document.title), resolveSuccess, resolveError;
t.step(function () {
resolveSuccess = t.step_func(function (dir) {
- assert_throws({
- name: "TypeMismatchError"
- }, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
dir.listFiles();
});
t.done();
diff --git a/tct-filesystem-tizen-tests/filesystem/File_listFiles_onerror_TypeMismatch.html b/tct-filesystem-tizen-tests/filesystem/File_listFiles_onerror_TypeMismatch.html
index 4be07f7f3..f566972df 100644
--- a/tct-filesystem-tizen-tests/filesystem/File_listFiles_onerror_TypeMismatch.html
+++ b/tct-filesystem-tizen-tests/filesystem/File_listFiles_onerror_TypeMismatch.html
@@ -22,7 +22,7 @@ Authors:
File_listFiles_onerror_TypeMismatch
-
+
@@ -30,13 +30,13 @@ Authors:
+
@@ -30,13 +30,13 @@ Authors:
+
@@ -30,13 +30,13 @@ Authors:
+
@@ -30,13 +30,13 @@ Authors:
+
@@ -41,7 +41,7 @@ Authors:
+
@@ -44,7 +44,7 @@ Authors:
+
@@ -30,12 +30,12 @@ Authors:
+
@@ -32,25 +32,25 @@ Authors:
+
@@ -30,12 +30,12 @@ Authors:
+
@@ -31,12 +31,12 @@ Authors:
+
@@ -32,12 +32,12 @@ Authors:
+
@@ -49,7 +49,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA ME
-var t = async_test("File_moveTo_exist"), resolveSuccess, resolveError;
+var t = async_test(document.title), resolveSuccess, resolveError;
t.step(function () {
resolveSuccess = t.step_func(function (dir) {
diff --git a/tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_overwrite_false.html b/tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_overwrite_false.html
index cdc7e18f8..9c6cdedea 100644
--- a/tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_overwrite_false.html
+++ b/tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_overwrite_false.html
@@ -26,7 +26,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
- Guan,JingX
+ Guan, JingX
Mariusz Polasinski
-->
@@ -34,21 +34,21 @@ Authors:
File_moveTo_file_samedir_samename_overwrite_false
-
+
+
+
@@ -30,13 +30,13 @@ Authors:
+
@@ -30,13 +30,13 @@ Authors:
+
@@ -31,13 +31,13 @@ Authors:
+
@@ -31,13 +31,13 @@ Authors:
+
@@ -29,33 +29,33 @@ Authors:
+
@@ -43,7 +43,7 @@ Authors:
+
@@ -32,39 +32,39 @@ Authors:
+
@@ -31,12 +31,12 @@ Authors:
+
@@ -32,12 +32,12 @@ Authors:
+
@@ -43,14 +43,14 @@ Authors:
+
@@ -43,14 +43,14 @@ Authors:
+
@@ -44,13 +44,13 @@ Authors:
+
@@ -43,7 +43,7 @@ Authors:
+
@@ -30,12 +30,12 @@ Authors:
+
diff --git a/tct-filesystem-tizen-tests/filesystem/File_openStream.html b/tct-filesystem-tizen-tests/filesystem/File_openStream.html
index 85717c7cf..d3f84a0ed 100644
--- a/tct-filesystem-tizen-tests/filesystem/File_openStream.html
+++ b/tct-filesystem-tizen-tests/filesystem/File_openStream.html
@@ -24,7 +24,7 @@ Authors:
File_openStream
-
+
@@ -32,12 +32,12 @@ Authors:
+
@@ -44,14 +44,14 @@ Authors:
+
@@ -47,7 +47,7 @@ Authors:
//==== SPEC Tizen Web API:IO:Filesystem:File:openStream M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA ME
-var t = async_test("File_openStream_exist"), resolveSuccess, resolveError;
+var t = async_test(document.title), resolveSuccess, resolveError;
t.step(function (){
resolveSuccess = t.step_func(function (dir) {
diff --git a/tct-filesystem-tizen-tests/filesystem/File_openStream_missarg.html b/tct-filesystem-tizen-tests/filesystem/File_openStream_missarg.html
index 04a93334a..e4ce25fe5 100644
--- a/tct-filesystem-tizen-tests/filesystem/File_openStream_missarg.html
+++ b/tct-filesystem-tizen-tests/filesystem/File_openStream_missarg.html
@@ -22,7 +22,7 @@ Authors:
File_openStream_missarg
-
+
@@ -31,21 +31,19 @@ Authors:
//==== TEST: File_openStream_missarg
//==== PRIORITY: P2
-//==== LABEL: Check if openStream of File with missing non-optional argument works
+//==== LABEL Check if openStream of File with missing non-optional argument works
//==== SPEC: Tizen Web API:IO:Filesystem:File:openStream M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MMA
-var t = async_test("File_openStream_missarg"), fsTestFileName, fsTestFile,
+var t = async_test(document.title), fsTestFileName, fsTestFile,
resolveSuccess, resolveError;
t.step(function () {
fsTestFileName = getFileName("filesystem.txt");
resolveSuccess = t.step_func(function (dir) {
fsTestFile = dir.createFile(fsTestFileName);
- assert_throws({
- name: "TypeMismatchError"
- }, function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
fsTestFile.openStream();
});
t.done();
diff --git a/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_TypeMismatch.html b/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_TypeMismatch.html
index ce76b2c72..814b05bf3 100644
--- a/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_TypeMismatch.html
+++ b/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_TypeMismatch.html
@@ -22,20 +22,20 @@ Authors:
File_openStream_mode_TypeMismatch
-
+
+
@@ -43,7 +43,7 @@ Authors:
+
@@ -44,7 +44,7 @@ Authors:
+
@@ -43,7 +43,7 @@ Authors:
+
@@ -43,7 +43,7 @@ Authors:
+
+
+
@@ -31,13 +31,13 @@ Authors:
+
@@ -30,13 +30,13 @@ Authors:
+
@@ -32,12 +32,12 @@ Authors:
+
+
@@ -30,12 +30,12 @@ Authors:
+
@@ -31,12 +31,12 @@ Authors:
+
@@ -33,13 +33,13 @@ Authors:
+
@@ -31,12 +31,12 @@ Authors:
+
@@ -33,12 +33,12 @@ Authors:
+
@@ -43,13 +43,13 @@ Authors:
+
@@ -47,7 +47,7 @@ Authors:
//==== SPEC Tizen Web API:IO:Filesystem:File:readAsText M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA ME
-var t = async_test("File_readAsText_exist"), resolveSuccess, resolveError;
+var t = async_test(document.title), resolveSuccess, resolveError;
t.step(function (){
resolveSuccess = t.step_func(function (dir) {
diff --git a/tct-filesystem-tizen-tests/filesystem/File_readAsText_listDocumentsFiles.html b/tct-filesystem-tizen-tests/filesystem/File_readAsText_listDocumentsFiles.html
index 071539baf..d98ae30e9 100644
--- a/tct-filesystem-tizen-tests/filesystem/File_readAsText_listDocumentsFiles.html
+++ b/tct-filesystem-tizen-tests/filesystem/File_readAsText_listDocumentsFiles.html
@@ -27,7 +27,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
-->
@@ -42,7 +42,7 @@ Authors:
+
@@ -34,12 +34,12 @@ Authors:
//==== TEST: File_readAsText_missarg
//==== PRIORITY: P2
-//==== LABEL: Check if readAsText of File with missing non-optional argument works
+//==== LABEL Check if readAsText of File with missing non-optional argument works
//==== SPEC: Tizen Web API:IO:Filesystem:File:readAsText M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA MMA
-var t = async_test("File_readAsText_missarg"),
+var t = async_test(document.title),
resolveSuccess, resolveError, file,
fsTestFileName = getFileName("testMissArg.txt");
@@ -50,7 +50,7 @@ t.step(function () {
t.step_func(function (fs) {
fs.write("HelloWorld");
fs.close();
- assert_throws({name: "TypeMismatchError"},
+ assert_throws(TYPE_MISMATCH_EXCEPTION,
function () {
file.readAsText();
});
diff --git a/tct-filesystem-tizen-tests/filesystem/File_readAsText_onerror_TypeMismatch.html b/tct-filesystem-tizen-tests/filesystem/File_readAsText_onerror_TypeMismatch.html
index bb47ba89f..f52b65ba3 100644
--- a/tct-filesystem-tizen-tests/filesystem/File_readAsText_onerror_TypeMismatch.html
+++ b/tct-filesystem-tizen-tests/filesystem/File_readAsText_onerror_TypeMismatch.html
@@ -23,20 +23,20 @@ Authors:
File_readAsText_onerror_TypeMismatch
-
+
+
+
@@ -31,13 +31,13 @@ Authors:
+
@@ -31,13 +31,13 @@ Authors:
+
+
+
+
@@ -31,12 +31,12 @@ Authors:
+
@@ -47,7 +47,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA ME
-var t = async_test("File_resolve_exist"),
+var t = async_test(document.title),
onSuccess, onError;
t.step(function (){
onSuccess = t.step_func(function (dir) {
diff --git a/tct-filesystem-tizen-tests/filesystem/File_resolve_with_invalid_para.html b/tct-filesystem-tizen-tests/filesystem/File_resolve_with_invalid_para.html
index 2e8483346..f889f4839 100644
--- a/tct-filesystem-tizen-tests/filesystem/File_resolve_with_invalid_para.html
+++ b/tct-filesystem-tizen-tests/filesystem/File_resolve_with_invalid_para.html
@@ -27,7 +27,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Authors:
Kaiyu
- Guan,JingX
+ Guan, JingX
-->
@@ -42,13 +42,13 @@ Authors:
+
@@ -36,12 +36,12 @@ Authors:
+
@@ -39,7 +39,7 @@ Authors:
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
//==== TEST_CRITERIA ME
-var t = async_test("File_toURI_exist"), resolveSuccess, resolveError;
+var t = async_test(document.title), resolveSuccess, resolveError;
t.step(function () {
resolveSuccess = t.step_func(function (dir) {
diff --git a/tct-filesystem-tizen-tests/filesystem/File_toURI_extra_argument.html b/tct-filesystem-tizen-tests/filesystem/File_toURI_extra_argument.html
index 55062ce41..575ee7c96 100644
--- a/tct-filesystem-tizen-tests/filesystem/File_toURI_extra_argument.html
+++ b/tct-filesystem-tizen-tests/filesystem/File_toURI_extra_argument.html
@@ -26,7 +26,7 @@ Authors:
File_toURI_extra_argument
-
+
@@ -34,12 +34,12 @@ Authors:
+
@@ -44,14 +44,14 @@ Authors:
\n');
+ }
+ if (head_src.search(/\/testharnessreport.js\W/) === -1) {
+ document.write('\n');
+ }
+})();
+
+var _registered_types = {};
+
+function _resolve_registered_type(type) {
+ while (type in _registered_types) {
+ type = _registered_types[type];
+ }
+ return type;
+}
+
+/**
+ * Method checks extra argument for none argument method.
+ * The only check is that method will not throw an exception.
+ * Example usage:
+ * checkExtraArgument(tizen.notification, "removeAll");
+ *
+ * @param object object
+ * @param methodName string - name of the method
+ */
+function checkExtraArgument(object, methodName) {
+ var extraArgument = [
+ null,
+ undefined,
+ "Tizen",
+ 1,
+ false,
+ ["one", "two"],
+ {argument: 1},
+ function () {}
+ ], i;
+
+ for (i = 0; i < extraArgument.length; i++) {
+ object[methodName](extraArgument[i]);
+ }
+}
+
+/**
+ * Method to validate conversion.
+ * Example usage:
+ * conversionTable = getTypeConversionExceptions("functionObject", true);
+ * for(i = 0; i < conversionTable.length; i++) {
+ * errorCallback = conversionTable[i][0];
+ * exceptionName = conversionTable[i][1];
+ *
+ * assert_throws({name : exceptionName},
+ * function () {
+ * tizen.systemsetting.setProperty("HOME_SCREEN",
+ * propertyValue, successCallback, errorCallback);
+ * }, exceptionName + " should be thrown - given incorrect errorCallback.");
+ * }
+ *
+ * @param conversionType
+ * @param isOptional
+ * @returns table of tables which contain value (index 0) and exceptionName (index 1)
+ *
+ */
+function getTypeConversionExceptions(conversionType, isOptional) {
+ var exceptionName = "TypeMismatchError",
+ conversionTable;
+ switch (conversionType) {
+ case "enum":
+ conversionTable = [
+ [undefined, exceptionName],
+ [null, exceptionName],
+ [0, exceptionName],
+ [true, exceptionName],
+ ["dummyInvalidEnumValue", exceptionName],
+ [{ }, exceptionName]
+ ];
+ break;
+ case "double":
+ conversionTable = [
+ [undefined, exceptionName],
+ [NaN, exceptionName],
+ [Number.POSITIVE_INFINITY, exceptionName],
+ [Number.NEGATIVE_INFINITY, exceptionName],
+ ["TIZEN", exceptionName],
+ [{ name : "TIZEN" }, exceptionName],
+ [function () { }, exceptionName]
+ ];
+ break;
+ case "object":
+ conversionTable = [
+ [true, exceptionName],
+ [false, exceptionName],
+ [NaN, exceptionName],
+ [0, exceptionName],
+ ["", exceptionName],
+ ["TIZEN", exceptionName],
+ [undefined, exceptionName]
+ ];
+ if (!isOptional) {
+ conversionTable.push([null, exceptionName]);
+ }
+ break;
+ case "functionObject":
+ conversionTable = [
+ [true, exceptionName],
+ [false, exceptionName],
+ [NaN, exceptionName],
+ [0, exceptionName],
+ ["", exceptionName],
+ ["TIZEN", exceptionName],
+ [[], exceptionName],
+ [{ }, exceptionName],
+ [undefined, exceptionName]
+ ];
+ if (!isOptional) {
+ conversionTable.push([null, exceptionName]);
+ }
+ break;
+ case "array":
+ conversionTable = [
+ [true, exceptionName],
+ [false, exceptionName],
+ [NaN, exceptionName],
+ [0, exceptionName],
+ ["", exceptionName],
+ ["TIZEN", exceptionName],
+ [{ }, exceptionName],
+ [function () { }, exceptionName],
+ [undefined, exceptionName]
+ ];
+ if (!isOptional) {
+ conversionTable.push([null, exceptionName]);
+ }
+ break;
+ case "dictionary":
+ conversionTable = [
+ [true, exceptionName],
+ [false, exceptionName],
+ [NaN, exceptionName],
+ [0, exceptionName],
+ ["", exceptionName],
+ ["TIZEN", exceptionName],
+ [undefined, exceptionName]
+ ];
+ if (!isOptional) {
+ conversionTable.push([null, exceptionName]);
+ }
+ break;
+ default:
+ assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'.");
+ };
+
+ return conversionTable;
+}
+
+
+function assert_type(obj, type, description) {
+ var org_type = type, prop_name, prop_type, prop_value;
+
+ type = _resolve_registered_type(type);
+
+ if (typeof (type) === 'string') {
+ type = type.toLowerCase();
+ switch (type) {
+ case 'object':
+ case 'string':
+ case 'number':
+ case 'function':
+ case 'boolean':
+ case 'undefined':
+ case 'xml':
+ assert_equals(typeof (obj), type, description);
+ break;
+ case 'null':
+ assert_true(obj === null, description);
+ break;
+ case 'array':
+ assert_true(Array.isArray(obj), description);
+ break;
+ case 'date':
+ assert_true(obj instanceof Date, description);
+ break;
+ case 'byte':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_BYTE, description + " - value too high.");
+ assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+ break;
+ case 'octet':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_OCTET, description + " - value too high.");
+ assert_equals(obj % 1, 0, description + " - value is not an integer.");
+ break;
+ case 'short':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_SHORT, description + " - value too high.");
+ assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+ break;
+ case 'unsigned short':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high.");
+ assert_equals(obj % 1, 0, description + " - value is not an integer.");
+ break;
+ case 'long':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_LONG, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_LONG, description + " - value too high.");
+ assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+ break;
+ case 'unsigned long':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high.");
+ assert_equals(obj % 1, 0, description + " - value is not an integer.");
+ break;
+ case 'long long':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high.");
+ assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+ break;
+ case 'unsigned long long':
+ assert_equals(typeof (obj), 'number', description);
+ assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low.");
+ assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high.");
+ assert_equals(obj % 1, 0, description + " - value is not an integer.");
+ break;
+ default:
+ assert_unreached('Fix your test. Wrong type \'' + org_type + '\'');
+ }
+ } else if (typeof (type) === 'function') {
+ assert_true(obj instanceof type, description);
+ } else if (typeof (type) === 'object') {
+ for (prop_name in type) {
+ prop_type = type[prop_name];
+ if (prop_type === 'function') {
+ assert_inherits(obj, prop_name);
+ assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name);
+ } else {
+ assert_own_property(obj, prop_name);
+ }
+ }
+ } else {
+ assert_unreached('Fix your test. Wrong type ' + org_type);
+ }
+}
+
+function register_type(alias, type_spec) {
+ _registered_types[alias] = type_spec;
+}
+
+/**
+ * Method to check if attribute is const.
+ * Example usage:
+ * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B);
+ *
+ * @param obj object to test which has const attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+ var tmp;
+ if (expectedValue === valueToAssign) {
+ assert_unreached("Fix your test. The same values given for " + attributeName +
+ " in 'value' and 'valueToSet' arguments.");
+ }
+ if (typeof (attributeName) === "string") {
+ assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
+ assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
+ if (typeof (expectedType) !== "undefined") {
+ if (expectedValue === null) {
+ assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
+ } else {
+ assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
+ }
+ } else {
+ assert_unreached("Fix your test. Wrong type " + expectedType);
+ }
+ tmp = obj[attributeName];
+ obj[attributeName] = valueToAssign;
+ assert_equals(obj[attributeName], tmp, attributeName + " can be modified.");
+ } else {
+ assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
+ }
+}
+
+/**
+ * Method to check if attribute is readonly.
+ * Example usage:
+ * check_readonly(statusNotification, "postedTime", null, 'object', new Date());
+ *
+ * @param obj object to test which has readonly attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+ check_const(obj, attributeName, expectedValue, expectedType, valueToAssign);
+}
+
+/**
+ * Method to check if attribute can be set to null.
+ * Example usage:
+ * check_not_nullable(syncInfo, "mode");
+ *
+ * @param obj object to test which has not nullable attribute
+ * @param attributeName attribute name.
+ */
+function check_not_nullable(obj, attributeName)
+{ var old_value = obj[attributeName];
+ obj[attributeName] = null;
+ assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null.");
+ obj[attributeName] = old_value;
+}
+
+/**
+ * Method to check NoInterfaceObject
+ * Example usage:
+ * check_no_interface_object("BluetoothAdapter")
+ *
+ * @param interfaceName interface name
+ */
+function check_no_interface_object(interfaceName) {
+ assert_throws({name: "TypeError"}, function () {
+ tizen[interfaceName]();
+ },"Wrong call as a function");
+ assert_throws({name: "TypeError"}, function () {
+ new tizen[interfaceName]();
+ },"Wrong call as a new function");
+ assert_throws({name: "TypeError"}, function () {
+ ({}) instanceof tizen[interfaceName];
+ },"instanceof exception");
+ assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined.");
+}
+
+
+/**
+ * Method to check Constructors
+ * Example usage:
+ * check_constructor("BluetoothAdapter")
+ *
+ * @param constructorName constructor name
+ */
+
+function check_constructor(constructorName) {
+ assert_true(constructorName in tizen, "No " + constructorName + " in tizen.");
+ assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName);
+ assert_throws({
+ name: "TypeError"
+ }, function () {
+ tizen[constructorName]();
+ }, "Constructor called as function.");
+}
+
+/**
+ * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED).
+ * That method also checks if given method exists in a given object.
+ * Example usage:
+ * check_method_exists(tizen.notification, "get");
+ *
+ * @param obj object with method
+ * @param methodName name of the method to check.
+ */
+function check_method_exists(obj, methodName) {
+ assert_type(obj[methodName], 'function', "Method does not exist.");
+}
+
+/**
+ * Method to check extensibility of given object.
+ * Method checks if new attribute and method can be added.
+ * Example usage:
+ * check_extensibility(tizen.notification);
+ *
+ * @param obj object to check
+ */
+function check_extensibility(obj) {
+ var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue";
+ obj.newDummyMethod = function() {
+ return dummyMethodResult;
+ }
+ assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method.");
+
+ obj.newDummyAttribute = dummyAttribute;
+ assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute.");
+}
+
+/**
+ * Method to check if attribute can be modify.
+ * Example usage:
+ * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html");
+ *
+ * @param obj object to test which has not readonly attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+ if (expectedValue === valueToAssign) {
+ assert_unreached("Fix your test. The same values given for " + attributeName +
+ " in 'value' and 'valueToSet' arguments.");
+ }
+ if (typeof (attributeName) === "string") {
+ assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
+ assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
+ if (typeof (expectedType) !== "undefined") {
+ if (expectedValue === null) {
+ assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
+ } else {
+ assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
+ }
+ } else {
+ assert_unreached("Fix your test. Wrong type " + expectedType);
+ }
+ obj[attributeName] = valueToAssign;
+ assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified.");
+ } else {
+ assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
+ }
+}
+
+/**
+ * Method to check if whole array can be overwritten with an invalid value.
+ * Sample usage:
+ * check_invalid_array_assignments(message, "to", false);
+ *
+ * @param obj object which has the array as its property
+ * @param array name of the array to check
+ * @param isNullable indicates if the array can be null
+ */
+function check_invalid_array_assignments(obj, array, isNullable) {
+ var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}],
+ val = obj[array], i;
+
+ if (!isNullable) {
+ obj[array] = null;
+ assert_not_equals(obj[array], null, "Non-nullable array was set to null");
+ assert_type(obj[array], "array", "Non-nullable array type changed after assigning null");
+ assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null");
+ }
+
+ for (i = 0 ; i < args.length ; i++) {
+ obj[array] = args[i];
+ assert_type(obj[array], "array", "Array type changed after assigning an invalid value");
+ assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value");
+ }
+}
+
+/**
+ * Method to check if an object can be overwritten with an invalid value.
+ * Sample usage:
+ * check_invalid_object_assignments(message, "body", false);
+ *
+ * @param parentObj object which has the 'obj' object as its property
+ * @param obj name of the object to check
+ * @param isNullable indicates if the object can be null
+ */
+function check_invalid_obj_assignments(parentObj, obj, isNullable) {
+ var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}],
+ val = parentObj[obj], i;
+
+ if (!isNullable) {
+ parentObj[obj] = null;
+ assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null");
+ }
+
+ for (i = 0 ; i < args.length ; i++) {
+ parentObj[obj] = args[i];
+ assert_equals(parentObj[obj], val, "The object was set to " + args[i]);
+ }
+}
+
+/**
+ * Method to validate conversion for listeners.
+ * Example usage:
+ * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]);
+ * for(i = 0; i < incorrectListeners.length; i++) {
+ * packageInformationEventCallback = incorrectListeners[i][0];
+ * exceptionName = incorrectListeners[i][1];
+ * assert_throws({name : exceptionName},
+ * function () {
+ * tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
+ * }, exceptionName + " should be thrown - given incorrect successCallback.");
+ * }
+ *
+ *
+ * @param callbackNames Array with names
+ * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1)
+ *
+ */
+function getListenerConversionExceptions(callbackNames) {
+ var result = [], conversionTable, i, j, listenerName;
+ conversionTable = getTypeConversionExceptions("functionObject", false);
+
+ for (i = 0; i < callbackNames.length; i++) {
+ for (j = 0; j < conversionTable.length; j++) {
+ listenerName = {};
+ listenerName[callbackNames[i]] = conversionTable[j][0];
+ result.push([listenerName, conversionTable[j][1]]);
+ }
+ }
+
+ return result;
+}
diff --git a/tct-filesystem-tizen-tests/resources/unitcommon.js b/tct-filesystem-tizen-tests/resources/unitcommon.js
deleted file mode 100644
index 9f972c1eb..000000000
--- a/tct-filesystem-tizen-tests/resources/unitcommon.js
+++ /dev/null
@@ -1,559 +0,0 @@
-/*
-
-Copyright (c) 2013 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:
-
- */
-
-
-MIN_BYTE = -128;
-MAX_BYTE = 127;
-MIN_OCTET = 0;
-MAX_OCTET = 255;
-MIN_SHORT = -32768;
-MAX_SHORT = 32767;
-MIN_UNSIGNED_SHORT = 0;
-MAX_UNSIGNED_SHORT = 65535;
-MIN_LONG = -2147483648;
-MAX_LONG = 2147483647;
-MIN_UNSIGNED_LONG = 0;
-MAX_UNSIGNED_LONG = 4294967295;
-MIN_LONG_LONG = -9223372036854775808;
-MAX_LONG_LONG = 9223372036854775807;
-MIN_UNSIGNED_LONG_LONG = 0;
-MAX_UNSIGNED_LONG_LONG = 18446744073709551615;
-
-TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'};
-NOT_FOUND_EXCEPTION = {name: 'NotFoundError'};
-INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'};
-IO_EXCEPTION = {name: 'IOError'};
-SECURITY_EXCEPTION = {name: 'SecurityError'};
-
-
-(function () {
- var head_src = document.head.innerHTML;
- if (head_src.search(/\/testharness.js\W/) === -1) {
- document.write('\n');
- }
- if (head_src.search(/\/testharnessreport.js\W/) === -1) {
- document.write('\n');
- }
-})();
-
-var _registered_types = {};
-
-function _resolve_registered_type(type) {
- while (type in _registered_types) {
- type = _registered_types[type];
- }
- return type;
-}
-
-/**
- * Method checks extra argument for none argument method.
- * The only check is that method will not throw an exception.
- * Example usage:
- * checkExtraArgument(tizen.notification, "removeAll");
- *
- * @param object object
- * @param methodName string - name of the method
- */
-function checkExtraArgument(object, methodName) {
- var extraArgument = [
- null,
- undefined,
- "Tizen",
- 1,
- false,
- ["one", "two"],
- {argument: 1},
- function () {}
- ], i;
-
- for (i = 0; i < extraArgument.length; i++) {
- object[methodName](extraArgument[i]);
- }
-}
-
-/**
- * Method to validate conversion.
- * Example usage:
- * conversionTable = getTypeConversionExceptions("functionObject", true);
- * for(i = 0; i < conversionTable.length; i++) {
- * errorCallback = conversionTable[i][0];
- * exceptionName = conversionTable[i][1];
- *
- * assert_throws({name : exceptionName},
- * function () {
- * tizen.systemsetting.setProperty("HOME_SCREEN",
- * propertyValue, successCallback, errorCallback);
- * }, exceptionName + " should be thrown - given incorrect errorCallback.");
- * }
- *
- * @param conversionType
- * @param isOptional
- * @returns table of tables which contain value (index 0) and exceptionName (index 1)
- *
- */
-function getTypeConversionExceptions(conversionType, isOptional) {
- var exceptionName = "TypeMismatchError",
- conversionTable;
- switch (conversionType) {
- case "enum":
- conversionTable = [
- [undefined, exceptionName],
- [null, exceptionName],
- [0, exceptionName],
- [true, exceptionName],
- ["dummyInvalidEnumValue", exceptionName],
- [{ }, exceptionName]
- ];
- break;
- case "double":
- conversionTable = [
- [undefined, exceptionName],
- [NaN, exceptionName],
- [Number.POSITIVE_INFINITY, exceptionName],
- [Number.NEGATIVE_INFINITY, exceptionName],
- ["TIZEN", exceptionName],
- [{ name : "TIZEN" }, exceptionName],
- [function () { }, exceptionName]
- ];
- break;
- case "object":
- conversionTable = [
- [true, exceptionName],
- [false, exceptionName],
- [NaN, exceptionName],
- [0, exceptionName],
- ["", exceptionName],
- ["TIZEN", exceptionName],
- [undefined, exceptionName]
- ];
- if (!isOptional) {
- conversionTable.push([null, exceptionName]);
- }
- break;
- case "functionObject":
- conversionTable = [
- [true, exceptionName],
- [false, exceptionName],
- [NaN, exceptionName],
- [0, exceptionName],
- ["", exceptionName],
- ["TIZEN", exceptionName],
- [[], exceptionName],
- [{ }, exceptionName],
- [undefined, exceptionName]
- ];
- if (!isOptional) {
- conversionTable.push([null, exceptionName]);
- }
- break;
- case "array":
- conversionTable = [
- [true, exceptionName],
- [false, exceptionName],
- [NaN, exceptionName],
- [0, exceptionName],
- ["", exceptionName],
- ["TIZEN", exceptionName],
- [{ }, exceptionName],
- [function () { }, exceptionName],
- [undefined, exceptionName]
- ];
- if (!isOptional) {
- conversionTable.push([null, exceptionName]);
- }
- break;
- case "dictionary":
- conversionTable = [
- [true, exceptionName],
- [false, exceptionName],
- [NaN, exceptionName],
- [0, exceptionName],
- ["", exceptionName],
- ["TIZEN", exceptionName],
- [undefined, exceptionName]
- ];
- if (!isOptional) {
- conversionTable.push([null, exceptionName]);
- }
- break;
- default:
- assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'.");
- };
-
- return conversionTable;
-}
-
-
-function assert_type(obj, type, description) {
- var org_type = type, prop_name, prop_type, prop_value;
-
- type = _resolve_registered_type(type);
-
- if (typeof (type) === 'string') {
- type = type.toLowerCase();
- switch (type) {
- case 'object':
- case 'string':
- case 'number':
- case 'function':
- case 'boolean':
- case 'undefined':
- case 'xml':
- assert_equals(typeof (obj), type, description);
- break;
- case 'null':
- assert_true(obj === null, description);
- break;
- case 'array':
- assert_true(Array.isArray(obj), description);
- break;
- case 'date':
- assert_true(obj instanceof Date, description);
- break;
- case 'byte':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low.");
- assert_less_than_equal(obj, MAX_BYTE, description + " - value too high.");
- assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
- break;
- case 'octet':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low.");
- assert_less_than_equal(obj, MAX_OCTET, description + " - value too high.");
- assert_equals(obj % 1, 0, description + " - value is not an integer.");
- break;
- case 'short':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low.");
- assert_less_than_equal(obj, MAX_SHORT, description + " - value too high.");
- assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
- break;
- case 'unsigned short':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low.");
- assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high.");
- assert_equals(obj % 1, 0, description + " - value is not an integer.");
- break;
- case 'long':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_LONG, description + " - value too low.");
- assert_less_than_equal(obj, MAX_LONG, description + " - value too high.");
- assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
- break;
- case 'unsigned long':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low.");
- assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high.");
- assert_equals(obj % 1, 0, description + " - value is not an integer.");
- break;
- case 'long long':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low.");
- assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high.");
- assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
- break;
- case 'unsigned long long':
- assert_equals(typeof (obj), 'number', description);
- assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low.");
- assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high.");
- assert_equals(obj % 1, 0, description + " - value is not an integer.");
- break;
- default:
- assert_unreached('Fix your test. Wrong type \'' + org_type + '\'');
- }
- } else if (typeof (type) === 'function') {
- assert_true(obj instanceof type, description);
- } else if (typeof (type) === 'object') {
- for (prop_name in type) {
- prop_type = type[prop_name];
- if (prop_type === 'function') {
- assert_inherits(obj, prop_name);
- assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name);
- } else {
- assert_own_property(obj, prop_name);
- }
- }
- } else {
- assert_unreached('Fix your test. Wrong type ' + org_type);
- }
-}
-
-function register_type(alias, type_spec) {
- _registered_types[alias] = type_spec;
-}
-
-/**
- * Method to check if attribute is const.
- * Example usage:
- * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B);
- *
- * @param obj object to test which has const attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) {
- var tmp;
- if (expectedValue === valueToAssign) {
- assert_unreached("Fix your test. The same values given for " + attributeName +
- " in 'value' and 'valueToSet' arguments.");
- }
- if (typeof (attributeName) === "string") {
- assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
- assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
- if (typeof (expectedType) !== "undefined") {
- if (expectedValue === null) {
- assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
- } else {
- assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
- }
- } else {
- assert_unreached("Fix your test. Wrong type " + expectedType);
- }
- tmp = obj[attributeName];
- obj[attributeName] = valueToAssign;
- assert_equals(obj[attributeName], tmp, attributeName + " can be modified.");
- } else {
- assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
- }
-}
-
-/**
- * Method to check if attribute is readonly.
- * Example usage:
- * check_readonly(statusNotification, "postedTime", null, 'object', new Date());
- *
- * @param obj object to test which has readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) {
- check_const(obj, attributeName, expectedValue, expectedType, valueToAssign);
-}
-
-/**
- * Method to check if attribute can be set to null.
- * Example usage:
- * check_not_nullable(syncInfo, "mode");
- *
- * @param obj object to test which has not nullable attribute
- * @param attributeName attribute name.
- */
-function check_not_nullable(obj, attributeName)
-{ var old_value = obj[attributeName];
- obj[attributeName] = null;
- assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null.");
- obj[attributeName] = old_value;
-}
-
-/**
- * Method to check NoInterfaceObject
- * Example usage:
- * check_no_interface_object("BluetoothAdapter")
- *
- * @param interfaceName interface name
- */
-function check_no_interface_object(interfaceName) {
- assert_throws({name: "TypeError"}, function () {
- tizen[interfaceName]();
- },"Wrong call as a function");
- assert_throws({name: "TypeError"}, function () {
- new tizen[interfaceName]();
- },"Wrong call as a new function");
- assert_throws({name: "TypeError"}, function () {
- ({}) instanceof tizen[interfaceName];
- },"instanceof exception");
- assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined.");
-}
-
-
-/**
- * Method to check Constructors
- * Example usage:
- * check_constructor("BluetoothAdapter")
- *
- * @param constructorName constructor name
- */
-
-function check_constructor(constructorName) {
- assert_true(constructorName in tizen, "No " + constructorName + " in tizen.");
- assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName);
- assert_throws({
- name: "TypeError"
- }, function () {
- tizen[constructorName]();
- }, "Constructor called as function.");
-}
-
-/**
- * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED).
- * That method also checks if given method exists in a given object.
- * Example usage:
- * check_method_exists(tizen.notification, "get");
- *
- * @param obj object with method
- * @param methodName name of the method to check.
- */
-function check_method_exists(obj, methodName) {
- assert_type(obj[methodName], 'function', "Method does not exist.");
-}
-
-/**
- * Method to check extensibility of given object.
- * Method checks if new attribute and method can be added.
- * Example usage:
- * check_extensibility(tizen.notification);
- *
- * @param obj object to check
- */
-function check_extensibility(obj) {
- var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue";
- obj.newDummyMethod = function() {
- return dummyMethodResult;
- }
- assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method.");
-
- obj.newDummyAttribute = dummyAttribute;
- assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute.");
-}
-
-/**
- * Method to check if attribute can be modify.
- * Example usage:
- * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html");
- *
- * @param obj object to test which has not readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) {
- if (expectedValue === valueToAssign) {
- assert_unreached("Fix your test. The same values given for " + attributeName +
- " in 'value' and 'valueToSet' arguments.");
- }
- if (typeof (attributeName) === "string") {
- assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
- assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
- if (typeof (expectedType) !== "undefined") {
- if (expectedValue === null) {
- assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
- } else {
- assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
- }
- } else {
- assert_unreached("Fix your test. Wrong type " + expectedType);
- }
- obj[attributeName] = valueToAssign;
- assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified.");
- } else {
- assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
- }
-}
-
-/**
- * Method to check if whole array can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_array_assignments(message, "to", false);
- *
- * @param obj object which has the array as its property
- * @param array name of the array to check
- * @param isNullable indicates if the array can be null
- */
-function check_invalid_array_assignments(obj, array, isNullable) {
- var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}],
- val = obj[array], i;
-
- if (!isNullable) {
- obj[array] = null;
- assert_not_equals(obj[array], null, "Non-nullable array was set to null");
- assert_type(obj[array], "array", "Non-nullable array type changed after assigning null");
- assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null");
- }
-
- for (i = 0 ; i < args.length ; i++) {
- obj[array] = args[i];
- assert_type(obj[array], "array", "Array type changed after assigning an invalid value");
- assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value");
- }
-}
-
-/**
- * Method to check if an object can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_object_assignments(message, "body", false);
- *
- * @param parentObj object which has the 'obj' object as its property
- * @param obj name of the object to check
- * @param isNullable indicates if the object can be null
- */
-function check_invalid_obj_assignments(parentObj, obj, isNullable) {
- var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}],
- val = parentObj[obj], i;
-
- if (!isNullable) {
- parentObj[obj] = null;
- assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null");
- }
-
- for (i = 0 ; i < args.length ; i++) {
- parentObj[obj] = args[i];
- assert_equals(parentObj[obj], val, "The object was set to " + args[i]);
- }
-}
-
-/**
- * Method to validate conversion for listeners.
- * Example usage:
- * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]);
- * for(i = 0; i < incorrectListeners.length; i++) {
- * packageInformationEventCallback = incorrectListeners[i][0];
- * exceptionName = incorrectListeners[i][1];
- * assert_throws({name : exceptionName},
- * function () {
- * tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
- * }, exceptionName + " should be thrown - given incorrect successCallback.");
- * }
- *
- *
- * @param callbackNames Array with names
- * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1)
- *
- */
-function getListenerConversionExceptions(callbackNames) {
- var result = [], conversionTable, i, j, listenerName;
- conversionTable = getTypeConversionExceptions("functionObject", false);
-
- for (i = 0; i < callbackNames.length; i++) {
- for (j = 0; j < conversionTable.length; j++) {
- listenerName = {};
- listenerName[callbackNames[i]] = conversionTable[j][0];
- result.push([listenerName, conversionTable[j][1]]);
- }
- }
-
- return result;
-}
diff --git a/tct-filesystem-tizen-tests/tests.full.xml b/tct-filesystem-tizen-tests/tests.full.xml
index 570e475cd..63465f11e 100644
--- a/tct-filesystem-tizen-tests/tests.full.xml
+++ b/tct-filesystem-tizen-tests/tests.full.xml
@@ -3,7 +3,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileArraySuccessCallback_notexist.html
@@ -27,7 +27,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStreamSuccessCallback_notexist.html
@@ -111,7 +111,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_extend.html
@@ -123,7 +123,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_notexist.html
@@ -183,7 +183,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_with_invalid_value.html
@@ -195,7 +195,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_without_r_permission.html
@@ -207,7 +207,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_writeFile.html
@@ -243,7 +243,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_with_invalid_value.html
@@ -255,7 +255,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_without_r_permission.html
@@ -267,7 +267,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_writeFile.html
@@ -291,7 +291,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_with_invalid_value.html
@@ -303,7 +303,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_without_r_permission.html
@@ -315,7 +315,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_writeFile.html
@@ -363,7 +363,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_without_w_permission.html
@@ -423,7 +423,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_with_additional_null_parameter.html
@@ -435,7 +435,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_without_w_permission.html
@@ -459,7 +459,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_write_without_w_permission.html
@@ -471,7 +471,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStringSuccessCallback_notexist.html
@@ -495,7 +495,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSuccessCallback_notexist.html
@@ -519,7 +519,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManagerObject_notexist.html
@@ -627,7 +627,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_without_arguments.html
@@ -735,7 +735,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_with_nonexist_label.html
@@ -855,7 +855,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_storages_retrieve.html
@@ -867,7 +867,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_with_invalid_error_callbacks.html
@@ -891,7 +891,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_without_arguments.html
@@ -903,7 +903,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_works_correctly.html
@@ -963,7 +963,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_with_para_invalid.html
@@ -975,7 +975,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_works_correctly.html
@@ -999,7 +999,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_documents.html
@@ -1011,7 +1011,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_downloads.html
@@ -1023,7 +1023,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_error_invoked.html
@@ -1059,7 +1059,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_invalid_location.html
@@ -1095,7 +1095,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_a.html
@@ -1107,7 +1107,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_r.html
@@ -1119,7 +1119,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_w.html
@@ -1131,7 +1131,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_music.html
@@ -1203,7 +1203,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_a.html
@@ -1215,7 +1215,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_rw.html
@@ -1227,7 +1227,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html
@@ -1239,7 +1239,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_videos.html
@@ -1251,7 +1251,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_a.html
@@ -1263,7 +1263,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_rw.html
@@ -1275,7 +1275,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_w.html
@@ -1347,7 +1347,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_works_correctly.html
@@ -1359,7 +1359,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageArraySuccessCallback_notexist.html
@@ -1383,7 +1383,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageSuccessCallback_notexist.html
@@ -1407,7 +1407,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_extend.html
@@ -1431,7 +1431,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_notexist.html
@@ -1479,7 +1479,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_false.html
@@ -1491,7 +1491,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_true.html
@@ -1503,7 +1503,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_samedir_samename_overwrite_false.html
@@ -1515,7 +1515,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_samedir_samename_overwrite_true.html
@@ -1539,7 +1539,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_false.html
@@ -1551,7 +1551,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_true.html
@@ -1563,7 +1563,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_samedir_samename_overwrite_false.html
@@ -1575,7 +1575,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_samedir_samename_overwrite_true.html
@@ -1635,7 +1635,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_destination_invalid.html
@@ -1647,7 +1647,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_file_handle.html
@@ -1659,7 +1659,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_invalid_filepath.html
@@ -1671,7 +1671,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_invalid_virtual_file.html
@@ -1683,7 +1683,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_null_success_and_error_callbacks.html
@@ -1719,7 +1719,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_para_invalid.html
@@ -1731,7 +1731,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newName.html
@@ -1743,7 +1743,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_overwrite_false.html
@@ -1755,7 +1755,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_subdir.html
@@ -1791,7 +1791,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_createDirectory_level2.html
@@ -1827,7 +1827,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_createFile_existing_file.html
@@ -1839,7 +1839,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_createFile_with_invalid_name.html
@@ -1875,7 +1875,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_documents.html
@@ -1887,7 +1887,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_downloads.html
@@ -1899,7 +1899,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_images.html
@@ -1911,7 +1911,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_music.html
@@ -1923,7 +1923,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_videos.html
@@ -1995,7 +1995,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_with_empty_path.html
@@ -2007,7 +2007,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_with_file_handle.html
@@ -2019,7 +2019,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_with_null_callbacks.html
@@ -2067,7 +2067,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_copyFile_downloads.html
@@ -2079,7 +2079,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_copyFile_images.html
@@ -2091,7 +2091,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_copyFile_music.html
@@ -2103,7 +2103,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_copyFile_videos.html
@@ -2115,7 +2115,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_createFile.html
@@ -2139,7 +2139,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listDocumentsFiles.html
@@ -2151,7 +2151,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listDownloadsFiles.html
@@ -2163,7 +2163,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listImagsFiles.html
@@ -2175,7 +2175,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listMusicFiles.html
@@ -2187,7 +2187,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listVideosfiles.html
@@ -2247,7 +2247,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_dir_handle.html
@@ -2259,7 +2259,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_nonexist.html
@@ -2295,7 +2295,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_vaild_callbacks.html
@@ -2307,7 +2307,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_valid_filePath.html
@@ -2319,7 +2319,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_extend.html
@@ -2403,7 +2403,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_createFiles.html
@@ -2439,7 +2439,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_filter_empty.html
@@ -2511,7 +2511,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_with_file_handle.html
@@ -2523,7 +2523,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_with_filter.html
@@ -2547,7 +2547,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_with_valid_successCallback.html
@@ -2583,7 +2583,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_false.html
@@ -2595,7 +2595,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_true.html
@@ -2607,7 +2607,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_empty_destination_source_and_destination_paths.html
@@ -2631,7 +2631,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_overwrite_false.html
@@ -2643,7 +2643,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_overwrite_true.html
@@ -2691,7 +2691,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_onsuccess_invalid_cb.html
@@ -2703,7 +2703,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_additional_null_parameter.html
@@ -2715,7 +2715,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_file_handle.html
@@ -2727,7 +2727,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_invalid_filePath.html
@@ -2763,7 +2763,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_path_invalid.html
@@ -2775,7 +2775,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newName.html
@@ -2787,7 +2787,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_overwrite_false.html
@@ -2799,7 +2799,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_subdir.html
@@ -2823,7 +2823,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_notexist.html
@@ -2847,7 +2847,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_encoding_invalid.html
@@ -2895,7 +2895,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_a.html
@@ -2907,7 +2907,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_r.html
@@ -2919,7 +2919,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_rw.html
@@ -2931,7 +2931,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_w.html
@@ -3003,7 +3003,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_with_nonexist_file.html
@@ -3075,7 +3075,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_encoding_invalid.html
@@ -3099,7 +3099,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listDocumentsFiles.html
@@ -3111,7 +3111,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listDownloadsFiles.html
@@ -3123,7 +3123,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listImagesFiles.html
@@ -3135,7 +3135,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listMusicFiles.html
@@ -3147,7 +3147,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listVideosFiles.html
@@ -3279,7 +3279,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_resolve_with_invalid_para.html
@@ -3291,7 +3291,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_resolve_with_nonexist.html
@@ -3339,7 +3339,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/File_toURI_with_nonexist_file.html
@@ -3351,7 +3351,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/filesystem_FileStreamSuccessCallback_onsuccess.html
@@ -3363,7 +3363,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/filesystem_File_copyTo.html
@@ -3375,7 +3375,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/filesystem_File_readAsText.html
@@ -3387,7 +3387,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/filesystem_File_resolve.html
diff --git a/tct-filesystem-tizen-tests/tests.xml b/tct-filesystem-tizen-tests/tests.xml
index b5c421f6c..5571da32c 100644
--- a/tct-filesystem-tizen-tests/tests.xml
+++ b/tct-filesystem-tizen-tests/tests.xml
@@ -3,7 +3,7 @@
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileArraySuccessCallback_notexist.html
@@ -13,7 +13,7 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileArraySuccessCallback_onsuccess.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStreamSuccessCallback_notexist.html
@@ -48,12 +48,12 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_eof_attribute.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_extend.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_notexist.html
@@ -78,17 +78,17 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_exist.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_with_invalid_value.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_without_r_permission.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_writeFile.html
@@ -103,17 +103,17 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_exist.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_with_invalid_value.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_without_r_permission.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_writeFile.html
@@ -123,17 +123,17 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_exist.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_with_invalid_value.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_without_r_permission.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_writeFile.html
@@ -153,7 +153,7 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_exist.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_without_w_permission.html
@@ -178,12 +178,12 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_missarg.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_with_additional_null_parameter.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_without_w_permission.html
@@ -193,12 +193,12 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_write_exist.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStream_write_without_w_permission.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileStringSuccessCallback_notexist.html
@@ -208,7 +208,7 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileStringSuccessCallback_onsuccess.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSuccessCallback_notexist.html
@@ -218,7 +218,7 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileSuccessCallback_onsuccess.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManagerObject_notexist.html
@@ -263,7 +263,7 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_with_onerror.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_without_arguments.html
@@ -308,7 +308,7 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_invalid_cb.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_with_nonexist_label.html
@@ -358,12 +358,12 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_invalid_cb.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_storages_retrieve.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_with_invalid_error_callbacks.html
@@ -373,12 +373,12 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_with_onerror.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_without_arguments.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_works_correctly.html
@@ -403,12 +403,12 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_exist.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_with_para_invalid.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_works_correctly.html
@@ -418,17 +418,17 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_documents.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_downloads.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_error_invoked.html
@@ -443,7 +443,7 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_images.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_invalid_location.html
@@ -458,22 +458,22 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_TypeMismatch.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_a.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_r.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_w.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_music.html
@@ -503,37 +503,37 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_a.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_rw.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_videos.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_a.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_rw.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_w.html
@@ -563,12 +563,12 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_with_onerror.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_works_correctly.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageArraySuccessCallback_notexist.html
@@ -578,7 +578,7 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageArraySuccessCallback_onsuccess.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageSuccessCallback_notexist.html
@@ -588,7 +588,7 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageSuccessCallback_onsuccess.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_extend.html
@@ -598,7 +598,7 @@
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_label_attribute.html
-
+
/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_notexist.html
@@ -618,22 +618,22 @@
/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo.html
-
+