+++ /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>
-<head>
-<title>FileStream_readBase64_with_invalid_value</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: FileStream_readBase64_with_invalid_value
-//==== LABEL Check if FileStream::readBase64() method throws exception when argument byteCount=0
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:readBase64 M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA
-
-var t = async_test(document.title),
- fsTestFileName = getFileName("write04.txt"),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError,
- file, expected = "InvalidValuesError";
-
-t.step(function () {
- openStreamSuccess = t.step_func(function (fs) {
- assert_throws({name: expected}, function () {
- fs.readBase64(null);
- }, expected + " exception should be thrown");
- fs.close();
- t.done();
- });
- openStreamError = t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- file = dir.createFile(fsTestFileName);
- file.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>
-<head>
-<title>FileStream_readBytes_with_invalid_value</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: FileStream_readBytes_with_invalid_value
-//==== LABEL Check if FileStream::readBytes() method throws exception when argument byteCount=0
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:readBytes M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA
-
-var t = async_test(document.title),
- fsTestFileName = getFileName("write06.txt"),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError,
- file, text, expected = "InvalidValuesError";
-
-t.step(function () {
- openStreamSuccess = t.step_func(function (fs) {
- assert_throws({name: expected}, function () {
- text = fs.readBytes(null);
- }, expected + "exception should be thrown");
- fs.close();
- t.done();
- });
- openStreamError = t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- file = dir.createFile(fsTestFileName);
- file.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>
-<head>
-<title>FileStream_read_with_invalid_value</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: FileStream_read_with_invalid_value
-//==== LABEL Check if FileStream::read() method throws exception when argument byteCount=0
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:read M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA
-
-var t = async_test(document.title),
- fsTestFileName = getFileName("write02.txt"),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError,
- file, expected = "InvalidValuesError";
-
-t.step(function () {
- openStreamSuccess = t.step_func(function (fs) {
- assert_throws({name: expected}, function () {
- fs.read(null);
- }, expected + " exception should be thrown");
- fs.close();
- t.done();
- });
- openStreamError = t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- file = dir.createFile(fsTestFileName);
- file.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>
-<head>
-<title>FileSystemManager_resolve_invalid_location</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileSystemManager_resolve_invalid_location
-//==== LABEL Check if FileSystemManager::resolve() method reports NotFoundError by onerror for wrong value of location argument
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MERRCB
-
-
-var t = async_test(document.title),
- expected = "NotFoundError", resolveSuccess, resolveError;
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("There is no exception thrown when resolve an invalid location");
- });
-
- resolveError = t.step_func(function (error) {
- assert_equals(error.name, expected, "resolve an invalid location should be thrown an exception");
- t.done();
- });
-
- tizen.filesystem.resolve("hello", 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>
- Beata Koziarek <b.koziarek@samsung.com>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>File_copyTo_with_destination_invalid</title>
-<script src="../resources/testharness.js"></script>
-<script 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_with_destination_invalid
-//==== LABEL Check if File::copyTo() throws exception when copy a file to an invalid destination
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MERRCB
-
-
-var t = async_test(document.title), expectedError = "NotFoundError",
- resolveSuccess, resolveError, copySuccess, copyError, fsTestFileName, fsTestFile;
-
-t.step(function () {
- fsTestFileName = getFileName("notexistfile.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) {
- fsTestFile = dir.createFile(fsTestFileName);
- dir.copyTo(fsTestFile.fullPath, "dummyValue.//", 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>
+++ /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:
- Beata Koziarek <b.koziarek@samsung.com>
--->
-
-<html>
-
-<head>
-<title>File_copyTo_with_invalid_filepath</title>
-<meta charset="utf-8">
-<script type="text/javascript" src="support/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_copyTo_with_invalid_filepath
-//==== LABEL Check if File::copyTo() method with invalid originFilePath param calls errorCallback properly
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MERRCB
-
-var t = async_test(document.title), param = [[], 1, 0, null, undefined, {}, "aa"], counter = 0, i, resolveError,
- resolveSuccess, copyToSuccess, copyToError, fsTestDirName = getDirName("filesystem");
-t.step(function () {
-
- copyToError = t.step_func(function (err) {
- assert_equals(err.name, NOT_FOUND_ERR, "copyTo() [" + err.name + "]");
- if (counter === param.length - 1) {
- t.done();
- }
- counter++;
- });
-
- copyToSuccess = t.step_func(function () {
- assert_unreached("Unexpected copyToSuccess");
- });
-
- resolveSuccess = t.step_func(function (root) {
- for (i = 0; i < param.length; i++) {
- root.copyTo(param[i], root.fullPath + "/" + fsTestDirName, true,
- copyToSuccess, copyToError);
- }
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- prepareForTesting(t, function () {
- tizen.filesystem.resolve(TEST_ROOT_LOCATION, 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:
- Beata Koziarek <b.koziarek@samsung.com>
--->
-
-<html>
-
-<head>
-<title>File_copyTo_with_invalid_virtual_file</title>
-<meta charset="utf-8">
-<script type="text/javascript" src="support/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_copyTo_with_invalid_virtual_file
-//==== LABEL Check if File::copyTo() method with empty originFilePath and destinationFilePath reports error by calling errorCallback
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MERRCB
-
-var t = async_test(document.title), copyToSuccess, copyToError,
- resolveSuccess, resolveError;
-
-t.step(function () {
- copyToSuccess = t.step_func(function () {
- assert_unreached("copyToSuccess: copyToError should be invoked");
- });
-
- copyToError = t.step_func(function (error) {
- assert_equals(error.name, NOT_FOUND_ERR, "copyTo() [" + error.name + "]");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- dir.copyTo("", "", false, copyToSuccess, copyToError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- 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>
-
-<head>
-<title>File_copyTo_with_para_invalid</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_with_para_invalid
-//==== LABEL Check if File::copyTo() method throws an exception when destinationFilePath is invalid
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MERRCB
-
-
-var t = async_test(document.title), expected = "NotFoundError",
- resolveSuccess, resolveError, copySuccess, copyError, fsTestFileName;
-
-t.step(function () {
- fsTestFileName = getFileName("notexistfile.txt");
-
- copySuccess = t.step_func(function () {
- assert_unreached("There is no exception when copyTo with invalid parameters");
- });
-
- copyError = t.step_func(function (error) {
- assert_equals(error.name, expected, "copyTo with invalid parameters should thrown an exception");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- dir.copyTo(fsTestFileName, "dummyValue.//", 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>
+++ /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>
-
-<head>
-<title>File_createFile_with_invalid_name</title>
-<script type="text/javascript" src="../resources/testharness.js"></script>
-<script type="text/javascript" src="../resources/testharnessreport.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: File_createFile_with_invalid_name
-//==== LABEL Check if File::createFile() throws an exception when create file with invalid file name
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:createFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA
-
-var t = async_test(document.title),
- expected = "InvalidValuesError", documentsDir,
- resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- assert_throws({name: expected}, function () {
- dir.createFile("..//test.doc");
- }, expected + " should be thrown");
- t.done();
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- 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:
- Beata Koziarek <b.koziarek@samsung.com>
--->
-
-<html>
-<head>
-<title>File_moveTo_with_invalid_filePath</title>
-<script type="text/javascript" src="support/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_with_invalid_filePath
-//==== LABEL Check if File::moveTo() calls errorCallback when source file does not exist
-//==== PRIORITY P2
-//==== 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
-//==== TEST_CRITERIA MERRCB
-
-var t = async_test(document.title), param = ["aa"], fsTestFileName,
- i = 0, resolveError, resolveSuccess, moveToSuccess, moveToError;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- moveToError = t.step_func(function (err) {
- assert_equals(err.name, NOT_FOUND_ERR, "moveTo error[" + err.name + "]");
- t.done();
- });
-
- moveToSuccess = t.step_func(function (files) {
- assert_unreached("Unexpected onMoveToSuccess");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- for (i = 0; i < param.length; i++) {
- dir.moveTo(param[i], dir.fullPath + "/" + fsTestFileName, 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>
+++ /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>
-<head>
-<title>File_resolve_with_invalid_para</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: File_resolve_with_invalid_para
-//==== LABEL Check if File::resolve() throws exception when file given by filePath does not exist
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA
-
-var t = async_test(document.title),
- expected = "InvalidValuesError", resolveSuccess, resolveError,
- fsTestFileName = getFileName("test77.txt");
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- dir.createFile(fsTestFileName);
- try{
- dir.resolve("./" + fsTestFileName);
- }catch(error) {
- assert_equals(error.name, expected, "expect throw an exception");
- t.done();
- }
- });
-
- 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>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if FileStream::readBase64() method throws exception when argument byteCount=0" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_readBase64_with_invalid_value">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_with_invalid_value.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="readBase64" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase purpose="Check if FileStream::readBase64() throws exception when reading from a file opened in 'w' mode" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_readBase64_without_r_permission">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_without_r_permission.html</test_script_entry>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if FileStream::readBytes() method throws exception when argument byteCount=0" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_readBytes_with_invalid_value">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_with_invalid_value.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="readBytes" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase purpose="Check if FileStream::readBytes() throws exception when reading from a file opened in 'w' mode" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_readBytes_without_r_permission">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_without_r_permission.html</test_script_entry>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if FileStream::read() method throws exception when argument byteCount=0" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_read_with_invalid_value">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_with_invalid_value.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="read" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase purpose="Check if FileStream::read() throws exception when reading from a file opened in 'w' mode" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_read_without_r_permission">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_without_r_permission.html</test_script_entry>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method reports NotFoundError by onerror for wrong value of location argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_invalid_location">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_invalid_location.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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase purpose="Check if FileSystemManager::resolve() throws exception for missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="FileSystemManager_resolve_missarg">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_missarg.html</test_script_entry>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if File::copyTo() throws 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>
- <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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase purpose="Check if File::copyTo() calls errorCallback when called for object representing file, not a directory" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" 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>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if File::copyTo() method with invalid originFilePath param calls errorCallback properly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_with_invalid_filepath">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_invalid_filepath.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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if File::copyTo() method with empty originFilePath and destinationFilePath reports error by calling errorCallback" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_with_invalid_virtual_file">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_invalid_virtual_file.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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase purpose="Check if File::copyTo() can be invoked with null successCallback and errorCallback" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_with_null_success_and_error_callbacks">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_null_success_and_error_callbacks.html</test_script_entry>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if File::copyTo() method throws an exception when destinationFilePath is invalid" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_with_para_invalid">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_para_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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase purpose="Check if you can create a new empty file, write content into it, then request a copy of it (different name, same directory)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_writeFile_newName">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newName.html</test_script_entry>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if File::createFile() throws an exception when create file with invalid file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_createFile_with_invalid_name">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createFile_with_invalid_name.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="createFile" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase purpose="Check if File::created attribute exists, has type Date and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_created_attribute">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_created_attribute.html</test_script_entry>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if File::moveTo() calls errorCallback when source file does not exist" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_with_invalid_filePath">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_invalid_filePath.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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase purpose="Check if File::moveTo() calls errorCallback (source file does not exist)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_with_onerror">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_onerror.html</test_script_entry>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if File::resolve() throws exception when file given by filePath does not exist" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_resolve_with_invalid_para">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_resolve_with_invalid_para.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" 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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase purpose="Check if File::resolve() throws exception when resolving a file which not exist" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_resolve_with_nonexist">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_resolve_with_nonexist.html</test_script_entry>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if FileStream::readBase64() method throws exception when argument byteCount=0" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_readBase64_with_invalid_value">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_with_invalid_value.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if FileStream::readBase64() throws exception when reading from a file opened in 'w' mode" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_readBase64_without_r_permission">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_without_r_permission.html</test_script_entry>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if FileStream::readBytes() method throws exception when argument byteCount=0" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_readBytes_with_invalid_value">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_with_invalid_value.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if FileStream::readBytes() throws exception when reading from a file opened in 'w' mode" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_readBytes_without_r_permission">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_without_r_permission.html</test_script_entry>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if FileStream::read() method throws exception when argument byteCount=0" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_read_with_invalid_value">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_with_invalid_value.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if FileStream::read() throws exception when reading from a file opened in 'w' mode" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_read_without_r_permission">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_without_r_permission.html</test_script_entry>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_images.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method reports NotFoundError by onerror for wrong value of location argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_invalid_location">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_invalid_location.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if FileSystemManager::resolve() throws exception for missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_missarg">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_missarg.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 File::copyTo() throws 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 File::copyTo() calls errorCallback when called for object representing file, not a directory" 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>
</description>
</testcase>
- <testcase purpose="Check if File::copyTo() method with invalid originFilePath param calls errorCallback properly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_with_invalid_filepath">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_invalid_filepath.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::copyTo() method with empty originFilePath and destinationFilePath reports error by calling errorCallback" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_with_invalid_virtual_file">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_invalid_virtual_file.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if File::copyTo() can be invoked with null successCallback and errorCallback" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_with_null_success_and_error_callbacks">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_null_success_and_error_callbacks.html</test_script_entry>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_onsuccess.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::copyTo() method throws an exception when destinationFilePath is invalid" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_with_para_invalid">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_para_invalid.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if you can create a new empty file, write content into it, then request a copy of it (different name, same directory)" 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>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createFile_existing_file.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::createFile() throws an exception when create file with invalid file name" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_createFile_with_invalid_name">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createFile_with_invalid_name.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if File::created attribute exists, has type Date and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_created_attribute">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_created_attribute.html</test_script_entry>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_file_handle.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::moveTo() calls errorCallback when source file does not exist" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_with_invalid_filePath">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_invalid_filePath.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if File::moveTo() calls errorCallback (source file does not exist)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_with_onerror">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_onerror.html</test_script_entry>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_resolve_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::resolve() throws exception when file given by filePath does not exist" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_resolve_with_invalid_para">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_resolve_with_invalid_para.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if File::resolve() throws exception when resolving a file which not exist" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_resolve_with_nonexist">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_resolve_with_nonexist.html</test_script_entry>