//==== LABEL check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull.
//==== PRIORITY P2
//==== STEP check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull.
-//==== EXPECT directory should be copied to another location with same name in overwrite is true.
+//==== EXPECT directory should be copied to another location where already exist the directory with the same name
//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
//==== TEST_CRITERIA MOA
<div id="log"></div>
<script type="text/javascript">
//==== TEST: File_copyTo_dir_samedir_samename_overwrite_true
-//==== LABEL check if copy a directory to the same location with the same name (overwrite is true) was successyful.
+//==== LABEL check if error callback invoked when copy a directory to the same location with the same name (overwrite is true).
//==== PRIORITY P2
-//==== STEP check if copy a directory to the same location with the same name (overwrite is true) was successyful.
-//==== EXPECT directory should be copied to another location with same name in overwrite is true.
+//==== STEP check if error callback invoked when copy a directory to the same location with the same name (overwrite is true).
+//==== EXPECT exception should be thrown.
//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
+//==== TEST_CRITERIA MERRCB
var resolveSuccess, resolveError, copySuccess, fsTestDir1, fsTestDirName1, fsTestSubDir1, fsTestSubDirName1,
- t = async_test("File_copyTo_dir_samedir_samename_overwrite_true"), copyError;
+ t = async_test("File_copyTo_dir_samedir_samename_overwrite_true"), copyError, expectedError = "IOError";
t.step(function () {
fsTestDirName1 = getDirName("filesystem1");
fsTestSubDirName1 = getDirName("filesystem1sub");
copySuccess = t.step_func(function () {
- t.done();
+ assert_unreached("copySuccess callback shouldn't be invoked");
});
copyError = t.step_func(function (error) {
- assert_unreached("copyTo() error callback invoked: name:" + error.name + "msg:" + error.message);
+ assert_equals(error.name, expectedError, "wrong error type");
+ t.done();
});
resolveSuccess = t.step_func(function (dir) {
//==== LABEL check if copy a file to another location of the file with the same name (overwrite is true) was successfull.
//==== PRIORITY P2
//==== STEP check if copy a file to another location of the file with the same name (overwrite is true) was successfull.
-//==== EXPECT file should be copied to another location with same name.
+//==== EXPECT file should be copied to another location where already exist the file with the same name
//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
//==== TEST_CRITERIA MOA
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+*Redistributions of works must retain the original copyright notice, this list
+of conditions and the following disclaimer.
+*Redistributions in binary form must reproduce the original copyright notice,
+this list of conditions and the following disclaimer in the documentation
+and/or other materials provided with the distribution.
+*Neither the name of Intel Corporation nor the names of its contributors
+may be used to endorse or promote products derived from this work without
+specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+ Kaiyu <kaiyux.li@intel.com>
+ Mariusz Polasinski <m.polasinski@samsung.com>
+
+-->
+
+<html lang="en">
+
+<head>
+<title>File_copyTo_file_samedir_samename_overwrite_true</title>
+<script type="text/javascript" src="../resources/testharness.js"></script>
+<script type="text/javascript" src="../resources/testharnessreport.js"></script>
+<script type="text/javascript" src="support/filesystem_common.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: File_copyTo_file_samedir_samename_overwrite_true
+//==== LABEL check if error callback invoked when copy a file to the same location with the same name (overwrite is true)
+//==== PRIORITY P2
+//==== STEP check if error callback invoked when copy a file to the same location with the same name (overwrite is true)
+//==== EXPECT exception should be thrown.
+//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA MERRCB
+
+var t = async_test("File_copyTo_file_samedir_samename_overwrite_true"), resolveSuccess, copyError,
+ resolveError, copySuccess, fsTestFile, fsTestFileName, fsTestDir, fsTestDirName, expectedError = "IOError";
+
+t.step(function () {
+ fsTestDirName = getFileName("filesystem");
+ fsTestFileName = getFileName("filesystem.txt");
+
+ copySuccess = t.step_func(function () {
+ assert_unreached("copySuccess callback shouldn't be invoked");
+ });
+
+ copyError = t.step_func(function (error) {
+ assert_equals(error.name, expectedError, "wrong error type");
+ t.done();
+ });
+
+ resolveSuccess = t.step_func(function (dir) {
+ fsTestDir = dir.createDirectory(fsTestDirName);
+ fsTestFile = fsTestDir.createFile(fsTestFileName);
+ fsTestDir.copyTo(fsTestFile.fullPath, fsTestFile.path, true, copySuccess, copyError);
+ });
+
+ resolveError = t.step_func(function (error) {
+ assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
+ });
+
+ prepareForTesting(t, function () {
+ tizen.filesystem.resolve("documents", resolveSuccess, resolveError, "rw");
+ });
+});
+</script>
+</body>
+</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
- of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
- may be used to endorse or promote products derived from this work without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
- Kaiyu <kaiyux.li@intel.com>
- Guan,JingX <jingx.guan@intel.com>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html lang="en">
-
-</head>
-<title>File_copyTo_writeFile_newDir</title>
-<script type="text/javascript" src="../resources/testharness.js"></script>
-<script type="text/javascript" src="../resources/testharnessreport.js"></script>
-<script type="text/javascript" src="support/filesystem_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: File_copyTo_writeFile_newDir
-//==== LABEL check if create a new empty file and write content of the file and then copy the file to the same location with different file name
-//==== STEP check if create a new empty file and write content of the file and then copy the file to the same location with different file name
-//==== EXPECT PASS
-//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var resolveSuccess, resolveError, copySuccess, copyError, openStreamSuccess, openStreamError,
- fsTestFileName, fsTestFile, fsTestDirName, fsTestDir,
- t = async_test("File_copyTo_writeFile_newDir");
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
- fsTestDirName = getDirName("filesystem");
-
- copyError = t.step_func(function (error) {
- assert_unreached("copyTo() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- copySuccess = t.step_func(function () {
- t.done();
- });
-
- openStreamError = t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write("test");
- fs.close();
- fsTestDir.copyTo(fsTestFile.fullPath, fsTestDir.fullPath + "/new" + fsTestFile.name, true, copySuccess, copyError);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestDir = dir.createDirectory(fsTestDirName);
- fsTestFile = fsTestDir.createFile(fsTestFileName);
- fsTestFile.openStream("rw", openStreamSuccess, openStreamError, "UTF-8");
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- prepareForTesting(t, function () {
- tizen.filesystem.resolve("documents", resolveSuccess, resolveError, "rw");
- });
-
-});
-
-</script>
-</body>
-</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+ of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+ may be used to endorse or promote products derived from this work without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+ Kaiyu <kaiyux.li@intel.com>
+ Guan,JingX <jingx.guan@intel.com>
+ Mariusz Polasinski <m.polasinski@samsung.com>
+
+-->
+
+<html lang="en">
+
+</head>
+<title>File_copyTo_writeFile_newName</title>
+<script type="text/javascript" src="../resources/testharness.js"></script>
+<script type="text/javascript" src="../resources/testharnessreport.js"></script>
+<script type="text/javascript" src="support/filesystem_common.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: File_copyTo_writeFile_newName
+//==== LABEL check if create a new empty file and write content of the file and then copy the file to the same location with different file name
+//==== STEP check if create a new empty file and write content of the file and then copy the file to the same location with different file name
+//==== EXPECT PASS
+//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA MOA
+
+
+var resolveSuccess, resolveError, copySuccess, copyError, openStreamSuccess, openStreamError,
+ fsTestFileName, fsTestFileName2, fsTestFile, fsTestDirName, fsTestDir,
+ t = async_test("File_copyTo_writeFile_newName");
+
+t.step(function () {
+ fsTestFileName = getFileName("filesystem.txt");
+ fsTestFileName2 = getFileName("filesystem2.txt");
+ fsTestDirName = getDirName("filesystem");
+
+ copyError = t.step_func(function (error) {
+ assert_unreached("copyTo() error callback invoked: name:" + error.name + "msg:" + error.message);
+ });
+
+ copySuccess = t.step_func(function () {
+ t.done();
+ });
+
+ openStreamError = t.step_func(function (error) {
+ assert_unreached("openStream() error callback invoked: name:" + error.name + "msg:" + error.message);
+ });
+
+ openStreamSuccess = t.step_func(function (fs) {
+ fs.write("test");
+ fs.close();
+ fsTestDir.copyTo(fsTestFile.fullPath, fsTestDir.fullPath + "/" + fsTestFileName2, true, copySuccess, copyError);
+ });
+
+ resolveSuccess = t.step_func(function (dir) {
+ fsTestDir = dir.createDirectory(fsTestDirName);
+ fsTestFile = fsTestDir.createFile(fsTestFileName);
+ fsTestFile.openStream("rw", openStreamSuccess, openStreamError, "UTF-8");
+ });
+
+ resolveError = t.step_func(function (error) {
+ assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
+ });
+
+ prepareForTesting(t, function () {
+ tizen.filesystem.resolve("documents", resolveSuccess, resolveError, "rw");
+ });
+
+});
+
+</script>
+</body>
+</html>
<div id="log"></div>
<script type="text/javascript">
//==== TEST: File_copyTo_writeFile_overwrite_false
-//==== LABEL check if create a new empty file and write content of the file and then copy the file to the same location with same file name (overwrite false)
-//==== STEP check if create a new empty file and write content of the file and then copy the file to the same location with same file name (overwrite false)
+//==== LABEL check if create a new empty file and write content of the file and then copy the file to another location with same file name (overwrite false)
+//==== STEP check if create a new empty file and write content of the file and then copy the file to another location with same file name (overwrite false)
//==== EXPECT PASS
//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
var t = async_test("File_copyTo_writeFile_overwirte_false"), resolveSuccess, resolveError,
openStreamSuccess, openStreamError, copyToSuccess, copyToError, fsTestFileName,
- fsTestFile, fsTestDirName, fsTestDir, expectedError = "IOError";
+ fsTestFile, fsTestDirName, fsTestDir, expectedError = "IOError", mainDir;
t.step(function () {
fsTestFileName = getFileName("filesystem.txt");
openStreamSuccess = t.step_func(function (fs) {
fs.write("test");
fs.close();
- fsTestDir.copyTo(fsTestFile.fullPath, fsTestDir.fullPath + "/" + fsTestFile.name, false, copyToSuccess, copyToError);
+ mainDir.copyTo(fsTestFile.fullPath, fsTestDir.fullPath + "/" + fsTestFile.name, false, copyToSuccess, copyToError);
});
openStreamError = t.step_func(function (error) {
});
resolveSuccess = t.step_func(function (dir) {
+ mainDir = dir;
+ fsTestFile = dir.createFile(fsTestFileName);
fsTestDir = dir.createDirectory(fsTestDirName);
- fsTestFile = fsTestDir.createFile(fsTestFileName);
+ fsTestDir.createFile(fsTestFileName);
fsTestFile.openStream("rw", openStreamSuccess, openStreamError, "UTF-8");
});
--- /dev/null
+<!DOCTYPE html>
+<!--
+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:
+ Mariusz Polasinski <m.polasinski@samsung.com>
+
+-->
+
+<html lang="en">
+
+<head>
+<title>File_moveTo_dir_samedir_samename_overwrite_false</title>
+<script type="text/javascript" src="../resources/testharness.js"></script>
+<script type="text/javascript" src="../resources/testharnessreport.js"></script>
+<script type="text/javascript" src="support/filesystem_common.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: File_moveTo_dir_samedir_samename_overwrite_false
+//==== LABEL check if error callback invoked when move a directory to the same location with the same name (overwrite is false).
+//==== PRIORITY P2
+//==== STEP check if error callback invoked when move a directory to the same location with the same name (overwrite is false)
+//==== EXPECT exception should be thrown.
+//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA MERRCB
+
+
+var resolveSuccess, resolveError, moveToSuccess, moveToError, fsTestDir1, fsTestDirName1, fsTestSubDir1,
+ fsTestSubDirName1, expected = "IOError",
+ t = async_test("File_moveTo_dir_samedir_samename_overwrite_false");
+
+t.step(function () {
+ fsTestDirName1 = getDirName("filesystem1");
+ fsTestSubDirName1 = getDirName("filesystem1sub");
+
+ moveToSuccess = t.step_func(function () {
+ assert_unreached("copySuccess callback shouldn't be invoked");
+ });
+
+ moveToError = t.step_func(function (error) {
+ assert_equals(error.name, expected, "wrong error type");
+ t.done();
+ });
+
+ resolveSuccess = t.step_func(function (dir) {
+ fsTestDir1 = dir.createDirectory(fsTestDirName1);
+ fsTestSubDir1 = fsTestDir1.createDirectory(fsTestSubDirName1);
+ fsTestDir1.moveTo(fsTestSubDir1.fullPath, fsTestSubDir1.path, false, moveToSuccess, moveToError);
+ });
+
+ resolveError = t.step_func(function (error) {
+ assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
+ });
+
+ prepareForTesting(t, function () {
+ tizen.filesystem.resolve("documents", resolveSuccess, resolveError, "rw");
+ });
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+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:
+ Mariusz Polasinski <m.polasinski@samsung.com>
+
+-->
+
+<html lang="en">
+
+<head>
+<title>File_moveTo_dir_samedir_samename_overwrite_true</title>
+<script type="text/javascript" src="../resources/testharness.js"></script>
+<script type="text/javascript" src="../resources/testharnessreport.js"></script>
+<script type="text/javascript" src="support/filesystem_common.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: File_moveTo_dir_samedir_samename_overwrite_true
+//==== LABEL check if error callback invoked when move a directory to the same location with the same name (overwrite is true).
+//==== PRIORITY P2
+//==== STEP check if error callback invoked when move a directory to the same location with the same name (overwrite is true)
+//==== EXPECT exception should be thrown.
+//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA MERRCB
+
+
+var resolveSuccess, resolveError, moveToSuccess, moveToError, fsTestDir1, fsTestDirName1, fsTestSubDir1,
+ fsTestSubDirName1, expected = "IOError",
+ t = async_test("File_moveTo_dir_samedir_samename_overwrite_true");
+
+t.step(function () {
+ fsTestDirName1 = getDirName("filesystem1");
+ fsTestSubDirName1 = getDirName("filesystem1sub");
+
+ moveToSuccess = t.step_func(function () {
+ assert_unreached("copySuccess callback shouldn't be invoked");
+ });
+
+ moveToError = t.step_func(function (error) {
+ assert_equals(error.name, expected, "wrong error type");
+ t.done();
+ });
+
+ resolveSuccess = t.step_func(function (dir) {
+ fsTestDir1 = dir.createDirectory(fsTestDirName1);
+ fsTestSubDir1 = fsTestDir1.createDirectory(fsTestSubDirName1);
+ fsTestDir1.moveTo(fsTestSubDir1.fullPath, fsTestSubDir1.path, true, moveToSuccess, moveToError);
+ });
+
+ resolveError = t.step_func(function (error) {
+ assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
+ });
+
+ prepareForTesting(t, function () {
+ tizen.filesystem.resolve("documents", resolveSuccess, resolveError, "rw");
+ });
+});
+
+</script>
+</body>
+</html>
<div id="log"></div>
<script type="text/javascript">
//==== TEST: File_moveTo_file_samedir_samename_overwrite_true
-//==== LABEL check if move a file to same location with the same name (overwrite is true) was successyful.
+//==== LABEL check if error callback invoked when move a file to the same location with the same name (overwrite is true)
//==== PRIORITY P2
-//==== STEP check if move a file to same location with the same name (overwrite is true) was successyful.
-//==== EXPECT file should be moved to same location with same name.
+//==== STEP check if error callback invoked when move a file to the same location with the same name (overwrite is true)
+//==== EXPECT exception should be thrown.
//==== SPEC Tizen Web API:IO:Filesystem:File:moveTo M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
-//==== TEST_CRITERIA MAST
+//==== TEST_CRITERIA MERRCB
var t = async_test("File_moveTo_file_samedir_samename_overwrite_true"), resolveSuccess,
- resolveError, moveToSuccess, moveToError,
+ resolveError, moveToSuccess, moveToError, expectedError = "IOError",
fsTestDirName1, fsTestDirName2, fsTestFileName, fsTestDir1,
fsTestDir2, fsTestFile;
fsTestFileName = getFileName("filesystem.txt");
moveToSuccess = t.step_func(function () {
- t.done();
+ assert_unreached("moveToSuccess callback should not be invoked");
});
+
moveToError = t.step_func(function (error) {
- assert_unreached("moveTo() error callback invoked: name: " + error.name + ", msg: " + error.message);
+ assert_equals(error.name, expectedError, "wrong error type");
+ t.done();
});
resolveSuccess = t.step_func(function (dir) {
<script type="text/javascript">
//==== TEST: File_moveTo_with_additional_null_parameter
-//==== LABEL check whether 'moveTo' method invoked with overwrite param set to true properly transfers a file
+//==== LABEL check whether 'moveTo' method invoked with additional null parameter properly transfers a file
//==== SPEC Tizen Web API:IO:Filesystem:File:moveTo M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html#moveToid2592799
//==== TEST_CRITERIA MOA
-var this_test = async_test("File_moveTo_with_additional_null_parameter"),
+var this_test = async_test("File_moveTo_with_additional_null_parameter"), fsTestFileName2,
resolveSuccess, resolveError, file, movedPath, fsTestFileName, moveToSuccess;
this_test.step(function () {
fsTestFileName = getFileName("filesystem.txt");
+ fsTestFileName2 = getFileName("filesystem2.txt");
moveToSuccess = this_test.step_func(function () {
this_test.done();
resolveSuccess = this_test.step_func(function (dir) {
file = dir.createFile(fsTestFileName);
assert_true(isFileObject(file), "isFileObject(createdFile)");
- movedPath = dir.fullPath + "/" + fsTestFileName;
+ movedPath = dir.fullPath + "/" + fsTestFileName2;
dir.moveTo(file.fullPath, movedPath, true, moveToSuccess, null, null);
});
<script type="text/javascript">
//==== TEST: File_moveTo_with_file_handle
-//==== LABEL check if throw an exception when moveTo with file handle.
+//==== LABEL check if errorCallback will be invoked when moveTo will be used with file handle.
//==== PRIORITY P2
-//==== STEP check if throw an exception when moveTo with file handle.
+//==== STEP check if errorCallback will be invoked when moveTo will be used with file handle.
//==== EXPECT exception should be thrown.
//==== SPEC Tizen Web API:IO:Filesystem:File:moveTo M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
//==== TEST_CRITERIA MERRCB
-var resolveSuccess, resolveError, moveToSuccess, moveToError, documentsDir, fsTestDirName1,
+var resolveSuccess, resolveError, moveToSuccess, moveToError, fsTestDirName1,
fsTestDirName2, fsTestDir1, fsTestDir2, fsTestFileName, fsTestFile,
expectedError = "IOError", t = async_test("File_moveTo_with_file_handle");
t.step(function () {
fsTestDirName1 = getFileName("filesystem");
- fsTestDirName2 = getFileName("destination");
+ fsTestDirName2 = getFileName("filesystem2");
fsTestFileName = getFileName("filesystem.txt");
moveToSuccess = t.step_func(function () {
});
resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
fsTestDir1 = dir.createDirectory(fsTestDirName1);
fsTestDir2 = fsTestDir1.createDirectory(fsTestDirName2);
fsTestFile = fsTestDir2.createFile(fsTestFileName);
- fsTestFile.moveTo(fsTestFile.name, "documents/filesystem02/filesystem01/", true, moveToSuccess, moveToError);
+ fsTestFile.moveTo(fsTestFile.fullPath, fsTestDir1.path, true, moveToSuccess, moveToError);
});
resolveError = t.step_func(function (error) {
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
- of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
- may be used to endorse or promote products derived from this work without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
- Kaiyu <kaiyux.li@intel.com>
- Guan,JingX <jingx.guan@intel.com>
-
--->
-
-<html lang="en">
-<head>
-<title> File_moveTo_writeFile_newDir </title>
-<meta charset="utf-8" />
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: File_moveTo_writeFile_newDir
-//==== LABEL check if create a new empty file and write content of the file and then move the file to the same location with different file name
-//==== STEP check if create a new empty file and write content of the file and then move the file to the same location with different file name
-//==== EXPECT PASS
-//==== SPEC Tizen Web API:IO:Filesystem:File:moveTo M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var resolveSuccess, resolveError, fsTestDirName, fsTestFileName, fsTestDir,
- fsTestFile, moveToSuccess, moveToError, t = async_test("File_moveTo_writeFile_newDir"),
- openStreamSuccess, openStreamError;
-
-t.step(function () {
- fsTestDirName = getFileName("filesystem");
- fsTestFileName = getFileName("filesystem.txt");
-
- moveToSuccess = t.step_func(function () {
- t.done();
- });
-
- moveToError = t.step_func(function (error) {
- assert_unreached("moveTo() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write("test");
- fs.close();
- fsTestDir.moveTo(fsTestFile.fullPath, fsTestDir.fullPath + "/new" + fsTestFile.name,
- true, moveToSuccess, moveToError);
- });
-
- openStreamError = t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestDir = dir.createDirectory(fsTestDirName);
- fsTestFile = fsTestDir.createFile(fsTestFileName);
- fsTestFile.openStream("rw", openStreamSuccess, openStreamError, "UTF-8");
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- prepareForTesting(t, function () {
- tizen.filesystem.resolve("documents", resolveSuccess, resolveError, "rw");
- });
-});
-</script>
-</body>
-</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+ of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+ may be used to endorse or promote products derived from this work without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+ Kaiyu <kaiyux.li@intel.com>
+ Guan,JingX <jingx.guan@intel.com>
+
+-->
+
+<html lang="en">
+<head>
+<title> File_moveTo_writeFile_newName </title>
+<meta charset="utf-8" />
+<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/filesystem_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+
+//==== TEST: File_moveTo_writeFile_newName
+//==== LABEL check if create a new empty file and write content of the file and then move the file to the same location with different file name
+//==== STEP check if create a new empty file and write content of the file and then move the file to the same location with different file name
+//==== EXPECT PASS
+//==== SPEC Tizen Web API:IO:Filesystem:File:moveTo M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA MOA
+
+
+var resolveSuccess, resolveError, fsTestDirName, fsTestFileName, fsTestDir,
+ fsTestFile, fsTestFileName2, moveToSuccess, moveToError, t = async_test("File_moveTo_writeFile_newName"),
+ openStreamSuccess, openStreamError;
+
+t.step(function () {
+ fsTestDirName = getFileName("filesystem");
+ fsTestFileName = getFileName("filesystem.txt");
+ fsTestFileName2 = getFileName("filesystem2.txt");
+
+ moveToSuccess = t.step_func(function () {
+ t.done();
+ });
+
+ moveToError = t.step_func(function (error) {
+ assert_unreached("moveTo() error callback invoked: name:" + error.name + "msg:" + error.message);
+ });
+
+ openStreamSuccess = t.step_func(function (fs) {
+ fs.write("test");
+ fs.close();
+ fsTestDir.moveTo(fsTestFile.fullPath, fsTestDir.fullPath + "/" + fsTestFileName2,
+ true, moveToSuccess, moveToError);
+ });
+
+ openStreamError = t.step_func(function (error) {
+ assert_unreached("openStream() error callback invoked: name:" + error.name + "msg:" + error.message);
+ });
+
+ resolveSuccess = t.step_func(function (dir) {
+ fsTestDir = dir.createDirectory(fsTestDirName);
+ fsTestFile = fsTestDir.createFile(fsTestFileName);
+ fsTestFile.openStream("rw", openStreamSuccess, openStreamError, "UTF-8");
+ });
+
+ resolveError = t.step_func(function (error) {
+ assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
+ });
+
+ prepareForTesting(t, function () {
+ tizen.filesystem.resolve("documents", resolveSuccess, resolveError, "rw");
+ });
+});
+</script>
+</body>
+</html>
<script type="text/javascript">
//==== TEST: File_moveTo_writeFile_overwrite_false
-//==== LABEL check if create a new empty file and write content of the file and then move the file to the same location with same file name (overwrite false)
-//==== STEP check if create a new empty file and write content of the file and then move the file to the same location with same file name (overwrite false)
+//==== LABEL check if create a new empty file and write content of the file and then move the file to another location with same file name (overwrite false)
+//==== STEP check if create a new empty file and write content of the file and then move the file to another location with same file name (overwrite false)
//==== EXPECT PASS
//==== SPEC Tizen Web API:IO:Filesystem:File:moveTo M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
var t = async_test("File_moveTo_writeFile_overwrite_false"),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, moveToSuccess,
+ resolveSuccess, resolveError, openStreamSuccess, openStreamError, moveToSuccess, mainDir,
moveToError, fsTestFileName, fsTestFile, fsTestDirName, fsTestDir, expectedError = "IOError";
t.step(function () {
openStreamSuccess = t.step_func(function (fs) {
fs.write("test");
fs.close();
- fsTestDir.moveTo(fsTestFile.fullPath, fsTestDir.fullPath + "/" + fsTestFile.name,
+ mainDir.moveTo(fsTestFile.fullPath, fsTestDir.fullPath + "/" + fsTestFile.name,
false, moveToSuccess, moveToError);
});
openStreamError = t.step_func(function (error) {
});
resolveSuccess = t.step_func(function (dir) {
+ mainDir = dir;
+ fsTestFile = dir.createFile(fsTestFileName);
fsTestDir = dir.createDirectory(fsTestDirName);
- fsTestFile = fsTestDir.createFile(fsTestFileName);
+ fsTestDir.createFile(fsTestFileName);
fsTestFile.openStream("rw", openStreamSuccess, openStreamError, "UTF-8");
});
</spec>
</specs>
</testcase>
+ <testcase purpose="check with error callback invoked" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_error_invoked">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_error_invoked.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
<testcase purpose="Check if method can be overriden" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="FileSystemManager_resolve_exist">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_exist.html</test_script_entry>
</spec>
</specs>
</testcase>
+ <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode a" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_invalid_mode_a">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if InvalidValuesError will be reported when the ringtones directory is resolved with mode a</step_desc>
+ <expected>the exception should be thrown</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_a.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="check if InvalidValuesError will be reported when the rightones directory is resolved with mode rw" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_invalid_mode_rw">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if InvalidValuesError will be reported when the rightones directory is resolved with mode rw</step_desc>
+ <expected>the exception should be thrown</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_rw.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode w" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_invalid_mode_w">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if InvalidValuesError will be reported when the ringtones directory is resolved with mode w</step_desc>
+ <expected>the exception should be thrown</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
<testcase purpose="check if resolve videos to a file handle." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_videos">
<description>
<steps>
</spec>
</specs>
</testcase>
+ <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode a" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_invalid_mode_a">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode a</step_desc>
+ <expected>the exception should be thrown</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_a.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode rw" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_invalid_mode_rw">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if InvalidValuesError will be reported when the wgt-package directory is resolved with moderw</step_desc>
+ <expected>the exception should be thrown</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_rw.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode w" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_invalid_mode_w">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode w</step_desc>
+ <expected>the exception should be thrown</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_w.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
<testcase purpose="Check if resolve wgt-package to a file handle." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_resolve_wgt_package">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt_package.html</test_script_entry>
</spec>
</specs>
</testcase>
+ <testcase purpose="check if error callback was invoked when copy a directory to another location of the directory with the same name (overwrite is false)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_dir_overwrite_false">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if error callback was invoked when copy a directory to another location of the directory with the same name (overwrite is false)</step_desc>
+ <expected>exception should be thrown.</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_false.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_dir_overwrite_true">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull.</step_desc>
+ <expected>directory should be copied to another location where already exist the directory with the same name</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_true.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
<testcase purpose="check if error callback invoked when copy a directory to the same location with the same name (overwrite is false)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_dir_samedir_samename_overwrite_false">
<description>
<steps>
</spec>
</specs>
</testcase>
+ <testcase purpose="check if error callback invoked when copy a directory to the same location with the same name (overwrite is true)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_dir_samedir_samename_overwrite_true">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if error callback invoked when copy a directory to the same location with the same name (overwrite is true).</step_desc>
+ <expected>exception should be thrown.</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_samedir_samename_overwrite_true.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
<testcase purpose="Check if method copyTo exists in File" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="File_copyTo_exist">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_exist.html</test_script_entry>
</spec>
</specs>
</testcase>
+ <testcase purpose="check if error callback was invoked when copy a file to another location of the file with the same name (overwrite is false)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_file_overwrite_false">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if error callback was invoked when copy a file to another location of the file with the same name (overwrite is false)</step_desc>
+ <expected>exception should be thrown.</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_false.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="check if copy a file to another location of the file with the same name (overwrite is true) was successfull." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_file_overwrite_true">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if copy a file to another location of the file with the same name (overwrite is true) was successfull.</step_desc>
+ <expected>file should be copied to another location where already exist the file with the same name</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_true.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
<testcase purpose="check if error callback invoked when copy a file to the same location with the same name (overwrite is false)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_file_samedir_samename_overwrite_false">
<description>
<steps>
</spec>
</specs>
</testcase>
+ <testcase purpose="check if error callback invoked when copy a file to the same location with the same name (overwrite is true)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_file_samedir_samename_overwrite_true">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if error callback invoked when copy a file to the same location with the same name (overwrite is true)</step_desc>
+ <expected>exception should be thrown.</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_samedir_samename_overwrite_true.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
<testcase purpose="Check argument onError conversions exception in copyTo method." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_onerror_TypeMismatch">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_onerror_TypeMismatch.html</test_script_entry>
</spec>
</specs>
</testcase>
+ <testcase purpose="check if throw an exception when copy a file to an invalid destination." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_with_destination_invalid">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if throw an exception when copy a file to an invalid destination.</step_desc>
+ <expected>exception should be thrown.</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_destination_invalid.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
<testcase purpose="check if throw an exception when copyTo with file handle." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_with_file_handle">
<description>
<steps>
</spec>
</specs>
</testcase>
- <testcase purpose="check if create a new empty file and write content of the file and then copy the file to subdirectory with same file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_writeFile_subdir">
+ <testcase purpose="check if create a new empty file and write content of the file and then copy the file to the same location with different file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_writeFile_newName">
<description>
<steps>
<step order="1">
- <step_desc>check if create a new empty file and write content of the file and then copy the file to subdirectory with same file name</step_desc>
+ <step_desc>check if create a new empty file and write content of the file and then copy the file to the same location with different file name</step_desc>
<expected>PASS</expected>
</step>
</steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_subdir.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newName.html</test_script_entry>
</description>
<specs>
<spec>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if method createDirectory of File works properly." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_createDirectory">
+ <testcase purpose="check if create a new empty file and write content of the file and then copy the file to another location with same file name (overwrite false)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_writeFile_overwrite_false">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createDirectory.html</test_script_entry>
+ <steps>
+ <step order="1">
+ <step_desc>check if create a new empty file and write content of the file and then copy the file to another location with same file name (overwrite false)</step_desc>
+ <expected>PASS</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_overwrite_false.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="createDirectory" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/filesystem.html</spec_url>
+ <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if method createDirectory exists in File" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="File_createDirectory_exist">
+ <testcase purpose="check if create a new empty file and write content of the file and then copy the file to subdirectory with same file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_writeFile_subdir">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if create a new empty file and write content of the file and then copy the file to subdirectory with same file name</step_desc>
+ <expected>PASS</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_subdir.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if method createDirectory of File works properly." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_createDirectory">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createDirectory.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="File" element_type="method" element_name="createDirectory" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if method createDirectory exists in File" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="File_createDirectory_exist">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createDirectory_exist.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
+ <testcase purpose="check if error callback invoked when move a directory to the same location with the same name (overwrite is false)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_dir_samedir_samename_overwrite_false">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if error callback invoked when move a directory to the same location with the same name (overwrite is false)</step_desc>
+ <expected>exception should be thrown.</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_false.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="check if error callback invoked when move a directory to the same location with the same name (overwrite is true)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_dir_samedir_samename_overwrite_true">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if error callback invoked when move a directory to the same location with the same name (overwrite is true)</step_desc>
+ <expected>exception should be thrown.</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_true.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
<testcase purpose="check whether invoking 'moveTo' method with improper arguments calls error callback function properly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_empty_destination_source_and_destination_paths">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_empty_destination_source_and_destination_paths.html</test_script_entry>
</spec>
</specs>
</testcase>
- <testcase purpose="check if move a file to same location with the same name (overwrite is true) was successyful." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_file_samedir_samename_overwrite_true">
+ <testcase purpose="check if error callback invoked when move a file to the same location with the same name (overwrite is true)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_file_samedir_samename_overwrite_true">
<description>
<steps>
<step order="1">
- <step_desc>check if move a file to same location with the same name (overwrite is true) was successyful.</step_desc>
- <expected>file should be moved to same location with same name.</expected>
+ <step_desc>check if error callback invoked when move a file to the same location with the same name (overwrite is true)</step_desc>
+ <expected>exception should be thrown.</expected>
</step>
</steps>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_overwrite_true.html</test_script_entry>
</spec>
</specs>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onsucces) was passed into moveTo method." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_onsuccess_invalid_cb">
+ <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into moveTo method." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_onsuccess_invalid_cb">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_onsuccess_invalid_cb.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check whether 'moveTo' method invoked with overwrite param set to true properly transfers a file" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_with_additional_null_parameter">
+ <testcase purpose="check whether 'moveTo' method invoked with additional null parameter properly transfers a file" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_with_additional_null_parameter">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_additional_null_parameter.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="check if throw an exception when moveTo with file handle." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_with_file_handle">
+ <testcase purpose="check if errorCallback will be invoked when moveTo will be used with file handle." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_with_file_handle">
<description>
<steps>
<step order="1">
- <step_desc>check if throw an exception when moveTo with file handle.</step_desc>
+ <step_desc>check if errorCallback will be invoked when moveTo will be used with file handle.</step_desc>
<expected>exception should be thrown.</expected>
</step>
</steps>
</spec>
</specs>
</testcase>
+ <testcase purpose="check if create a new empty file and write content of the file and then move the file to the same location with different file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_writeFile_newName">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if create a new empty file and write content of the file and then move the file to the same location with different file name</step_desc>
+ <expected>PASS</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newName.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="File" element_type="method" element_name="moveTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="check if create a new empty file and write content of the file and then move the file to another location with same file name (overwrite false)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_writeFile_overwrite_false">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>check if create a new empty file and write content of the file and then move the file to another location with same file name (overwrite false)</step_desc>
+ <expected>PASS</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_overwrite_false.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="File" element_type="method" element_name="moveTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
<testcase purpose="check if create a new empty file and write content of the file and then move the file to subdirectory with same file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_writeFile_subdir">
<description>
<steps>
</spec>
</specs>
</testcase>
- <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode a" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_invalid_mode_a">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if InvalidValuesError will be reported when the ringtones directory is resolved with mode a</step_desc>
- <expected>the exception should be thrown</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_a.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check if InvalidValuesError will be reported when the rightones directory is resolved with mode rw" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_invalid_mode_rw">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if InvalidValuesError will be reported when the rightones directory is resolved with mode rw</step_desc>
- <expected>the exception should be thrown</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_rw.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode w" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_invalid_mode_w">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if InvalidValuesError will be reported when the ringtones directory is resolved with mode w</step_desc>
- <expected>the exception should be thrown</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode w" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_invalid_mode_w">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode w</step_desc>
- <expected>the exception should be thrown</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_w.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode a" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_invalid_mode_a">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode a</step_desc>
- <expected>the exception should be thrown</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_a.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode rw" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_invalid_mode_rw">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if InvalidValuesError will be reported when the wgt-package directory is resolved with moderw</step_desc>
- <expected>the exception should be thrown</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_rw.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check with error callback invoked" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_error_invoked">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_error_invoked.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check if error callback was invoked when copy a directory to another location of the directory with the same name (overwrite is false)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_dir_overwrite_false">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if error callback was invoked when copy a directory to another location of the directory with the same name (overwrite is false)</step_desc>
- <expected>exception should be thrown.</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_false.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_dir_overwrite_true">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull.</step_desc>
- <expected>directory should be copied to another location with same name in overwrite is true.</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_true.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check if error callback was invoked when copy a file to another location of the file with the same name (overwrite is false)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_file_overwrite_false">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if error callback was invoked when copy a file to another location of the file with the same name (overwrite is false)</step_desc>
- <expected>exception should be thrown.</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_false.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check if copy a file to another location of the file with the same name (overwrite is true) was successfull." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_file_overwrite_true">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if copy a file to another location of the file with the same name (overwrite is true) was successfull.</step_desc>
- <expected>file should be copied to another location with same name.</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_true.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check if throw an exception when copy a file to an invalid destination." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_with_destination_invalid">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if throw an exception when copy a file to an invalid destination.</step_desc>
- <expected>exception should be thrown.</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_destination_invalid.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check if create a new empty file and write content of the file and then copy the file to the same location with different file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_writeFile_newDir">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if create a new empty file and write content of the file and then copy the file to the same location with different file name</step_desc>
- <expected>PASS</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newDir.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check if create a new empty file and write content of the file and then move the file to the same location with different file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_writeFile_newDir">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if create a new empty file and write content of the file and then move the file to the same location with different file name</step_desc>
- <expected>PASS</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newDir.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="moveTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check if create a new empty file and write content of the file and then move the file to the same location with same file name (overwrite false)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_writeFile_overwrite_false">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if create a new empty file and write content of the file and then move the file to the same location with same file name (overwrite false)</step_desc>
- <expected>PASS</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_overwrite_false.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="moveTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check if create a new empty file and write content of the file and then copy the file to the same location with same file name (overwrite false)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_writeFile_overwrite_false">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if create a new empty file and write content of the file and then copy the file to the same location with same file name (overwrite false)</step_desc>
- <expected>PASS</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_overwrite_false.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="check if copy a directory to the same location with the same name (overwrite is true) was successyful." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_dir_samedir_samename_overwrite_true">
- <description>
- <steps>
- <step order="1">
- <step_desc>check if copy a directory to the same location with the same name (overwrite is true) was successyful.</step_desc>
- <expected>directory should be copied to another location with same name in overwrite is true.</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_samedir_samename_overwrite_true.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
</set>
</suite>
</test_definition>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_downloads.html</test_script_entry>
</description>
</testcase>
+ <testcase purpose="check with error callback invoked" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_error_invoked">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_error_invoked.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="Check if method can be overriden" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_exist">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_exist.html</test_script_entry>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones.html</test_script_entry>
</description>
</testcase>
+ <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode a" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_a">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_a.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="check if InvalidValuesError will be reported when the rightones directory is resolved with mode rw" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_rw">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_rw.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode w" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_w">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="check if resolve videos to a file handle." component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_videos">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_videos.html</test_script_entry>
</description>
</testcase>
+ <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode a" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt-package_invalid_mode_a">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_a.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode rw" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt-package_invalid_mode_rw">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_rw.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode w" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt-package_invalid_mode_w">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_w.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="Check if resolve wgt-package to a file handle." component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt_package">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt_package.html</test_script_entry>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo.html</test_script_entry>
</description>
</testcase>
+ <testcase purpose="check if error callback was invoked when copy a directory to another location of the directory with the same name (overwrite is false)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_overwrite_false">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_false.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_overwrite_true">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_true.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="check if error callback invoked when copy a directory to the same location with the same name (overwrite is false)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_samedir_samename_overwrite_false">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_samedir_samename_overwrite_false.html</test_script_entry>
</description>
</testcase>
+ <testcase purpose="check if error callback invoked when copy a directory to the same location with the same name (overwrite is true)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_samedir_samename_overwrite_true">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_samedir_samename_overwrite_true.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="Check if method copyTo exists in File" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_exist">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_exist.html</test_script_entry>
</description>
</testcase>
+ <testcase purpose="check if error callback was invoked when copy a file to another location of the file with the same name (overwrite is false)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_overwrite_false">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_false.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="check if copy a file to another location of the file with the same name (overwrite is true) was successfull." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_overwrite_true">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_true.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="check if error callback invoked when copy a file to the same location with the same name (overwrite is false)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_samedir_samename_overwrite_false">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_samedir_samename_overwrite_false.html</test_script_entry>
</description>
</testcase>
+ <testcase purpose="check if error callback invoked when copy a file to the same location with the same name (overwrite is true)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_samedir_samename_overwrite_true">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_samedir_samename_overwrite_true.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="Check argument onError conversions exception in copyTo method." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_onerror_TypeMismatch">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_onerror_TypeMismatch.html</test_script_entry>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_onsuccess_invalid_cb.html</test_script_entry>
</description>
</testcase>
+ <testcase purpose="check if throw an exception when copy a file to an invalid destination." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_with_destination_invalid">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_destination_invalid.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="check if throw an exception when copyTo with file handle." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_with_file_handle">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_file_handle.html</test_script_entry>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_para_invalid.html</test_script_entry>
</description>
</testcase>
+ <testcase purpose="check if create a new empty file and write content of the file and then copy the file to the same location with different file name" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_writeFile_newName">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newName.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="check if create a new empty file and write content of the file and then copy the file to another location with same file name (overwrite false)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_writeFile_overwrite_false">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_overwrite_false.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="check if create a new empty file and write content of the file and then copy the file to subdirectory with same file name" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_writeFile_subdir">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_subdir.html</test_script_entry>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo.html</test_script_entry>
</description>
</testcase>
+ <testcase purpose="check if error callback invoked when move a directory to the same location with the same name (overwrite is false)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_dir_samedir_samename_overwrite_false">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_false.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="check if error callback invoked when move a directory to the same location with the same name (overwrite is true)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_dir_samedir_samename_overwrite_true">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_true.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="check whether invoking 'moveTo' method with improper arguments calls error callback function properly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_empty_destination_source_and_destination_paths">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_empty_destination_source_and_destination_paths.html</test_script_entry>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_overwrite_false.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if move a file to same location with the same name (overwrite is true) was successyful." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_file_samedir_samename_overwrite_true">
+ <testcase purpose="check if error callback invoked when move a file to the same location with the same name (overwrite is true)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_file_samedir_samename_overwrite_true">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_overwrite_true.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_onsuccess_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if an exception was thrown when a fake callback (onsucces) was passed into moveTo method." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_onsuccess_invalid_cb">
+ <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into moveTo method." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_onsuccess_invalid_cb">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_onsuccess_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check whether 'moveTo' method invoked with overwrite param set to true properly transfers a file" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_with_additional_null_parameter">
+ <testcase purpose="check whether 'moveTo' method invoked with additional null parameter properly transfers a file" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_with_additional_null_parameter">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_additional_null_parameter.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if throw an exception when moveTo with file handle." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_with_file_handle">
+ <testcase purpose="check if errorCallback will be invoked when moveTo will be used with file handle." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_with_file_handle">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_file_handle.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_path_invalid.html</test_script_entry>
</description>
</testcase>
+ <testcase purpose="check if create a new empty file and write content of the file and then move the file to the same location with different file name" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_writeFile_newName">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newName.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="check if create a new empty file and write content of the file and then move the file to another location with same file name (overwrite false)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_writeFile_overwrite_false">
+ <description>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_overwrite_false.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="check if create a new empty file and write content of the file and then move the file to subdirectory with same file name" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_writeFile_subdir">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_subdir.html</test_script_entry>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/filesystem_File_resolve.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode a" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_a">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_a.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check if InvalidValuesError will be reported when the rightones directory is resolved with mode rw" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_rw">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_rw.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode w" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_w">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode w" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt-package_invalid_mode_w">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_w.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode a" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt-package_invalid_mode_a">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_a.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode rw" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt-package_invalid_mode_rw">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_rw.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check with error callback invoked" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_error_invoked">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_error_invoked.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check if error callback was invoked when copy a directory to another location of the directory with the same name (overwrite is false)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_overwrite_false">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_false.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_overwrite_true">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_true.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check if error callback was invoked when copy a file to another location of the file with the same name (overwrite is false)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_overwrite_false">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_false.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check if copy a file to another location of the file with the same name (overwrite is true) was successfull." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_overwrite_true">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_true.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check if throw an exception when copy a file to an invalid destination." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_with_destination_invalid">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_destination_invalid.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check if create a new empty file and write content of the file and then copy the file to the same location with different file name" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_writeFile_newDir">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newDir.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check if create a new empty file and write content of the file and then move the file to the same location with different file name" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_writeFile_newDir">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newDir.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check if create a new empty file and write content of the file and then move the file to the same location with same file name (overwrite false)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_writeFile_overwrite_false">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_overwrite_false.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check if create a new empty file and write content of the file and then copy the file to the same location with same file name (overwrite false)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_writeFile_overwrite_false">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_overwrite_false.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="check if copy a directory to the same location with the same name (overwrite is true) was successyful." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_samedir_samename_overwrite_true">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_samedir_samename_overwrite_true.html</test_script_entry>
- </description>
- </testcase>
</set>
</suite>
</test_definition>