+++ /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>FileArraySuccessCallback_notexist</title>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: FileArraySuccessCallback_notexist
-//==== LABEL Interface FileArraySuccessCallback should not be accessible
-//==== PRIORITY: P3
-//==== SPEC Tizen Web API:IO:Filesystem:FileArraySuccessCallback:FileArraySuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA CBNIO
-test(function () {
- check_no_interface_object("FileArraySuccessCallback");
-}, document.title);
-
-</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>
- Mariusz Polasinski <m.polasinski@samsung.com>
--->
-
-<html>
-<head>
-<title>FileArraySuccessCallback_onsuccess</title>
-<script 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: FileArraySuccessCallback_onsuccess
-//==== LABEL Test whether FileArraySuccessCallback::onsuccess is called with valid argument
-//==== PRIORITY: P1
-//==== SPEC Tizen Web API:IO:Filesystem:FileArraySuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA CBOA CBT
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, listSuccess, i, fsTestFileName, foundValue = false;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem");
-
- listSuccess = t.step_func(function (files) {
- assert_type(files, "array", "incorrect received value");
- assert_greater_than(files.length, 0, "incorrect received array");
- for (i = 0; i < files.length; i++) {
- assert_type(files[i], "object", "incorrect received array element");
- checkOwnProperties(files[i]);
- if ((files[i].name === fsTestFileName) && (files[i].isFile === true)) {
- foundValue = true;
- }
- }
- assert_true(foundValue, "new file not found");
- t.done();
- });
- resolveSuccess = t.step_func(function (dir) {
- dir.createFile(fsTestFileName);
- dir.listFiles(listSuccess);
- });
- 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>FileStreamSuccessCallback_notexist</title>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: FileStreamSuccessCallback_notexist
-//==== LABEL Interface FileStreamSuccessCallback should not be accessible
-//==== PRIORITY: P3
-//==== SPEC Tizen Web API:IO:Filesystem:FileStreamSuccessCallback:FileStreamSuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA CBNIO
-test(function () {
- check_no_interface_object("FileStreamSuccessCallback");
-}, document.title);
-
-</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>
- Mariusz Polasinski <m.polasinski@samsung.com>
--->
-
-<html>
-<head>
-<title>FileStreamSuccessCallback_onsuccess</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: FileStreamSuccessCallback_onsuccess
-//==== LABEL Test whether FileStreamSuccessCallback::onsuccess is called with argument of proper type
-//==== PRIORITY: P1
-//==== SPEC Tizen Web API:IO:Filesystem:FileStreamSuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA CBOA CBT
-var t = async_test(document.title),
- resolveSuccess, resolveError, file, openStreamSuccess,
- fsTestFileName = getFileName("filesystem.txt");
-
-t.step(function () {
- openStreamSuccess = t.step_func(function (fs) {
- assert_type(fs, "object", "fs isn't an object");
- assert_own_property(fs, "eof", "fs doesn't have eof property");
- assert_own_property(fs, "position", "fs doesn't have eof property");
- assert_own_property(fs, "bytesAvailable", "fs doesn't have eof property");
- fs.close();
- t.done();
- });
- resolveSuccess = t.step_func(function (dir) {
- file = dir.createFile(fsTestFileName);
- file.openStream("r", openStreamSuccess);
- });
- 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_bytesAvailable_attribute</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_bytesAvailable_attribute
-//==== PRIORITY P1
-//==== LABEL Check if FileStream::bytesAvailable attribute exist, is of proper type
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:bytesAvailable A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA AE ARO AT
-var t = async_test(document.title),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file,
- testStr = "1234", fsTestFileName = getFileName("existFile01.txt");
-
-t.step(function () {
- openStreamSuccess = t.step_func(function (fs) {
- fs.write(testStr);
- fs.position = 0;
- assert_true("bytesAvailable" in fs, "bytesAvailable doesn't exist");
- check_readonly(fs, "bytesAvailable", fs.bytesAvailable, "long", fs.bytesAvailable + 2);
- 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);
- });
- 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_close</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_close
-//==== PRIORITY P2
-//==== LABEL Check if FileStream::close() method works
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:close M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MNA MR MNAST
-var t = async_test(document.title),
- fsTestFileName = getFileName("closeFile.txt"), retVal = null,
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file;
-
-t.step(function () {
- openStreamSuccess = t.step_func(function (fs) {
- fs.write("abcdefg");
- retVal = fs.close();
- assert_equals(retVal, undefined, "incorrect returned value close()");
- assert_throws(IO_EXCEPTION, function () {
- fs.read(2);
- });
- 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);
- });
-
- 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_close_exist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_close_exist
-//==== LABEL Check if FileStream::close() method exists
-//==== PRIORITY P0
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:close M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA ME
-var t = async_test(document.title),
- fsTestFileName = getFileName("existFile04.txt"),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file;
-
-t.step(function (){
-
- openStreamSuccess = t.step_func(function (fs) {
- assert_true("close" in fs, "No close method in FileStream");
- check_method_exists(fs, "close");
- 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);
- });
- 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>FileStream_close_extra_argument</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_close_extra_argument
-//==== PRIORITY P1
-//==== LABEL Check if FileStream::close() method can be called with extra arguments
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:close M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MNAEX
-
-var t = async_test(document.title),
- fsTestFileName = getFileName("TestFile.txt"),
- resolveSuccess, resolveError, file, openStreamSuccess, openStreamError;
-t.step(function () {
- openStreamSuccess = t.step_func(function (stream) {
- checkExtraArgument(stream, "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);
- });
- 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_eof_attribute</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_eof_attribute
-//==== PRIORITY P1
-//==== LABEL Check if FileStream::eof attribute exists, is Boolean
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:eof A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA AE ARO AT
-var t = async_test(document.title),
- fsTestFileName = getFileName("existFile02.txt"),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file;
-t.step(function () {
- openStreamSuccess = t.step_func(function (fs) {
- assert_true("eof" in fs, "eof doesn't exist");
- check_readonly(fs, "eof", false, "boolean", true);
- 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);
- });
- 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>FileStream_extend</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: FileStream_extend
-//==== LABEL Test whether instance of FileStream can be extended with new attribute
-//==== PRIORITY: P3
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:FileStream U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA OBX
-var t = async_test(document.title),
- fsTestFileName = getFileName("closeFile.txt"),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file;
-
-t.step(function (){
- openStreamSuccess = t.step_func(function (fs) {
- check_extensibility(fs);
- 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);
- });
- 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>FileStream_notexist</title>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: FileStream_notexist
-//==== LABEL Interface FileStream should not be accessible
-//==== PRIORITY: P3
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:FileStream U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA NIO
-test(function () {
- check_no_interface_object("FileStream");
-}, document.title);
-
-</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_position_attribute</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_position_attribute
-//==== PRIORITY P2
-//==== LABEL Check if FileStream::position attribute exists, is of proper type, can be changed
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:position A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA AE AT ASG AN
-var t = async_test(document.title),
- fsTestFileName = getFileName("existFile0.txt"),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file;
-t.step(function () {
- openStreamSuccess = t.step_func(function (fs) {
- assert_own_property(fs, "position", "this FileStream doesn't have own position property");
- assert_type(fs.position, "long", "incorrect type of position");
- assert_equals(fs.position, 0, "incorrect default position");
- fs.write("abcdefg");
- assert_equals(fs.position, 7, "incorrect default position after write");
- fs.position = 2;
- assert_equals(fs.position, 2, "can't change the position");
- check_not_nullable(fs, "position");
- 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);
- });
- 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</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
-//==== LABEL Check if FileStream::read() method works properly
-//==== PRIORITY: P1
-//==== 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 MMINA MR
-var t = async_test(document.title),
- fsTestFileName = getFileName("filesystem01.txt"),
- resolveSuccess, resolveError, openStreamError, openStreamSuccess,
- openStreamReadSuccess, file, expected = "abcde", text;
-
-t.step(function (){
- openStreamReadSuccess = t.step_func(function (fs) {
- text = fs.read(5);
- fs.close();
- assert_equals(text, expected, "read fs failed, read '" + text + "', expected '" + expected + "'");
- t.done();
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write("abcdefg");
- fs.close();
- file.openStream("r", openStreamReadSuccess, openStreamError);
- });
- 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("w", openStreamSuccess, openStreamError);
- });
- 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_readBase64</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
-//==== LABEL Check if FileStream::readBase64() method works
-//==== PRIORITY: P1
-//==== 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 MMINA MR
-var t = async_test(document.title),
- fsTestFileName = getFileName("readBaseFile.txt"),
- resolveSuccess, resolveError, openStreamError, openStreamSuccess,
- openStreamReadSuccess, file, expected = "YWJjZGVmZw==", base64;
-
-t.step(function (){
-
- openStreamReadSuccess = t.step_func(function (fs) {
- base64 = fs.readBase64(256);
- fs.close();
- assert_equals(base64, expected, "read fs failed, read " + base64 + ", expected " + expected);
- t.done();
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write("abcdefg");
- fs.close();
- file.openStream("r", openStreamReadSuccess, openStreamError);
- });
- 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("w", openStreamSuccess, openStreamError);
- });
- 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) 2014 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:
- Danni zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>FileStream_readBase64_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_readBase64_TypeMismatch
-//==== LABEL Check if FileStream::readBase64() throws exception for wrong type of byteCount
-//==== 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 MC
-
-var t = async_test(document.title), i, fsTestFileName = getFileName("readBaseFile1243423.txt"), stringToWrite = "1234567", resolveSuccess, resolveError, openStreamSuccess, openStreamError,
- openStreamReadSuccess, file, conversionTable;
-
-t.step(function () {
- conversionTable = getTypeConversionExceptions("long", false);
- openStreamReadSuccess = t.step_func(function (fs) {
- for (i = 0; i < conversionTable.length; i++) {
- byteCount = conversionTable[i][0];
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- fs.readBase64(byteCount);
- }, TYPE_MISMATCH_EXCEPTION + " should be thrown - byteCount type mismatch.");
- }
- fs.close();
- t.done();
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write(stringToWrite);
- fs.close();
- file.openStream("r", openStreamReadSuccess, openStreamError);
- });
-
- 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("w", openStreamSuccess, openStreamError);
- });
-
- 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>
\ 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>
-
--->
-
-<html>
-<head>
-<title>FileStream_readBase64_exist</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_exist
-//==== LABEL Check if FileStream::readBase64() method exists
-//==== PRIORITY P0
-//==== 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 ME
-var t = async_test(document.title),
- fsTestFileName = getFileName("existFile07.txt"),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file;
-
-t.step(function (){
- openStreamSuccess = t.step_func(function (fs) {
- assert_true("readBase64" in fs, "readBase64 exists");
- 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);
- });
- 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) 2014 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:
- Danni Zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>FileStream_readBase64_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_readBase64_misarg
-//==== LABEL Check if FileStream::readBase64() throws exception with missing mandatory argument
-//==== 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 MMA
-
-var t = async_test(document.title), fsTestFileName = getFileName("readBaseFiledan.txt"), resolveSuccess, resolveError, openStreamError, openStreamSuccess, openStreamReadSuccess, file;
-
-t.step(function (){
- openStreamReadSuccess = t.step_func(function (fs) {
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- fs.readBase64();
- }, TYPE_MISMATCH_EXCEPTION + " should be thrown.");
- fs.close();
- t.done();
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write("abcdefg");
- fs.close();
- file.openStream("r", openStreamReadSuccess, openStreamError);
- });
-
- 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("w", openStreamSuccess, openStreamError);
- });
-
- 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>
\ No newline at end of file
+++ /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>
-<head>
-<meta charset="utf-8" />
-<title>FileStream_readBase64_without_r_permission</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: FileStream_readBase64_without_r_permission
-//==== LABEL Check if FileStream::readBase64() throws exception when reading from a file opened in 'w' mode
-//==== 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), testFile,
- fsTestFileName = getFileName("readBase64WithoutR.txt"), resolveSuccess,
- resolveError, openStreamSuccess, openStreamError, expected = "IOError";
-
-t.step(function () {
-
- openStreamSuccess = t.step_func(function (fs) {
- assert_throws({name: expected}, function () {
- fs.readBase64(256);
- }, 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) {
- testFile = dir.createFile(fsTestFileName);
- testFile.openStream("w", 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_readBase64_writeFile</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_writeFile
-//==== LABEL Check if you can create a new file, write content to it, and then read the content of the file as base64
-//==== PRIORITY P3
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:FileStream U
-//==== 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("fileSystem-File03.txt"),
- resolveSuccess, resolveError, openStreamError, openStreamSuccess,
- openStreamReadSuccess, file, expected = "YWJjZGVmZw==", base64;
-
-t.step(function (){
- openStreamReadSuccess = t.step_func(function (fs) {
- base64 = fs.readBase64(256);
- fs.close();
- assert_equals(base64, expected, "read fs failed, read " + base64 + ", expected " + expected);
- t.done();
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write("abcdefg");
- fs.close();
- file.openStream("r", openStreamReadSuccess, openStreamError, "UTF-8");
- });
-
- 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</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: FileStream_readBytes
-//==== LABEL Check if FileStream::readBytes() method works properly
-//==== PRIORITY: P1
-//==== 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 MMINA MR
-var t = async_test(document.title), i,
- fsTestFileName = getFileName("readBytesFile.txt"), stringToWrite = "1234567",
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, len,
- openStreamReadSuccess, file, bytes;
-
-t.step(function () {
- openStreamReadSuccess = t.step_func(function (fs) {
- bytes = fs.readBytes(256);
- fs.close();
- assert_type(bytes, "array", "incorrect read type");
- assert_equals(bytes.length, stringToWrite.length, "read fs failed, read " + bytes.length + ", expected " + stringToWrite.length);
- for (i = 0, len = bytes.length; i < len; i++) {
- assert_equals(bytes[i], stringToWrite.charCodeAt(i), "incorrect read value");
- }
- t.done();
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write(stringToWrite);
- fs.close();
- file.openStream("r", openStreamReadSuccess, openStreamError);
- });
- 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("w", openStreamSuccess, openStreamError);
- });
- 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) 2014 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:
- Danni zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>FileStream_readBytes_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_readBytes_TypeMismatch
-//==== LABEL Check if FileStream::readBytes() throws exception for wrong type of byteCount
-//==== 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 MC
-
-var t = async_test(document.title), i, fsTestFileName = getFileName("readBytesFile6575687.txt"), stringToWrite = "1234567", resolveSuccess, resolveError,
- openStreamSuccess, openStreamError, openStreamReadSuccess, file, conversionTable;
-
-t.step(function () {
- conversionTable = getTypeConversionExceptions("long", false);
- openStreamReadSuccess = t.step_func(function (fs) {
- for (i = 0; i < conversionTable.length; i++) {
- byteCount = conversionTable[i][0];
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- fs.readBytes(byteCount);
- }, TYPE_MISMATCH_EXCEPTION + " should be thrown - byteCount type mismatch.");
- }
- fs.close();
- t.done();
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write(stringToWrite);
- fs.close();
- file.openStream("r", openStreamReadSuccess, openStreamError);
- });
-
- 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("w", openStreamSuccess, openStreamError);
- });
-
- 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>
\ 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>
-
--->
-
-<html>
-<head>
-<title>FileStream_readBytes_exist</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_exist
-//==== LABEL Check if FileStream::readBytes() method exists
-//==== PRIORITY P0
-//==== 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 ME
-var t = async_test(document.title),
- fsTestFileName = getFileName("existFile06.txt"),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file;
-
-t.step(function (){
- openStreamSuccess = t.step_func(function (fs) {
- assert_true("readBytes" in fs, "readBytes exists");
- 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);
- });
- 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) 2014 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:
- Danni zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>FileStream_readBytes_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_readBytes_misarg
-//==== LABEL Check if FileStream::readBytes() with missing mandatory argument throws exception
-//==== 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 MMA
-
-var t = async_test(document.title), fsTestFileName = getFileName("readBytesFile.txt"), stringToWrite = "1234567", resolveSuccess, resolveError,
- openStreamSuccess, openStreamError, openStreamReadSuccess, file;
-
-t.step(function () {
- openStreamReadSuccess = t.step_func(function (fs) {
- assert_throws(INVALID_VALUES_EXCEPTION, function () {
- fs.readBytes();
- }, INVALID_VALUES_EXCEPTION + " should be thrown.");
- fs.close();
- t.done();
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write(stringToWrite);
- fs.close();
- file.openStream("r", openStreamReadSuccess, openStreamError);
- });
-
- 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("w", openStreamSuccess, openStreamError);
- });
-
- 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>
\ No newline at end of file
+++ /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>
-<head>
-<title>FileStream_readBytes_without_r_permission</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: FileStream_readBytes_without_r_permission
-//==== LABEL Check if FileStream::readBytes() throws exception when reading from a file opened in 'w' mode
-//==== 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), testFile,
- fsTestFileName = getFileName("readBytesWithoutR.txt"),
- resolveSuccess, resolveError, openStreamSuccess,
- openStreamError, expected = "IOError";
-
-t.step(function () {
- openStreamSuccess = t.step_func(function (fs) {
- assert_throws({name: expected}, function () {
- fs.readBytes(2);
- }, 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) {
- testFile = dir.createFile(fsTestFileName);
- testFile.openStream("w", 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_readBytes_writeFile</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_writeFile
-//==== LABEL Check if you can create a new file, write content to it, and then read the content of the file as a byte array
-//==== PRIORITY P3
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:FileStream U
-//==== 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("fileSystem-File04.txt"),
- resolveSuccess, resolveError, openStreamError, openStreamSuccess,
- openStreamReadSuccess, file, expected = 7, bytes;
-
-t.step(function (){
- openStreamReadSuccess = t.step_func(function (fs) {
- bytes = fs.readBytes(256);
- fs.close();
- assert_equals(bytes.length, expected, "read fs failed, read " + bytes.length + ", expected " + expected);
- t.done();
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write("abcdefg");
- fs.close();
- file.openStream("r", openStreamReadSuccess, openStreamError, "UTF-8");
- });
- 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) 2014 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:
- Danni Zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>FileStream_read_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_read_TypeMismatch
-//==== LABEL Check if FileStream::read() throws an exception when given wrong type of charCount
-//==== 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 MC
-
-var t = async_test(document.title), fsTestFileName = getFileName("write03.txt"), testFile, resolveSuccess, resolveError, openStreamSuccess, openStreamError, charCount, conversionTable, i;
-
-t.step(function () {
- conversionTable = getTypeConversionExceptions("long", false);
- openStreamSuccess = t.step_func(function (fs) {
- for (i = 0; i < conversionTable.length; i++) {
- charCount = conversionTable[i][0];
- assert_throws(INVALID_VALUES_EXCEPTION,
- function () {
- fs.read(charCount);
- }, INVALID_VALUES_EXCEPTION + " should be thrown - charCount type mismatch.");
- }
- 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) {
- testFile = dir.createFile(fsTestFileName);
- testFile.openStream("r", openStreamSuccess, openStreamError, "UTF-8");
- });
-
- 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>
\ 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>
-
--->
-
-<html>
-<head>
-<title>FileStream_read_exist</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_exist
-//==== LABEL Check if FileStream::read() method exists
-//==== PRIORITY P0
-//==== 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 ME
-var t = async_test(document.title),
- fsTestFileName = getFileName("existFile05.txt"),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file;
-
-t.step(function (){
- openStreamSuccess = t.step_func(function (fs) {
- assert_true("read" in fs, "read exists");
- 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);
- });
- 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) 2014 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:
- Xu Sida <sida.xu@samsung.com>
-
--->
-<html>
-<head>
-<title>FileStream_read_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_read_misarg
-//==== LABEL Check if FileStream::read() throws exception with missing mandatory argument
-//==== 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 MMA
-
-var t = async_test(document.title), fsTestFileName = getFileName("filesystem01.txt"), resolveSuccess, resolveError, openStreamError, openStreamSuccess, openStreamReadSuccess, file;
-
-t.step(function (){
- openStreamReadSuccess = t.step_func(function (fs) {
- assert_throws(INVALID_VALUES_EXCEPTION, function () {
- fs.read();
- }, INVALID_VALUES_EXCEPTION + " should be thrown - missing type");
- t.done();
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write("abcdefg");
- fs.close();
- file.openStream("r", openStreamReadSuccess, openStreamError);
- });
-
- 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("w", openStreamSuccess, openStreamError);
- });
-
- 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. 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>
- Beata Koziarek <b.koziarek@samsung.com>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>FileStream_read_without_r_permission</title>
-<meta charset="utf-8" />
-<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: FileStream_read_without_r_permission
-//==== LABEL Check if FileStream::read() throws exception when reading from a file opened in 'w' mode
-//==== 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("write03.txt"), expected = "IOError", testFile,
- resolveSuccess, resolveError, openStreamSuccess, openStreamError;
-t.step(function () {
- openStreamSuccess = t.step_func(function (fs) {
- assert_throws({name: expected}, function () {
- fs.read(fs.bytesAvailable);
- }, 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) {
- testFile = dir.createFile(fsTestFileName);
- testFile.openStream("w", 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_writeFile</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_writeFile
-//==== LABEL Check if you can create a new file, write content to it, and then read the content of the file
-//==== PRIORITY P3
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:FileStream U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, openStreamError, openStreamSuccess,
- openStreamRSuccess, file, expected = "test write method", text,
- fsTestFileName = getFileName("fileSystem-File05.txt");
-
-t.step(function (){
- openStreamRSuccess = t.step_func(function (fs) {
- text = fs.read(expected.length);
- fs.close();
- assert_equals(text, expected, "read fs failed, read '" + text + "', expected '" + expected + "'");
- t.done();
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write(expected);
- fs.close();
- file.openStream("r", openStreamRSuccess, openStreamError, "UTF-8");
- });
- 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>
- Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>FileStream_write</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: FileStream_write
-//==== LABEL Check if FileStream::write() method works properly
-//==== PRIORITY: P1
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:write M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MAST MMINA MR
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, openStreamRSuccess, openStreamWSuccess,
- openStreamError, file, text, testString = "abcde", retVal = null,
- fsTestFileName = getFileName("GoodFile.txt");
-
-t.step(function () {
- openStreamRSuccess = t.step_func(function (fs) {
- text = fs.read(testString.length);
- fs.close();
- assert_equals(text, testString, "Invalid characters read");
- t.done();
- });
- openStreamWSuccess = t.step_func(function (fs) {
- retVal = fs.write(testString);
- fs.close();
- assert_equals(retVal, undefined, "incorrect returned value from write()");
- file.openStream("r", openStreamRSuccess, openStreamError, "UTF-8");
- });
- 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("w", openStreamWSuccess, 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("images", 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>FileStream_writeBase64</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_writeBase64
-//==== PRIORITY P1
-//==== LABEL Check if FileStream::writeBase64() method works properly
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:writeBase64 M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MAST MMINA MR
-var t = async_test(document.title),
- resolveSuccess, resolveError, openStreamWSuccess, openStreamRSuccess, retVal = null,
- openStreamError, file, base64String = "YWJjZGVmZw==", expected = "abcdefg",
- readString, fsTestFileName = getFileName("readBaseFile.txt");
-
-t.step(function () {
- openStreamRSuccess = t.step_func(function (fs) {
- readString = fs.read(expected.length);
- fs.close();
- assert_equals(readString, expected, "Incorrect bytes.");
- t.done();
- });
- openStreamWSuccess = t.step_func(function (fs) {
- retVal = fs.writeBase64(base64String);
- assert_equals(retVal, undefined, "incorrect returned value from writeBase64()");
- fs.close();
- file.openStream("r", openStreamRSuccess, openStreamError);
- });
- 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("w", openStreamWSuccess, openStreamError);
- });
- 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_writeBase64_exist</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_writeBase64_exist
-//==== LABEL Check if FileStream::writeBase64() method exists
-//==== PRIORITY P0
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:writeBase64 M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA ME
-var t = async_test(document.title),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file,
- fsTestFileName = getFileName("readBaseFile.txt");
-
-t.step(function (){
- openStreamSuccess = t.step_func(function (fs) {
- assert_true("writeBase64" in fs, "writeBase64 exists");
- 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);
- });
- 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) 2014 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:
- Danni Zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>FileStream_writeBase64_invalid</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_writeBase64_invalid
-//==== LABEL Check if FileStream::writeBase64() throws exception for invalid base64Data
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:writeBase64 M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title), resolveSuccess, resolveError, openStreamWSuccess, openStreamError, file, fsTestFileName = getFileName("readBaseFilegdfgdfg.txt");
-
-t.step(function () {
- openStreamWSuccess = t.step_func(function (fs) {
- assert_throws(INVALID_VALUES_EXCEPTION,
- function () {
- fs.writeBase64("");
- }, INVALID_VALUES_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("w", openStreamWSuccess, openStreamError);
- });
-
- 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) 2014 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:
- Danni Zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>FileStream_writeBase64_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_writeBase64_misarg
-//==== LABEL Check if FileStream::writeBase64() with missing mandatory argument throws exception
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:writeBase64 M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-var t = async_test(document.title), resolveSuccess, resolveError, openStreamWSuccess, openStreamError, file, fsTestFileName = getFileName("readBaseFile.txt");
-
-t.step(function () {
- openStreamWSuccess = t.step_func(function (fs) {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- fs.writeBase64();
- }, TYPE_MISMATCH_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("w", openStreamWSuccess, openStreamError);
- });
-
- 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>
\ 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>
-
--->
-
-<html>
-<head>
-<title>FileStream_writeBase64_without_w_permission</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_writeBase64_without_w_permission
-//==== LABEL Check if FileStream::writeBase64() throws exception when writing to a file opened in 'r' mode
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:writeBase64 M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA
-
-var resolveSuccess, resolveError, openStreamSuccess, openStreamError, file,
- expected = "IOError", base = "YWJjZGVmZw==",
- t = async_test(document.title),
- fsTestFileName = getFileName("write11.txt");
-
-t.step(function (){
- openStreamSuccess = t.step_func(function (fs) {
- assert_throws({name: expected}, function () {
- fs.writeBase64(base);
- }, 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("r", 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) 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>FileStream_writeBytes</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_writeBytes
-//==== PRIORITY P1
-//==== LABEL Check if FileStream::writeBytes() method works properly
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:writeBytes M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MAST MMINA MR
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, openStreamWithWSuccess, openStreamWithRSuccess,
- openStreamError, file, bytes, testString = [1, 2, 3, 4, 5, 6, 7], retVal = null,
- fsTestFileName = getFileName("writeBytes.txt");
-
-t.step(function () {
- openStreamWithRSuccess = t.step_func(function (fs) {
- bytes = fs.readBytes(file.fileSize);
- fs.close();
- assert_array_equals(bytes, testString, "Invalid bytes read");
- t.done();
- });
-
- openStreamWithWSuccess = t.step_func(function (fs) {
- retVal = fs.writeBytes(testString);
- assert_equals(retVal, undefined, "incorrect returned value from writeBytes()");
- fs.close();
- file.openStream("r", openStreamWithRSuccess, openStreamError);
- });
- 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("w", openStreamWithWSuccess, openStreamError);
- });
- 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>FileStream_writeBytes_byteData_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_writeBytes_byteData_TypeMismatch
-//==== LABEL Check if FileStream::writeBytes() throws exception for wrong type of byteData
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:writeBytes M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError,
- file, conversionTable, bytes, i, exceptionName = "TypeMismatchError",
- fsTestFileName = getFileName("readBytesFiletest3.txt");
-
-t.step(function (){
- openStreamSuccess = t.step_func(function (fs) {
- conversionTable = getTypeConversionExceptions("array", false);
- for (i = 0; i < conversionTable.length; i++) {
- bytes = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName}, function () {
- fs.writeBytes(bytes);
- }, exceptionName + " should be thrown - given incorrect byteData.");
- }
- 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("w", openStreamSuccess, openStreamError);
- });
- 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_writeBytes_exist</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_writeBytes_exist
-//==== LABEL Check if FileStream::writeBytes() method exists
-//==== PRIORITY P0
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:writeBytes M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA ME
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file,
- fsTestFileName = getFileName("existFile09.txt");
-
-t.step(function (){
- openStreamSuccess = t.step_func(function (fs) {
- assert_true("writeBytes" in fs, "writeBytes exists");
- 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);
- });
- 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>FileStream_writeBytes_missarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_writeBytes_missarg
-//==== PRIORITY P1
-//==== LABEL Check if FileStream::writeBytes() method throws exception for missing mandatory argument
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:writeBytes M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MMA
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file,
- expected = "TypeMismatchError",
- fsTestFileName = getFileName("readBytesFiletest2.txt");
-
-t.step(function (){
- openStreamSuccess = t.step_func(function (fs) {
- assert_throws({name: expected}, function () {
- fs.writeBytes();
- }, 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("w", openStreamSuccess, openStreamError);
- });
- 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>FileStream_writeBytes_with_additional_null_parameter</title>
-<meta charset="utf-8">
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: FileStream_writeBytes_with_additional_null_parameter
-//==== PRIORITY P1
-//==== LABEL Check if FileStream::writeBytes() method properly writes the specified bytes to file
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:writeBytes M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MAST
-var t = async_test(document.title),
- file, resolveSuccess, resolveError, openStreamWriteSuccess,
- openStreamError, openStreamReadSuccess, testString = [1, 2, 3, 4, 5, 6, 7],
- readString, fsTestFileName = getFileName("readBytesFileTestNull.txt");
-
-t.step(function () {
- openStreamReadSuccess = t.step_func(function (stream) {
- readString = stream.readBytes(testString.length, null);
- stream.close();
- assert_type(readString, "array", "type read from file");
- assert_equals(readString.toString(), testString.toString(), "string read from file");
- t.done();
- });
-
- openStreamWriteSuccess = t.step_func(function (stream) {
- stream.writeBytes(testString, null);
- stream.close();
- file.openStream("r", openStreamReadSuccess, openStreamError, "UTF-8");
- });
- 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("w", openStreamWriteSuccess, 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(TEST_ROOT_LOCATION, resolveSuccess, resolveError);
- }
- );
-});
-
-</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_writeBytes_without_w_permission</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_writeBytes_without_w_permission
-//==== LABEL Check if FileStream::writeBytes() throws exception when writing to a file opened in 'r' mode
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:writeBytes 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),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file,
- bytes = new Array(104, 101, 108), expected = "IOError",
- fsTestFileName = getFileName("writeBytesWOPerm.txt");
-
-t.step(function (){
- openStreamSuccess = t.step_func(function (fs) {
- assert_throws({name: expected}, function () {
- fs.writeBytes(bytes);
- }, 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("r", 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_write_exist</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_write_exist
-//==== LABEL Check if FileStream::write() method exists
-//==== PRIORITY P0
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:write M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA ME
-
-var t = async_test(document.title),
- fsTestFileName = getFileName("existFile08.txt"),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file;
-
-t.step(function () {
- openStreamSuccess = t.step_func(function (fs) {
- assert_true("write" in fs, "write exists");
- 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);
- });
- 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) 2014 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:
- Danni Zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>FileStream_write_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileStream_write_misarg
-//==== LABEL Check if FileStream::write() with missing mandatory argument throws exception
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:write M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MMA
-
-var t = async_test(document.title), resolveSuccess, resolveError, openStreamWSuccess, openStreamError, file, fsTestFileName = getFileName("GoodFile.txt");
-
-t.step(function () {
- openStreamWSuccess = t.step_func(function (fs) {
- assert_throws(NOT_FOUND_EXCEPTION, function () {
- fs.write();
- }, NOT_FOUND_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("w", openStreamWSuccess, openStreamError, "UTF-8");
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- tizen.filesystem.resolve("images", 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>
-
--->
-
-<html>
-<head>
-<title>FileStream_write_without_w_permission</title>
-<meta charset="utf-8" />
-<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: FileStream_write_without_w_permission
-//==== LABEL Check if FileStream::write() throws exception when writing to a file opened in 'r' mode
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:FileStream:write 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("write09.txt"),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file,
- expected = "IOError";
-
-t.step(function (){
- openStreamSuccess = t.step_func(function (fs) {
- assert_throws({name: expected}, function () {
- fs.write("test");
- }, 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("r", 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) 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>FileStringSuccessCallback_notexist</title>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: FileStringSuccessCallback_notexist
-//==== LABEL Interface FileStringSuccessCallback should not be accessible
-//==== PRIORITY: P3
-//==== SPEC Tizen Web API:IO:Filesystem:FileStringSuccessCallback:FileStringSuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA CBNIO
-test(function () {
- check_no_interface_object("FileStringSuccessCallback");
-}, document.title);
-
-</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>
- Mariusz Polasinski <m.polasinski@samsung.com>
--->
-
-<html>
-<head>
-<title>FileStringSuccessCallback_onsuccess</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: FileStringSuccessCallback_onsuccess
-//==== LABEL Test whether FileStringSuccessCallback::onsuccess is called with valid argument
-//==== PRIORITY: P1
-//==== SPEC Tizen Web API:IO:Filesystem:FileStringSuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA CBOA CBT
-var t = async_test(document.title), stringToWrite = "HelloWorld",
- resolveSuccess, resolveError, readAsTextSuccess, openStreamSuccess, file,
- fsTestFileName = getFileName("filesystem.txt");
-
-t.step(function () {
- readAsTextSuccess = t.step_func(function (fileStr) {
- assert_type(fileStr, "string", "incorrect type of passed argument");
- assert_equals(fileStr, stringToWrite, "incorrect value of passed argument");
- t.done();
- });
- openStreamSuccess = t.step_func(function (fs) {
- fs.write(stringToWrite);
- fs.close();
- file.readAsText(readAsTextSuccess);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- file = dir.createFile(fsTestFileName);
- file.openStream("w", openStreamSuccess);
- });
- 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>FileSuccessCallback_notexist</title>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: FileSuccessCallback_notexist
-//==== LABEL Interface FileSuccessCallback should not be accessible
-//==== PRIORITY: P3
-//==== SPEC Tizen Web API:IO:Filesystem:FileSuccessCallback:FileSuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA CBNIO
-test(function () {
- check_no_interface_object("FileSuccessCallback");
-}, document.title);
-
-</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>
- Mariusz Polasinski <m.polasinski@samsung.com>
--->
-
-<html>
-<head>
-<meta charset="utf-8"/>
-<title>FileSuccessCallback_onsuccess</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: FileSuccessCallback_onsuccess
-//==== LABEL Test whether FileSuccessCallback::onsuccess is called with valid argument
-//==== PRIORITY: P1
-//==== SPEC Tizen Web API:IO:Filesystem:FileSuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA CBOA CBT
-
-var t = async_test(document.title),
- resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_type(dir, "object", "incorrect received argument");
- checkOwnProperties(dir);
- assert_equals(dir.path, "images", "incorrect received File object");
- t.done();
- });
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- tizen.filesystem.resolve("images", 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>FileSystemManager_resolve</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
-//==== PRIORITY P1
-//==== LABEL Check if FileSystemManager::resolve() method can be called with only mandatory argument
-//==== 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 MMINA MR
-
-var t = async_test(document.title),
- resolveSuccess, retValue = null;
-t.step(function () {
- resolveSuccess = t.step_func(function (storage) {
- assert_not_equals(storage, null, "Null check");
- assert_equals(retValue, undefined, "resolve returns wrong value");
-
- t.done();
- });
-
- retValue = tizen.filesystem.resolve("documents", resolveSuccess);
-});
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 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:
- Danni zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>FileSystemManager_resolve_camera</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileSystemManager_resolve_camera
-//==== LABEL Check if FileSystemManager::resolve() method works for camera virtual root
-//==== 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
-//==== PRIORITY P2
-//==== TEST_CRITERIA MOA
-
-var expected = "camera", resolveSuccess, resolveError,
- t = async_test(document.title);
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_equals(dir.path , expected, "resolve camera to a file handle");
- t.done();
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- tizen.filesystem.resolve("camera", 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_documents</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_documents
-//==== LABEL Check if FileSystemManager::resolve() method works for Documents virtual root
-//==== 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 MOA
-
-
-var resolveSuccess, resolveError, expected = "documents",
- t = async_test(document.title);
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_equals(dir.path, expected, "resolve documents to a file handle");
- 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) 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_downloads</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_downloads
-//==== LABEL Check if FileSystemManager::resolve() method works for Downloads virtual root
-//==== 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 MOA
-
-
-var resolveSuccess, resolveError, expected = "downloads",
- t = async_test(document.title);
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_equals(dir.path , expected, "resolve downloads to a file handle");
- t.done();
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- tizen.filesystem.resolve("downloads", resolveSuccess, resolveError, "rw");
-});
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-
-<!--
-Copyright (c) 2014 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:
- Danni zhao <danni.zhao@samsung.com>
-
--->
-
-<html>
-<head>
-<title>FileSystemManager_resolve_errorCallback_invoked</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileSystemManager_resolve_errorCallback_invoked
-//==== LABEL Check if errorcallback of FileSystemManager::resolve() method can be invoked when location is wrong type
-//==== 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), resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("resolveSuccess was invoked");
- });
-
- resolveError = t.step_func(function (error) {
- t.done();
- });
-
- tizen.filesystem.resolve(undefined, resolveSuccess, resolveError, "rw");
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /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>
-<head>
-<meta charset="utf-8"/>
-<title>FileSystemManager_resolve_error_invoked</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: FileSystemManager_resolve_error_invoked
-//==== PRIORITY P2
-//==== LABEL Check if FileSystemManager::resolve() method reports NotFoundError by onerror for wrong value of location argument (absolute)
-//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA MERRCB
-
-var t = async_test(document.title),
- resolveSuccess, resolveError;
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("this function shouldn't be invoked");
- });
- resolveError = t.step_func(function (error) {
- assert_equals(error.name, "NotFoundError", "incorrect error was thrown");
- t.done();
- });
-
- tizen.filesystem.resolve("/notExistingDirectory", resolveSuccess, resolveError);
-});
-
-</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:
- Piotr Czaja <p.czaja@samsung.com>
-
--->
-<html>
-<head>
-<title>FileSystemManager_resolve_exist</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_exist
-//==== PRIORITY P0
-//==== LABEL Check if FileSystemManager::resolve() method exists
-//==== 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 ME
-
-test(function () {
- assert_true("resolve" in tizen.filesystem, "FileSystemManager has resolve method");
- check_method_exists(tizen.filesystem, "resolve");
-}, document.title);
-
-</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_images</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_images
-//==== PRIORITY P1
-//==== LABEL Check if FileSystemManager::resolve() method works for Images virtual root
-//==== SPEC: Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var resolveSuccess, resolveError, expected = "images",
- t = async_test(document.title);
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_equals(dir.path, expected, "resolve images to a file handle");
- t.done();
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- tizen.filesystem.resolve("images", resolveSuccess, resolveError, "rw");
-});
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-
-<!--
-Copyright (c) 2014 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:
- Danni zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>FileSystemManager_resolve_location_invalid</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: FileSystemManager_resolve_location_invalid
-//==== LABEL Check if FileSystemManager::resolve() method work for invalid location
-//==== 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), resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("resolveSuccess was invoked");
- });
-
- resolveError = t.step_func(function (error) {
- t.done();
- });
-
- tizen.filesystem.resolve("", resolveSuccess, resolveError, "rw");
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /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:
- Piotr Czaja <p.czaja@samsung.com>
-
--->
-<html>
-<head>
-<title>FileSystemManager_resolve_missarg</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_missarg
-//==== LABEL Check if FileSystemManager::resolve() throws exception for missing mandatory argument
-//==== PRIORITY P0
-//==== 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 MMA
-
-test(function () {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- tizen.filesystem.resolve();
- }, "Method should throw an exception");
-}, document.title);
-
-</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:
- Piotr Czaja <p.czaja@samsung.com>
- Beata Koziarek <b.koziarek@samsung.com>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>FileSystemManager_resolve_mode_TypeMismatch</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_mode_TypeMismatch
-//==== PRIORITY P2
-//==== LABEL Check if FileSystemManager::resolve() method throws exception for wrong value of mode argument
-//==== 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 MC
-
-var t = async_test(document.title),
- conversionTable, resolveSuccess, resolveError, mode, exceptionName, i;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("resolveSuccess was invoked");
- });
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- conversionTable = getTypeConversionExceptions("enum", true);
- for (i = 0; i < conversionTable.length; i++) {
- mode = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- tizen.filesystem.resolve("images", resolveSuccess, resolveError, mode);
- }, exceptionName + " should be thrown - given incorrect errorCallback.");
- }
- t.done();
-});
-
-</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_mode_a</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_mode_a
-//==== LABEL Check if FileSystemManager::resolve() method works for Documents virtual root and mode 'a'
-//==== 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 MOA
-
-
-var resolveSuccess, resolveError, expected = "documents",
- t = async_test(document.title);
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_equals(dir.path, expected, "resolve a location with 'a' mode");
- 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, "a");
-});
-
-</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_mode_r</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_mode_r
-//==== LABEL Check if FileSystemManager::resolve() method works for Documents virtual root and mode 'r'
-//==== 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 MOA
-
-
-var resolveSuccess, resolveError, expected = "documents",
- t = async_test(document.title);
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_equals(dir.path , expected, "resolve a location with an mode r");
- 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, "r");
-});
-
-</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_mode_w</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_mode_w
-//==== LABEL Check if FileSystemManager::resolve() method works for Documents virtual root and mode 'w'
-//==== 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 MOA
-
-
-var resolveSuccess, resolveError, expected = "documents",
- t = async_test(document.title);
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_equals(dir.path , expected, "resolve a location with an mode w");
- 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, "w");
-});
-
-</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_music</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_music
-//==== LABEL Check if FileSystemManager::resolve() method works for Music virtual root
-//==== 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 MOA
-
-
-var resolveSuccess, resolveError, expected = "music",
- t = async_test(document.title);
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_equals(dir.path , expected, "resolve music to a file handle");
- t.done();
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- tizen.filesystem.resolve("music", 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:
- Piotr Czaja <p.czaja@samsung.com>
- Beata Koziarek <b.koziarek@samsung.com>
-
--->
-<html>
-<head>
-<title>FileSystemManager_resolve_onerror_TypeMismatch</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_onerror_TypeMismatch
-//==== PRIORITY P2
-//==== LABEL Check if FileSystemManager::resolve() method throws exception for wrong type of onerror
-//==== 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 MC
-
-var t = async_test(document.title), i,
- resolveSuccess, resolveError, exceptionName, conversionTable;
-t.step(function () {
- conversionTable = getTypeConversionExceptions("functionObject", true);
-
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("this function shouldn't be invoked");
- });
-
- for(i = 0; i < conversionTable.length; i++) {
- resolveError = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- tizen.filesystem.resolve("images", resolveSuccess, resolveError);
- }, exceptionName + " should be thrown - given incorrect errorCallback.");
- }
- t.done();
-});
-
-</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:
- Piotr Czaja <p.czaja@samsung.com>
-
--->
-<html>
-<head>
-<title>FileSystemManager_resolve_onerror_invalid_cb</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_onerror_invalid_cb
-//==== PRIORITY P2
-//==== LABEL Check if FileSystemManager::resolve() method throws exception for wrong onerror
-//==== 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 MTCB
-
-var t = async_test(document.title),
- resolveError, resolveSuccess, conversionTable;
-
-t.step(function () {
- conversionTable = getTypeConversionExceptions("functionObject", true);
- resolveSuccess = t.step_func(function (storage) {
- });
- resolveError = {
- onerror: t.step_func(function (){
- assert_unreached("Invalid callback invoked: ");
- })
- };
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- tizen.filesystem.resolve("images", resolveSuccess, resolveError, "rw");
- }, "given incorrect errorCallback");
- t.done();
-});
-
-</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:
- Piotr Czaja <p.czaja@samsung.com>
- Beata Koziarek <b.koziarek@samsung.com>
-
--->
-<html>
-<head>
-<title>FileSystemManager_resolve_onsuccess_TypeMismatch</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_onsuccess_TypeMismatch
-//==== PRIORITY P2
-//==== LABEL Check if FileSystemManager::resolve() method throws exception for wrong type of onsuccess
-//==== 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 MC
-
-var t = async_test(document.title), i,
- resolveSuccess, resolveError, exceptionName, conversionTable;
-
-t.step(function () {
- conversionTable = getTypeConversionExceptions("functionObject", false);
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- for (i = 0; i < conversionTable.length; i++) {
- resolveSuccess = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- tizen.filesystem.resolve("documents", resolveSuccess, resolveError);
- }, exceptionName + " should be thrown - given incorrect onSuccess.");
- }
- t.done();
-});
-
-</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:
- Piotr Czaja <p.czaja@samsung.com>
- Beata Koziarek <b.koziarek@samsung.com>
--->
-<html>
-<head>
-<title>FileSystemManager_resolve_onsuccess_invalid_cb</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_onsuccess_invalid_cb
-//==== PRIORITY P2
-//==== LABEL Check if FileSystemManager::resolve() method throws exception for wrong onsuccess
-//==== 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 MTCB
-
-var t = async_test(document.title),
- resolveSuccess, resolveError;
-
-t.step(function () {
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = {
- onsuccess: t.step_func(function (){
- assert_unreached("Invalid callback invoked: ");
- })
- };
-
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- tizen.filesystem.resolve("documents", resolveSuccess, resolveError);
- }, "given incorrect error callback");
- t.done();
-});
-
-</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_ringtones</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_ringtones
-//==== PRIORITY P1
-//==== LABEL Check if FileSystemManager::resolve() method works for Ringtones virtual root
-//==== SPEC: Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var resolveSuccess, resolveError, expected = "ringtones",
- t = async_test(document.title);
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_equals(dir.path, expected, "resolve ringtones to a file handle");
- t.done();
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- tizen.filesystem.resolve("ringtones", resolveSuccess, resolveError, "r");
-});
-
-</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>
-<head>
-<title>FileSystemManager_resolve_ringtones_invalid_mode_a</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>
-//==== TEST: FileSystemManager_resolve_ringtones_invalid_mode_a
-//==== LABEL Check if FileSystemManager::resolve() method reports InvalidValuesError when resolving Ringtones directory with mode 'a'
-//==== 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
-
-var resolveSuccess, resolveError,
- t = async_test(document.title);
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("this function shouldn't be invoked");
- });
-
- resolveError = t.step_func(function (error) {
- assert_equals(error.name, "InvalidValuesError", "error.name");
- t.done();
- });
-
- tizen.filesystem.resolve("ringtones", resolveSuccess, resolveError, "a");
-
-});
-
-</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>
-<head>
-<title>FileSystemManager_resolve_ringtones_invalid_mode_rw</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>
-//==== TEST: FileSystemManager_resolve_ringtones_invalid_mode_rw
-//==== LABEL Check if FileSystemManager::resolve() method reports InvalidValuesError when resolving Ringtones directory with mode 'rw'
-//==== 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
-
-var resolveSuccess, resolveError,
- t = async_test(document.title);
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("this function shouldn't be invoked");
- });
-
- resolveError = t.step_func(function (error) {
- assert_equals(error.name, "InvalidValuesError", "error.name");
- t.done();
- });
-
- tizen.filesystem.resolve("ringtones", 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>
-<head>
-<title>FileSystemManager_resolve_ringtones_invalid_mode_w</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>
-//==== TEST: FileSystemManager_resolve_ringtones_invalid_mode_w
-//==== LABEL Check if FileSystemManager::resolve() method reports InvalidValuesError when resolving Ringtones directory with mode 'w'
-//==== 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
-
-var resolveSuccess, resolveError,
- t = async_test(document.title);
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("this function shouldn't be invoked");
- });
-
- resolveError = t.step_func(function (error) {
- assert_equals(error.name, "InvalidValuesError", "error.name");
- t.done();
- });
-
- tizen.filesystem.resolve("ringtones", resolveSuccess, resolveError, "w");
-
-});
-
-</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_videos</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_videos
-//==== LABEL Check if FileSystemManager::resolve() method works for Videos virtual root
-//==== 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 MOA
-
-
-var expected = "videos", resolveSuccess, resolveError,
- t = async_test(document.title);
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_equals(dir.path , expected, "resolve videos to a file handle");
- t.done();
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- tizen.filesystem.resolve("videos", 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>
-<head>
-<title>FileSystemManager_resolve_wgt-package_invalid_mode_a</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>
-//==== TEST: FileSystemManager_resolve_wgt-package_invalid_mode_a
-//==== LABEL Check if FileSystemManager::resolve() method reports InvalidValuesError when resolving 'wgt-package' directory with mode 'a'
-//==== 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
-
-var resolveSuccess, resolveError,
- t = async_test(document.title);
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("this function shouldn't be invoked");
- });
-
- resolveError = t.step_func(function (error) {
- assert_equals(error.name, "InvalidValuesError", "error.name");
- t.done();
- });
-
- tizen.filesystem.resolve("wgt-package", resolveSuccess, resolveError, "a");
-
-});
-
-</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>
-<head>
-<title>FileSystemManager_resolve_wgt-package_invalid_mode_rw</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>
-//==== TEST: FileSystemManager_resolve_wgt-package_invalid_mode_rw
-//==== LABEL Check if FileSystemManager::resolve() method reports InvalidValuesError when resolving 'wgt-package' directory with mode 'rw'
-//==== 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
-
-var resolveSuccess, resolveError,
- t = async_test(document.title);
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("this function shouldn't be invoked");
- });
-
- resolveError = t.step_func(function (error) {
- assert_equals(error.name, "InvalidValuesError", "error.name");
- t.done();
- });
-
- tizen.filesystem.resolve("wgt-package", 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>
-<head>
-<title>FileSystemManager_resolve_wgt-package_invalid_mode_w</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>
-//==== TEST: FileSystemManager_resolve_wgt-package_invalid_mode_w
-//==== LABEL Check if FileSystemManager::resolve() method reports InvalidValuesError when resolving 'wgt-package' directory with mode 'w'
-//==== 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
-
-var resolveSuccess, resolveError,
- t = async_test(document.title);
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("this function shouldn't be invoked");
- });
-
- resolveError = t.step_func(function (error) {
- assert_equals(error.name, "InvalidValuesError", "error.name");
- t.done();
- });
-
- tizen.filesystem.resolve("wgt-package", resolveSuccess, resolveError, "w");
-
-});
-
-</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_wgt_package</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_wgt_package
-//==== PRIORITY P1
-//==== LABEL Check if FileSystemManager::resolve() method works for 'wgt-package' virtual root
-//==== SPEC: Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var resolveSuccess, resolveError, expected = "wgt-package",
- t = async_test(document.title);
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_equals(dir.path, expected, "resolve wgt-package to a file handle");
- t.done();
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- tizen.filesystem.resolve("wgt-package", resolveSuccess, resolveError, "r");
-});
-
-</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_wgt_private</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_wgt_private
-//==== PRIORITY P1
-//==== LABEL Check if FileSystemManager::resolve() method works for 'wgt-private' virtual root
-//==== SPEC: Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var resolveSuccess, resolveError, expected = "wgt-private",
- t = async_test(document.title);
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_equals(dir.path, expected, "resolve wgt-private to a file handle");
- t.done();
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- tizen.filesystem.resolve("wgt-private", 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_wgt_private_tmp</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_wgt_private_tmp
-//==== PRIORITY P1
-//==== LABEL Check if FileSystemManager::resolve() method works for 'wgt-private-tmp' virtual root
-//==== SPEC: Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var resolveSuccess, resolveError, expected = "wgt-private-tmp",
- t = async_test(document.title);
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_equals(dir.path, expected, "resolve wgt-private-tmp to a file handle");
- t.done();
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- tizen.filesystem.resolve("wgt-private-tmp", 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:
- Piotr Czaja <p.czaja@samsung.com>
- Beata Koziarek <b.koziarek@samsung.com>
-
--->
-<html>
-<head>
-<title>FileSystemManager_resolve_with_mode</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_with_mode
-//==== PRIORITY P1
-//==== LABEL Check if FileSystemManager::resolve() method works for Images virtual root with mode 'rw'
-//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, expected;
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- expected="images";
- assert_equals(dir.path, expected, "resolve a location to a file handle");
- t.done();
- });
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- tizen.filesystem.resolve("images", 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:
- Piotr Czaja <p.czaja@samsung.com>
- Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>FileSystemManager_resolve_with_onerror</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_with_onerror
-//==== PRIORITY P2
-//==== LABEL Check if FileSystemManager::resolve() method can be called with onerror argument
-//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var t = async_test(document.title),
- resolveSuccess, resolveError;
-t.step(function (){
- resolveSuccess = t.step_func(function (storage) {
- t.done();
- });
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- tizen.filesystem.resolve("images", resolveSuccess, resolveError);
-});
-
-</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>FileSystemManager_resolve_works_correctly</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: FileSystemManager_resolve_works_correctly
-//==== PRIORITY P1
-//==== LABEL Check if FileSystemManager::resolve() method works for Documents and onsuccess is invoked with proper argument
-//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var t = async_test(document.title),
- resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_true("parent" in dir, "parent don't exist in object");
- assert_type(dir.parent, "null", "parent should be null");
- assert_true("readOnly" in dir, "readOnly don't exist in object");
- assert_false(dir.readOnly, "value of readOnly should be equal to false");
- assert_true("isDirectory" in dir, "isDirectory don't exist in object");
- assert_true(dir.isDirectory, "value of isDirectory should be equal to true");
- assert_true("isFile" in dir, "isFile don't exist in object");
- assert_false(dir.isFile, "value of isFile should be equal to true");
- assert_true("created" in dir, "created don't exist in object");
- assert_true("modified" in dir, "modified don't exist in object");
- assert_true("name" in dir, "name don't exist in object");
- assert_equals(dir.name, "", "value of name should be equal to empty string");
- assert_true("path" in dir, "path don't exist in object");
- assert_equals(dir.path, "documents", "value of path should be equal to string 'documents'");
- assert_true("fullPath" in dir, "fullPath don't exist in object");
- assert_equals(dir.fullPath, "documents", "value of fullPath should be equal to string 'documents'");
- assert_true("fileSize" in dir, "fileSize don't exist in object");
- assert_type(dir.fileSize, "undefined", "fileSize should be undefined");
- assert_true("length" in dir, "length don't exist in object");
- assert_type(dir.length, "long", "type of length should be number");
- assert_true(dir.length >= 0, "value of length should be >= 0");
- 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);
-});
-
-</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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-
-<head>
-<title>File_copyTo</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>
-//==== TEST: File_copyTo
-//==== PRIORITY P1
-//==== LABEL Check if File::copyTo() method ends successfully (copy file from documents/ to images/)
-//==== 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 MMINA
-
-var t = async_test(document.title), resolveSuccess, resolveError, fsTestFile, fsTestFileName;
-
-t.step(function (){
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- dir.copyTo(fsTestFile.fullPath, "images/" + fsTestFile.name, true);
- 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>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 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:
- Xu Sida <sida.xu@samsung.com>
-
--->
-<html>
-<head>
-<title>File_copyTo_destinationFilePath_invalid</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_copyTo_destinationFilePath_invalid
-//==== LABEL Check if copyTo method called with invalid destinationFilePath does what it should
-//==== 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), resolveSuccess, resolveError, fsTestFile, fsTestFileName, copyToFileSuccess, copyToFileError;
-
-t.step(function (){
- fsTestFileName = getFileName("filesystemtyh.txt");
- copytoFileSuccess = t.step_func(function () {
- assert_unreached("copyTo: should invoke error callback");
- });
-
- copytoFileError = t.step_func(function (error) {
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- dir.copyTo(fsTestFile.fullPath, "", true, copytoFileSuccess, copytoFileError);
- });
-
- 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>
\ No newline at end of file
+++ /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>
-
-<head>
-<title>File_copyTo_dir_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_copyTo_dir_overwrite_false
-//==== LABEL Check if error callback is invoked when copy a directory to another location where directory of that name already exists (overwrite is false)
-//==== 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 resolveSuccess, resolveError, copySuccess, copyError, fsTestDir1, fsTestDirName1, fsTestSubDir1, fsTestSubDirName1,
- fsTestDir2, fsTestDirName2, fsTestSubDir2, expected = "IOError",
- t = async_test(document.title);
-
-t.step(function () {
- fsTestDirName1 = getDirName("filesystem1");
- fsTestSubDirName1 = getDirName("filesystem1sub");
- fsTestDirName2 = getDirName("filesystem2");
-
- copySuccess = t.step_func(function () {
- assert_unreached("copySuccess callback shouldn't be invoked");
- });
-
- copyError = 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);
- fsTestDir2 = dir.createDirectory(fsTestDirName2);
- fsTestSubDir2 = fsTestDir2.createDirectory(fsTestSubDirName1);
- fsTestDir1.copyTo(fsTestSubDir1.fullPath, fsTestSubDir2.path, false, 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:
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>File_copyTo_dir_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_dir_overwrite_true
-//==== LABEL Check if you can copy a directory to another location where directory of that name already exists (overwrite is true)
-//==== 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 MOA
-
-
-var resolveSuccess, resolveError, copySuccess, fsTestDir1, fsTestDirName1, fsTestSubDir1, fsTestSubDirName1,
- fsTestDir2, fsTestDirName2, fsTestSubDir2, copyError,
- t = async_test(document.title);
-
-t.step(function () {
- fsTestDirName1 = getDirName("filesystem1");
- fsTestSubDirName1 = getDirName("filesystem1sub");
- fsTestDirName2 = getDirName("filesystem2");
-
- copySuccess = t.step_func(function () {
- t.done();
- });
-
- copyError = t.step_func(function (error) {
- assert_unreached("copyTo() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestDir1 = dir.createDirectory(fsTestDirName1);
- fsTestSubDir1 = fsTestDir1.createDirectory(fsTestSubDirName1);
- fsTestDir2 = dir.createDirectory(fsTestDirName2);
- fsTestSubDir2 = fsTestDir2.createDirectory(fsTestSubDirName1);
- fsTestDir1.copyTo(fsTestSubDir1.fullPath, fsTestSubDir2.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>
+++ /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_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_copyTo_dir_samedir_samename_overwrite_false
-//==== LABEL Check if error callback is invoked when copy directory dir1/subdir1 into dir1/ (overwrite is false)
-//==== 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 resolveSuccess, resolveError, copySuccess, copyError, fsTestDir1, fsTestDirName1, fsTestSubDir1,
- fsTestSubDirName1, expected = "IOError",
- t = async_test(document.title);
-
-t.step(function () {
- fsTestDirName1 = getDirName("filesystem1");
- fsTestSubDirName1 = getDirName("filesystem1sub");
-
- copySuccess = t.step_func(function () {
- assert_unreached("copySuccess callback shouldn't be invoked");
- });
-
- copyError = 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.copyTo(fsTestSubDir1.fullPath, fsTestSubDir1.path, false, 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_copyTo_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_copyTo_dir_samedir_samename_overwrite_true
-//==== LABEL Check if error callback is invoked when copy directory dir1/subdir1 into dir1/ (overwrite is true)
-//==== 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 resolveSuccess, resolveError, copySuccess, fsTestDir1, fsTestDirName1, fsTestSubDir1, fsTestSubDirName1,
- t = async_test(document.title), copyError, expectedError = "IOError";
-
-t.step(function () {
- fsTestDirName1 = getDirName("filesystem1");
- fsTestSubDirName1 = getDirName("filesystem1sub");
-
- 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) {
- fsTestDir1 = dir.createDirectory(fsTestDirName1);
- fsTestSubDir1 = fsTestDir1.createDirectory(fsTestSubDirName1);
- fsTestDir1.copyTo(fsTestSubDir1.fullPath, fsTestSubDir1.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>
+++ /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>
-
--->
-
-<html>
-
-<head>
-<title>File_copyTo_exist</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: File_copyTo_exist
-//==== LABEL Check if File::copyTo() method exists
-//==== PRIORITY P0
-//==== 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 ME
-
-var t = async_test(document.title), resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_true("copyTo" in dir, "method copyTo exists");
- check_method_exists(dir, "copyTo");
- 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:
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>File_copyTo_file_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_copyTo_file_overwrite_false
-//==== LABEL Check if error callback is invoked when copy a file to another directory where a file of that name already exists (overwrite is false)
-//==== 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 = "IOError",
- resolveSuccess, resolveError, copySuccess, copyError, fsTestFile, fsTestFileName, fsTestDir,
- fsTestDirName, fsTestSubDir1, fsTestSubDirName1, fsTestSubDir2, fsTestSubDirName2;
-
-t.step(function () {
- fsTestDirName = getFileName("filesystem");
- fsTestSubDirName1 = getFileName("filesystem1sub");
- fsTestSubDirName2 = getFileName("filesystem2sub");
- 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, expected, "wrong error type");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestDir = dir.createDirectory(fsTestDirName);
- fsTestSubDir1 = fsTestDir.createDirectory(fsTestSubDirName1);
- fsTestSubDir2 = fsTestDir.createDirectory(fsTestSubDirName2);
- fsTestFile = fsTestSubDir1.createFile(fsTestFileName);
- fsTestSubDir2.createFile(fsTestFileName);
- fsTestSubDir1.copyTo(fsTestFile.fullPath, fsTestSubDir2.fullPath, false, 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:
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>File_copyTo_file_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_overwrite_true
-//==== LABEL Check if you can copy a file to another directory where a file of that name already exists (overwrite is true)
-//==== 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 MOA
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, copySuccess, fsTestFile, fsTestFileName, fsTestDir, copyError,
- fsTestDirName, fsTestSubDir1, fsTestSubDirName1, fsTestSubDir2, fsTestSubDirName2;
-
-t.step(function () {
- fsTestDirName = getFileName("filesystem");
- fsTestSubDirName1 = getFileName("filesystem1sub");
- fsTestSubDirName2 = getFileName("filesystem2sub");
- fsTestFileName = getFileName("filesystem.txt");
-
- copySuccess = t.step_func(function () {
- t.done();
- });
-
- copyError = t.step_func(function (error) {
- assert_unreached("copyTo() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestDir = dir.createDirectory(fsTestDirName);
- fsTestSubDir1 = fsTestDir.createDirectory(fsTestSubDirName1);
- fsTestSubDir2 = fsTestDir.createDirectory(fsTestSubDirName2);
- fsTestFile = fsTestSubDir1.createFile(fsTestFileName);
- fsTestSubDir2.createFile(fsTestFileName);
- fsTestSubDir1.copyTo(fsTestFile.fullPath, fsTestSubDir2.fullPath, 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_copyTo_file_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_copyTo_file_samedir_samename_overwrite_false
-//==== LABEL Check if error callback is invoked when copy a file to the same location (overwrite is false)
-//==== 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 = "IOError",
- resolveSuccess, resolveError, copySuccess, copyError, fsTestFile, fsTestFileName, fsTestDir, fsTestDirName;
-
-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.fullPath, false, 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. 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>
-
-<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 is invoked when copy a file to the same location (overwrite is true)
-//==== 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), 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>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 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:
- Xu Sida <sida.xu@samsung.com>
-
--->
-<html>
-<head>
-<title>File_copyTo_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_copyTo_misarg
-//==== LABEL Check with missing argument - copyTo
-//==== 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
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-var t = async_test(document.title), resolveSuccess, resolveError, fsTestFile, fsTestFileName;
-
-t.step(function (){
- fsTestFileName = getFileName("filesystem.txt");
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- dir.copyTo(fsTestFile.fullPath);
- }, TYPE_MISMATCH_EXCEPTION + " should be thrown - missing type");
- 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>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 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:
- Xu Sida <sida.xu@samsung.com>
-
--->
-<html>
-<head>
-<title>File_copyTo_noarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_copyTo_noarg
-//==== LABEL Check with no argument - copyTo
-//==== 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
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-var t = async_test(document.title), resolveSuccess, resolveError, fsTestFile, fsTestFileName;
-
-t.step(function (){
- fsTestFileName = getFileName("filesystem111.txt");
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- dir.copyTo();
- }, TYPE_MISMATCH_EXCEPTION + " 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>
\ No newline at end of file
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>File_copyTo_onerror_TypeMismatch</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_onerror_TypeMismatch
-//==== LABEL Check if File::copyTo() throws exception when type of errorCallback is wrong
-//==== 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 MC
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, conversionTable, copyError, i, copySuccess, fsTestFileName,
- exceptionName = "TypeMismatchError";
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- copySuccess = t.step_func(function () {
- assert_unreached("successCalback should not be called");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- copyError = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- dir.copyTo(fsTestFileName, "images", true, copySuccess, copyError);
- }, exceptionName + " should be thrown - given incorrect errorCallback.");
- }
- 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>
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>File_copyTo_onerror_invalid_cb</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>
-
-//==== TEST: File_copyTo_onerror_invalid_cb
-//==== LABEL Check if File::copyTo() throws exception for wrong 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 MTCB
-
-var t = async_test(document.title), resolveSuccess, resolveError,
- copySuccess, copyError, fsTestFileName;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- copyError = {
- onerror: t.step_func(function () {
- assert_unreached("Invalid callback invoked: ");
- })
- };
-
- copySuccess = t.step_func(function () {
- assert_unreached("successCallback should not be called");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- dir.copyTo(fsTestFileName, "images", true, copySuccess, copyError);
- }, "given incorrect errorCallback");
- 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>
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>File_copyTo_onsuccess_TypeMismatch</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_onsuccess_TypeMismatch
-//==== LABEL Check if File::copyTo() throws exception when type of successCallback is wrong
-//==== 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 MC
-
-var t = async_test(document.title), copySuccess,
- resolveSuccess, resolveError, conversionTable, i, exceptionName = "TypeMismatchError", fsTestFile, fsTestFileName;
-
-t.step(function (){
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- copySuccess = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- dir.copyTo(fsTestFile.fullPath, "images", true, copySuccess);
- }, exceptionName + " should be thrown - given incorrect successCallback.");
- }
- 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>
+++ /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_onsuccess_invalid_cb</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_onsuccess_invalid_cb
-//==== LABEL Check if File::copyTo() throws exception for wrong successCallback
-//==== 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 MTCB
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, copySuccess, fsTestFile, fsTestFileName;
-
-t.step(function (){
- fsTestFileName = getFileName("filesystem.txt");
-
- copySuccess = {
- onsuccess: t.step_func(function () {
- assert_unreached("Invalid callback invoked");
- })
- };
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- dir.copyTo(fsTestFile.fullPath, "images", true, copySuccess);
- }, "given incorrect successCallback");
- 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>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 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:
- Xu Sida <sida.xu@samsung.com>
-
--->
-<html>
-<head>
-<title>File_copyTo_originFilePath_invalid</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_copyTo_originFilePath_invalid
-//==== LABEL Check if copyTo method called with invalid originFilePath does what it should
-//==== 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), resolveSuccess, resolveError, fsTestFile, fsTestFileName, copyToFileSuccess, copyToFileError;
-
-t.step(function (){
- fsTestFileName = getFileName("filesystem.txt");
-
- copytoFileSuccess = t.step_func(function () {
- assert_unreached("copyTo:should invoke error callback");
- });
-
- copytoFileError = t.step_func(function (error) {
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- dir.copyTo("", "images/" + fsTestFile.name, true, copytoFileSuccess, copytoFileError);
- });
-
- 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>
\ 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>
-
-<head>
-<title>File_copyTo_with_file_handle</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_file_handle
-//==== LABEL Check if File::copyTo() calls errorCallback when called for object representing file, not a directory
-//==== 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 resolveSuccess, resolveError, copySuccess, copyError, fsTestFile, fsTestFileName, fsTestDir, fsTestDirName,
- expectedError ="IOError", t = async_test(document.title);
-
-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 = dir.createFile(fsTestFileName);
- fsTestFile.copyTo(fsTestFile.fullPath, fsTestDir.fullPath, 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_null_success_and_error_callbacks</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_null_success_and_error_callbacks
-//==== PRIORITY P1
-//==== LABEL Check if File::copyTo() can be invoked with null successCallback and errorCallback
-//==== 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 MMINA
-
-var t = async_test(document.title), resolveSuccess, resolveError, fsTestFile, fsTestFileName1, fsTestFileName2,
- copyPath;
-
-t.step(function () {
-
- fsTestFileName1 = getFileName("filesystem1.txt");
- fsTestFileName2 = getFileName("filesystem2.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName1);
- copyPath = dir.fullPath + "/" + fsTestFileName2;
- dir.copyTo(fsTestFile.fullPath, copyPath, false, null, null);
- 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(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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>File_copyTo_with_onerror</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_onerror
-//==== PRIORITY P1
-//==== LABEL Check if File::copyTo() calls errorCallback (nonexisting originFilePath)
-//==== 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 MOA
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, copyToSuccess, copyToError, fsTestFileName;
-
-t.step(function (){
- fsTestFileName = getFileName("notexistingfile.txt");
-
- copyToError = t.step_func(function () {
- t.done();
- });
-
- copyToSuccess = t.step_func(function () {
- assert_unreached("copyToError callback should be called");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- dir.copyTo(fsTestFileName, "images/" + fsTestFileName, 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("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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>File_copyTo_with_onsuccess</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_onsuccess
-//==== PRIORITY P1
-//==== LABEL Check if File::copyTo() with onSuccess creates a file copy
-//==== 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 MAST MR
-
-var t = async_test(document.title), resolveSuccess, resolveError, resolveSuccess2, resolveError2,
- fsTestFileName, fsTestFile, copyToSuccess, retVal = null;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess2 = t.step_func(function (dir) {
- fsTestFile = dir.resolve(fsTestFileName);
- assert_equals(fsTestFile.name, fsTestFileName, "file wasn't copied properly");
- assert_true(fsTestFile.isFile, "file wasn't copied properly");
- t.done();
- });
-
- resolveError2 = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- copyToSuccess = t.step_func(function () {
- assert_equals(retVal, undefined, "incorrect returned value");
- tizen.filesystem.resolve("images", resolveSuccess2, resolveError2, "rw");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- retVal = dir.copyTo(fsTestFile.fullPath, "images/" + fsTestFile.name, true, copyToSuccess);
- });
-
- 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_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
-//==== PRIORITY P1
-//==== LABEL Check if you can create a new empty file, write content into it, then request a copy of it (different name, same directory)
-//==== 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 MOA
-
-
-var resolveSuccess, resolveError, copySuccess, copyError, openStreamSuccess, openStreamError,
- fsTestFileName, fsTestFileName2, fsTestFile, fsTestDirName, fsTestDir,
- t = async_test(document.title);
-
-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>
+++ /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_writeFile_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_copyTo_writeFile_overwrite_false
-//==== PRIORITY P1
-//==== LABEL Check if when create a new empty file, write content into it, then request a copy of it over existing file invokes errorCallback (overwrite=false)
-//==== 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), resolveSuccess, resolveError,
- openStreamSuccess, openStreamError, copyToSuccess, copyToError, fsTestFileName,
- fsTestFile, fsTestDirName, fsTestDir, expectedError = "IOError", mainDir;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
- fsTestDirName = getDirName("filesystem");
-
- copyToSuccess = t.step_func(function () {
- assert_unreached("copyToSuccess callback shouldn't be invoked");
- });
-
- copyToError = t.step_func(function (error) {
- assert_equals(error.name, expectedError, "wrong error type");
- t.done();
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write("test");
- fs.close();
- mainDir.copyTo(fsTestFile.fullPath, fsTestDir.fullPath + "/" + fsTestFile.name, false, copyToSuccess, copyToError);
- });
-
- openStreamError = t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- mainDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- fsTestDir = dir.createDirectory(fsTestDirName);
- 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>
-
-<head>
-<title>File_copyTo_writeFile_subdir</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_subdir
-//==== PRIORITY P1
-//==== LABEL Check if you can create a new empty file, write content into it, then request a copy of it (different name, different directory)
-//==== 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 MOA
-
-
-var resolveSuccess, resolveError, openStreamSuccess, openStreamError, copySuccess, copyError, fsTestFileName, fsTestFile,
- fsTestDir, fsTestDirName, fsTestSubDir, fsTestSubDirName, t = async_test(document.title);
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
- fsTestDirName = getDirName("filesystem");
- fsTestSubDirName = getDirName("filesystemSub");
-
- copySuccess = t.step_func(function () {
- t.done();
- });
-
- copyError = t.step_func(function (error) {
- assert_unreached("copyTo() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write("test");
- fs.close();
- fsTestDir.copyTo(fsTestFile.fullPath, fsTestSubDir.fullPath + "/" + fsTestFile.name, true, copySuccess, copyError);
- });
-
- 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);
- fsTestSubDir = fsTestDir.createDirectory(fsTestSubDirName);
- 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) 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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>File_createDirectory</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_createDirectory
-//==== PRIORITY P1
-//==== LABEL Check if File::createDirectory() method
-//==== SPEC: Tizen Web API:IO:Filesystem:File:createDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MAST MMINA MR
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, fsTestDir, fsTestDirName;
-
-t.step(function () {
- fsTestDirName = getDirName("filesystem");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestDir = dir.createDirectory(fsTestDirName);
- assert_type(fsTestDir, "object", "directory wasn't created properly");
- checkOwnProperties(fsTestDir);
- assert_equals(fsTestDir.name, fsTestDirName, "directory wasn't created properly");
- assert_true(fsTestDir.isDirectory, "directory wasn't created properly");
- fsTestDir = dir.resolve(fsTestDirName);
- assert_equals(fsTestDir.name, fsTestDirName, "directory wasn't created properly");
- assert_true(fsTestDir.isDirectory, "directory wasn't created properly");
- 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>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 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:
- Danni Zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>File_createDirectory_dirPath_invalid</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_createDirectory_dirPath_invalid
-//==== LABEL Check if File::createDirectory() throws exception when dirPath is invalid.
-//==== SPEC Tizen Web API:IO:Filesystem:File:createDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== PRIORITY: P2
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title), resolveSuccess, resolveError, fsTestDir;
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_throws(INVALID_VALUES_EXCEPTION,
- function () {
- fsTestDir = dir.createDirectory("");
- }, INVALID_VALUES_EXCEPTION + " should be thrown - invalid dirPath ");
- 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>
\ 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>
- Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>File_createDirectory_exist</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: File_createDirectory_exist
-//==== LABEL Check if File::createDirectory() method exists
-//==== PRIORITY P0
-//==== SPEC Tizen Web API:IO:Filesystem:File:createDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA ME
-
-var t = async_test(document.title),
- resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_true("createDirectory" in dir, "method createDirectory exists");
- check_method_exists(dir, "createDirectory");
- t.done();
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("Error: " + 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_createDirectory_level2</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_createDirectory_level2
-//==== LABEL Check if File::createDirectory() works for non-existing intermediate directory (creates 2 levels of directories)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:createDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MAST
-
-var t = async_test(document.title), resolveSuccess, resolveError, listFilesSuccess, listFilesError, documentsDir,
- fsTestDir, fsTestDirName, fsTestSubDir, fsTestSubDirName;
-
-t.step(function (){
-
- fsTestDirName = getDirName("filesystem");
- fsTestSubDirName = getDirName("filesystemSub");
-
- listFilesSuccess = t.step_func(function (files) {
- assert_true(files.length === 1, "Subdirectory not found.");
- assert_equals(files[0].name, fsTestSubDirName, "Unexpected subdirectory name: " + files[0].name);
- t.done();
- });
-
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestSubDir = dir.createDirectory(fsTestDirName + "/" + fsTestSubDirName);
- fsTestDir = dir.resolve(fsTestDirName);
- fsTestDir.listFiles(listFilesSuccess, listFilesError);
- });
-
- 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) 2014 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:
- Danni Zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>File_createDirectory_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_createDirectory_misarg
-//==== LABEL Check if createDirectory method throws exception with missing non-optional argument
-//==== SPEC Tizen Web API:IO:Filesystem:File:createDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-var t = async_test(document.title), resolveSuccess, resolveError;
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_throws(INVALID_VALUES_EXCEPTION,
- function () {
- dir.createDirectory();
- }, INVALID_VALUES_EXCEPTION + " 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>
\ No newline at end of file
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>File_createFile</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_createFile
-//==== PRIORITY P1
-//==== LABEL Check if File::createFile() method works properly
-//==== 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 MAST MMINA MR
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, fsTestFileName, fsTestFile;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- assert_type(fsTestFile, "object", "file wasn't created properly");
- checkOwnProperties(fsTestFile);
- assert_equals(fsTestFile.name, fsTestFileName, "file wasn't created properly");
- assert_true(fsTestFile.isFile, "file wasn't created properly");
- fsTestFile = dir.resolve(fsTestFileName);
- assert_equals(fsTestFile.name, fsTestFileName, "file wasn't created properly");
- assert_true(fsTestFile.isFile, "file wasn't created properly");
- 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>
+++ /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>
-
--->
-
-<html>
-
-<head>
-<title>File_createFile_exist</title>
-<script src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: File_createFile_exist
-//==== LABEL Check if File::createFile() method exists
-//==== PRIORITY P0
-//==== 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 ME
-
-var t = async_test(document.title),
- resolveSuccess, resolveError;
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_true("createFile" in dir, "method createFile exists");
- check_method_exists(dir, "createFile");
- 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) 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_existing_file</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_createFile_existing_file
-//==== LABEL Check if File::createFile() throws exception when the file already exists
-//==== 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
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMINA MAST
-
-var t = async_test(document.title), expected = "IOError",
- resolveSuccess, resolveError, fsTestFileName;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem");
-
- resolveSuccess = t.step_func(function (dir) {
- dir.createFile(fsTestFileName);
- assert_throws({name: expected}, function () {
- dir.createFile(fsTestFileName);
- }, expected + " should be thrown");
- 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>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 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:
- Danni Zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>File_createFile_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_createFile_misarg
-//==== LABEL Check if File::createFile() with missing mandatory argument throws exception
-//==== 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
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-var t = async_test(document.title), resolveSuccess, resolveError, fsTestFileName;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
- resolveSuccess = t.step_func(function (dir) {
- assert_throws(INVALID_VALUES_EXCEPTION, function () {
- dir.createFile();
- }, INVALID_VALUES_EXCEPTION + " 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>
\ No newline at end of file
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-
-<head>
-<title>File_created_attribute</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_created_attribute
-//==== PRIORITY P1
-//==== LABEL Check if File::created attribute exists, has type Date and is readonly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:created A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA AE AT ARO
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, fsTestFileName, fsTestFile, date, tmp;
-
-t.step(function (){
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- date = new Date();
- fsTestFile = dir.createFile(fsTestFileName);
- assert_own_property(fsTestFile, "created", "File does not own created property.");
- assert_true("created" in fsTestFile, "attribute created doesn't exist in provided object.");
- assert_type(fsTestFile.created, "Date", "Type of created is different.");
- tmp = fsTestFile.created;
- fsTestFile.created = new Date();
- assert_equals(tmp.getTime(), fsTestFile.created.getTime(), "created can be modified.");
- 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>
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>File_deleteDirectory</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_deleteDirectory
-//==== PRIORITY P1
-//==== LABEL Check if File::deleteDirectory() method can be called
-//==== SPEC: Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MMINA
-
-var t = async_test(document.title), resolveSuccess, resolveError, fsTestDirName, fsTestDir;
-
-t.step(function (){
-
- fsTestDirName = getDirName("filesystem");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestDir = dir.createDirectory(fsTestDirName);
- dir.deleteDirectory(fsTestDir.fullPath, true);
- 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>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 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:
- Danni zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>File_deleteDirectory_createDir_camera</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_deleteDirectory_createDir_camera
-//==== LABEL Check if File::createDirectory() creates a new directory in Camera and File::deleteDirectory() removes it
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MOA
-
-var fsTestDirName, fsTestDir, resolveSuccess, resolveError, deleteSuccess, deleteError, cameraDir,
- t = async_test(document.title);
-
-t.step(function (){
- fsTestDirName = getDirName("filesystemtest");
- deleteSuccess = t.step_func(function () {
- assert_throws(NOT_FOUND_EXCEPTION, function () {
- cameraDir.resolve(fsTestDirName);
- }, "directory wasn't deleted properly");
- t.done();
- });
-
- deleteError = t.step_func(function (error) {
- assert_unreached("deleteDirectory() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- cameraDir = dir;
- fsTestDir = dir.createDirectory(fsTestDirName);
- dir.deleteDirectory(fsTestDir.fullPath, true, deleteSuccess, deleteError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- tizen.filesystem.resolve("camera", 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>
-
-<head>
-<title>File_deleteDirectory_createDir_documents</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_deleteDirectory_createDir_documents
-//==== PRIORITY P1
-//==== LABEL Check if File::createDirectory() creates a new directory in Documents and File::deleteDirectory() removes it
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var fsTestDirName, fsTestDir, resolveSuccess, resolveError, deleteSuccess, deleteError, documentsDir,
- t = async_test(document.title);
-
-t.step(function (){
- fsTestDirName = getDirName("filesystem");
-
- deleteSuccess = t.step_func(function () {
- assert_throws(NOT_FOUND_EXCEPTION, function () {
- documentsDir.resolve(fsTestDirName);
- }, "directory wasn't deleted properly");
- t.done();
- });
-
- deleteError = t.step_func(function (error) {
- assert_unreached("deleteDirectory() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestDir = dir.createDirectory(fsTestDirName);
- dir.deleteDirectory(fsTestDir.fullPath, true, deleteSuccess, deleteError);
- });
-
- 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_deleteDirectory_createDir_downloads</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_deleteDirectory_createDir_downloads
-//==== PRIORITY P1
-//==== LABEL Check if File::createDirectory() creates a new directory in Downloads and File::deleteDirectory() removes it
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var fsTestDirName, fsTestDir, resolveSuccess, resolveError, deleteSuccess, deleteError, downloadsDir,
- t = async_test(document.title);
-
-t.step(function (){
- fsTestDirName = getDirName("filesystem");
-
- deleteSuccess = t.step_func(function () {
- assert_throws(NOT_FOUND_EXCEPTION, function () {
- downloadsDir.resolve(fsTestDirName);
- }, "directory wasn't deleted properly");
- t.done();
- });
-
- deleteError = t.step_func(function (error) {
- assert_unreached("deleteDirectory() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- downloadsDir = dir;
- fsTestDir = dir.createDirectory(fsTestDirName);
- dir.deleteDirectory(fsTestDir.fullPath, true, deleteSuccess, deleteError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- prepareForTesting(t, function () {
- tizen.filesystem.resolve("downloads", 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_deleteDirectory_createDir_images</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_deleteDirectory_createDir_images
-//==== LABEL Check if File::createDirectory() creates a new directory in Images and File::deleteDirectory() removes it
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var fsTestDirName, fsTestDir, resolveSuccess, resolveError, deleteSuccess, deleteError, imagesDir,
- t = async_test(document.title);
-
-t.step(function (){
- fsTestDirName = getDirName("filesystem");
-
- deleteSuccess = t.step_func(function () {
- assert_throws(NOT_FOUND_EXCEPTION, function () {
- imagesDir.resolve(fsTestDirName);
- }, "directory wasn't deleted properly");
- t.done();
- });
-
- deleteError = t.step_func(function (error) {
- assert_unreached("deleteDirectory() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- imagesDir = dir;
- fsTestDir = dir.createDirectory(fsTestDirName);
- dir.deleteDirectory(fsTestDir.fullPath, true, deleteSuccess, deleteError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- prepareForTesting(t, function () {
- tizen.filesystem.resolve("images", 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_deleteDirectory_createDir_music</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_deleteDirectory_createDir_music
-//==== LABEL Check if File::createDirectory() creates a new directory in Music and File::deleteDirectory() removes it
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var fsTestDirName, fsTestDir, resolveSuccess, resolveError, deleteSuccess, deleteError, musicDir,
- t = async_test(document.title);
-
-t.step(function (){
- fsTestDirName = getDirName("filesystem");
-
- deleteSuccess = t.step_func(function () {
- assert_throws(NOT_FOUND_EXCEPTION, function () {
- musicDir.resolve(fsTestDirName);
- }, "directory wasn't deleted properly");
- t.done();
- });
-
- deleteError = t.step_func(function (error) {
- assert_unreached("deleteDirectory() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- musicDir = dir;
- fsTestDir = dir.createDirectory(fsTestDirName);
- dir.deleteDirectory(fsTestDir.fullPath, true, deleteSuccess, deleteError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- prepareForTesting(t, function () {
- tizen.filesystem.resolve("music", 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_deleteDirectory_createDir_videos</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_deleteDirectory_createDir_videos
-//==== LABEL Check if File::createDirectory() creates a new directory in Videos and File::deleteDirectory() removes it
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var fsTestDirName, fsTestDir, resolveSuccess, resolveError, deleteSuccess, deleteError, videosDir,
- t = async_test(document.title);
-
-t.step(function (){
- fsTestDirName = getDirName("filesystem");
-
- deleteSuccess = t.step_func(function () {
- assert_throws(NOT_FOUND_EXCEPTION, function () {
- videosDir.resolve(fsTestDirName);
- }, "directory wasn't deleted properly");
- t.done();
- });
-
- deleteError = t.step_func(function (error) {
- assert_unreached("deleteDirectory() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- videosDir = dir;
- fsTestDir = dir.createDirectory(fsTestDirName);
- dir.deleteDirectory(fsTestDir.fullPath, true, deleteSuccess, deleteError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- prepareForTesting(t, function () {
- tizen.filesystem.resolve("videos", 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>
-
--->
-
-<html>
-
-<head>
-<title>File_deleteDirectory_exist</title>
-<script src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: File_deleteDirectory_exist
-//==== LABEL Check if File::deleteDirectory() method exists
-//==== PRIORITY P0
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA ME
-
-var t = async_test(document.title),
- resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_true("deleteDirectory" in dir, "method deleteDirectory exists");
- check_method_exists(dir, "deleteDirectory");
- 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) 2014 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:
- Danni zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>File_deleteDirectory_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_deleteDirectory_misarg
-//==== LABEL Check if File::deleteDirectory() throws exception with missing mandatory argument
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-var t = async_test(document.title), resolveSuccess, resolveError, fsTestDirName;
-
-t.step(function () {
- fsTestDirName = getDirName("filesystem");
- resolveSuccess = t.step_func(function (dir) {
- dir.createDirectory(fsTestDirName);
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- dir.deleteDirectory();
- }, TYPE_MISMATCH_EXCEPTION + " 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>
\ No newline at end of file
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>File_deleteDirectory_onerror_TypeMismatch</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_deleteDirectory_onerror_TypeMismatch
-//==== LABEL Check if File::deleteDirectory() throws exception for wrong type of onerror
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, conversionTable, deleteError, i, deleteSuccess, fsTestDirName, fsTestDir,
- exceptionName = "TypeMismatchError";
-
-t.step(function () {
- fsTestDirName = getDirName("filesystem");
-
- deleteSuccess = t.step_func(function () {
- assert_unreached("successCalback should not be called");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestDir = dir.createDirectory(fsTestDirName);
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- deleteError = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- dir.deleteDirectory(fsTestDir.fullPath, deleteSuccess, deleteError);
- }, exceptionName + " should be thrown - given incorrect errorCallback.");
- }
- 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>
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>File_deleteDirectory_onerror_invalid_cb</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_deleteDirectory_onerror_invalid_cb
-//==== LABEL Check if File::deleteDirectory() throws exception for wrong onerror
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MTCB
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, deleteDirectorySuccess, deleteDirectoryError, fsTestDirName, fsTestDir;
-
-t.step(function () {
- fsTestDirName = getDirName("filesystem");
-
- deleteDirectoryError = {
- onerror: t.step_func(function () {
- assert_unreached("Invalid callback invoked: ");
- })
- };
-
- deleteDirectorySuccess = t.step_func(function () {
- assert_unreached("deleteDirectorySuccess should not be called");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestDir = dir.createDirectory(fsTestDirName);
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- dir.deleteDirectory(fsTestDir.fullPath, deleteDirectorySuccess, deleteDirectoryError);
- }, "given incorrect errorCallback");
- 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>
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>File_deleteDirectory_onsuccess_TypeMismatch</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_deleteDirectory_onsuccess_TypeMismatch
-//==== LABEL Check if File::deleteDirectory() throws exception for wrong type of onsuccess
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title), deleteSuccess,
- resolveSuccess, resolveError, conversionTable, i, exceptionName = "TypeMismatchError", fsTestDirName, fsTestDir;
-
-t.step(function (){
- fsTestDirName = getDirName("filesystem");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestDir = dir.createDirectory(fsTestDirName);
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- deleteSuccess = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- dir.deleteDirectory(fsTestDir.fullPath, false, deleteSuccess);
- }, exceptionName + " should be thrown - given incorrect successCallback.");
- }
- 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>
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>File_deleteDirectory_onsuccess_invalid_cb</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_deleteDirectory_onsuccess_invalid_cb
-//==== LABEL Check if File::deleteDirectory() throws exception for wrong onsuccess
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MTCB
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, deleteSuccess, fsTestDirName, fsTestDir;
-
-t.step(function (){
- fsTestDirName = getDirName("filesystem");
-
- deleteSuccess = {
- onsuccess: t.step_func(function () {
- assert_unreached("Invalid callback invoked: ");
- })
- };
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestDir = dir.createDirectory(fsTestDirName);
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- dir.deleteDirectory(fsTestDir.fullPath, false, deleteSuccess);
- }, "given incorrect successCallback");
- 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>
+++ /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_deleteDirectory_with_empty_path</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_deleteDirectory_with_empty_path
-//==== PRIORITY P1
-//==== LABEL Check if File::deleteDirectory() calls errorCallback when given directoryPath is empty
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteDirectory 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), resolveError, resolveSuccess, deleteDirectoryError, deleteDirectorySuccess,
- expected = "NotFoundError";
-
-t.step(function () {
-
- deleteDirectorySuccess = t.step_func(function () {
- assert_unreached("deleteDirectorySuccess: deleteDirectory() should invoke error callback");
- });
-
- deleteDirectoryError = t.step_func(function (error) {
- assert_equals(error.name, expected, "expect throw an exception");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (root) {
- root.deleteDirectory("", false, deleteDirectorySuccess, deleteDirectoryError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve_root_location() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- tizen.filesystem.resolve(TEST_ROOT_LOCATION, resolveSuccess, resolveError);
-});
-
-</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_deleteDirectory_with_file_handle</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_deleteDirectory_with_file_handle
-//==== LABEL Check if File::deleteDirectory() calls errorCallback when called on File object representing file, not a directory
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MERRCB
-
-
-var resolveSuccess, resolveError, deleteSuccess, deleteError, fsTestFileName, fsTestFile, documentsDir,
- expected = "InvalidValuesError", t = async_test(document.title);
-
-t.step(function (){
- fsTestFileName = getFileName("filesystem.txt");
-
- deleteSuccess = t.step_func(function () {
- assert_unreached("delete a dir with file handle should throw an exception");
- });
-
- deleteError = t.step_func(function (error) {
- fsTestFile = documentsDir.resolve(fsTestFileName);
- assert_equals(fsTestFile.name, fsTestFileName, "file was deleted");
- assert_true(fsTestFile.isFile, "file was deleted");
- assert_equals(error.name, expected, "expect throw an exception");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- dir.deleteDirectory(fsTestFile.fullPath, true, deleteSuccess, deleteError);
- });
-
- 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_deleteDirectory_with_null_callbacks</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_deleteDirectory_with_null_callbacks
-//==== PRIORITY P1
-//==== LABEL Check if File::deleteDirectory() method can be called with null onsuccess and onerror
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MMINA
-
-var t = async_test(document.title), resolveSuccess, resolveError, fsTestDirName, fsTestDir;
-t.step(function () {
-
- fsTestDirName = getDirName("filesystem");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestDir = dir.createDirectory(fsTestDirName);
- dir.deleteDirectory(fsTestDir.fullPath, true, null, null);
- 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(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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
-
--->
-
-<html>
-
-<head>
-<title>File_deleteDirectory_with_onerror</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_deleteDirectory_with_onerror
-//==== PRIORITY P1
-//==== LABEL Check if File::deleteDirectory() method calls onerror properly (when removing non-existing directory)
-//==== SPEC: Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MERRCB
-
-var resolveSuccess, resolveError, deleteDirectorySuccess, deleteDirectoryError, fsTestDirName,
- expected = "NotFoundError", t = async_test(document.title);
-
-t.step(function () {
- fsTestDirName = getDirName("filesystemNoExist");
-
- deleteDirectorySuccess = t.step_func(function () {
- assert_unreached("deleteDirectorySuccess: deleteDirectoryError should be invoked");
- });
-
- deleteDirectoryError = t.step_func(function (error) {
- assert_equals(error.name, expected, "expect throw an exception");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- dir.deleteDirectory(fsTestDirName, true, deleteDirectorySuccess, deleteDirectoryError);
- });
-
- 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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>File_deleteDirectory_with_onsuccess</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_deleteDirectory_with_onsuccess
-//==== PRIORITY P1
-//==== LABEL Check if File::deleteDirectory() method with onsuccess optional argument works properly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:deleteDirectory M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MAST MR
-
-var t = async_test(document.title), retVal = null,
- resolveSuccess, resolveError, deleteSuccess, deleteError, fsTestDirName, fsTestDir, documentsDir;
-
-t.step(function () {
- fsTestDirName = getDirName("filesystem");
-
- deleteSuccess = t.step_func(function () {
- assert_equals(retVal, undefined, "incorrect returned value");
- assert_throws(NOT_FOUND_EXCEPTION, function () {
- documentsDir.resolve(fsTestDirName);
- }, "directory wasn't deleted properly");
- t.done();
- });
-
- deleteError = t.step_func(function (error) {
- assert_unreached("deleteDirectory() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestDir = dir.createDirectory(fsTestDirName);
- retVal = dir.deleteDirectory(fsTestDir.fullPath, true, deleteSuccess, deleteError);
- });
-
- 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_deleteFile</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_deleteFile
-//==== PRIORITY P1
-//==== LABEL Check if File::deleteFile() method works properly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MAST MR
-
-var t = async_test(document.title), fsTestFileName, fsTestFile, i, retVal = null,
- resolveSuccess, resolveError, listFilesSuccess, listFilesError, documentsDir, deleteSuccess;
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- listFilesSuccess = t.step_func(function (files) {
- for (i = 0; i < files.length; i++) {
- if (files[i].name === fsTestFileName) {
- assert_unreached("File deletion failed");
- }
- }
- t.done();
- });
-
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- deleteSuccess = t.step_func(function () {
- assert_equals(retVal, undefined, "incorrect returned value");
- documentsDir.listFiles(listFilesSuccess, listFilesError);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- retVal = dir.deleteFile(fsTestFile.fullPath, deleteSuccess);
- });
-
- 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) 2014 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:
- Danni zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>File_deleteFile_copyFile_camera</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_deleteFile_copyFile_camera
-//==== LABEL Check if you can create a new file in Camera, copy it into Downloads, then request removing it
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MOA
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- cameraDir, resolveSuccess, resolveError, copyToSuccess, copyToError,
- deleteFileSuccess, deleteFileError;
-
-t.step(function () {
- fsTestFileName = getFileName("fileSystem-File01.mp3");
-
- deleteFileSuccess = t.step_func(function () {
- t.done();
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_unreached("deleteFile() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- copyToSuccess = t.step_func(function () {
- cameraDir.deleteFile(fsTestFile.fullPath, deleteFileSuccess, deleteFileError);
- });
-
- copyToError = t.step_func(function (error) {
- assert_unreached("copyTo() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- cameraDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- dir.copyTo(fsTestFile.fullPath, "downloads/", true, copyToSuccess, copyToError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- tizen.filesystem.resolve("camera", 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>
-
--->
-
-<html>
-<head>
-<title>File_deleteFile_copyFile_downloads</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_deleteFile_copyFile_downloads
-//==== PRIORITY P1
-//==== LABEL Check if you can create a new file in Document, copy it into Downloads, then request removing it
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- documentsDir, resolveSuccess, resolveError, copyToSuccess, copyToError,
- deleteFileSuccess, deleteFileError;
-
-t.step(function () {
- fsTestFileName = getFileName("fileSystem-File01.txt");
-
- deleteFileSuccess = t.step_func(function () {
- t.done();
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_unreached("deleteFile() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- copyToSuccess = t.step_func(function () {
- documentsDir.deleteFile(fsTestFile.fullPath, deleteFileSuccess, deleteFileError);
- });
-
- copyToError = t.step_func(function (error) {
- assert_unreached("copyTo() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- dir.copyTo(fsTestFile.fullPath, "downloads/", 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("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_deleteFile_copyFile_images</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_deleteFile_copyFile_images
-//==== PRIORITY P1
-//==== LABEL Check if you can create a new file in Images, copy it into Downloads, then request removing it
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- documentsDir, resolveSuccess, resolveError, copyToSuccess, copyToError,
- deleteFileSuccess, deleteFileError;
-
-t.step(function () {
- fsTestFileName = getFileName("fileSystem-File01.png");
-
- deleteFileSuccess = t.step_func(function () {
- t.done();
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_unreached("deleteFile() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- copyToSuccess = t.step_func(function () {
- documentsDir.deleteFile(fsTestFile.fullPath, deleteFileSuccess, deleteFileError);
- });
-
- copyToError = t.step_func(function (error) {
- assert_unreached("copyTo() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- dir.copyTo(fsTestFile.fullPath, "downloads/", 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("images", 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_deleteFile_copyFile_music</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_deleteFile_copyFile_music
-//==== PRIORITY P1
-//==== LABEL Check if you can create a new file in Music, copy it into Downloads, then request removing it
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- documentsDir, resolveSuccess, resolveError, copyToSuccess, copyToError,
- deleteFileSuccess, deleteFileError;
-
-t.step(function () {
- fsTestFileName = getFileName("fileSystem-File01.mp3");
-
- deleteFileSuccess = t.step_func(function () {
- t.done();
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_unreached("deleteFile() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- copyToSuccess = t.step_func(function () {
- documentsDir.deleteFile(fsTestFile.fullPath, deleteFileSuccess, deleteFileError);
- });
-
- copyToError = t.step_func(function (error) {
- assert_unreached("copyTo() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- dir.copyTo(fsTestFile.fullPath, "downloads/", 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("music", 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_deleteFile_copyFile_videos</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_deleteFile_copyFile_videos
-//==== PRIORITY P1
-//==== LABEL Check if you can create a new file in Video, copy it into Downloads, then request removing it
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- documentsDir, resolveSuccess, resolveError, copyToSuccess, copyToError,
- deleteFileSuccess, deleteFileError;
-
-t.step(function () {
- fsTestFileName = getFileName("fileSystem-File01.mp3");
-
- deleteFileSuccess = t.step_func(function () {
- t.done();
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_unreached("deleteFile() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- copyToSuccess = t.step_func(function () {
- documentsDir.deleteFile(fsTestFile.fullPath, deleteFileSuccess, deleteFileError);
- });
-
- copyToError = t.step_func(function (error) {
- assert_unreached("copyTo() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- dir.copyTo(fsTestFile.fullPath, "downloads/", 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("videos", 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_deleteFile_createFile</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_deleteFile_createFile
-//==== PRIORITY P1
-//==== LABEL Check if you can create a new file in Documents, copy it into Downloads, then request removing it
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- resolveSuccess, resolveError, deleteFileSuccess, deleteFileError;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- deleteFileSuccess = t.step_func(function () {
- t.done();
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_unreached("deleteFile() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- dir.deleteFile(fsTestFile.fullPath, deleteFileSuccess, deleteFileError);
- });
-
- 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>
- Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>File_deleteFile_exist</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_deleteFile_exist
-//==== LABEL Check if File::deleteFile() method exists
-//==== PRIORITY P0
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA ME
-
-var t = async_test(document.title),
- resolveSuccess, resolveError;
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_true("deleteFile" in dir, "method deleteFile exists");
- check_method_exists(dir, "deleteFile");
- 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) 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_deleteFile_listDocumentsFiles</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_deleteFile_listDocumentsFiles
-//==== PRIORITY P1
-//==== LABEL Check if you can create directories and file in Documents, list them, then request deleting the directory and the file
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var t = async_test(document.title), fsTestDirName1, documentsDir,
- fsTestDirName2, fsTestFileName, fsTestDir1, fsTestDir2, deleteDirError, deleteDirSuccess,
- fsTestFile, resolveSuccess, resolveError, listFilesSuccess, listFilesError,
- deleteFileSuccess, deleteFileError;
-
-t.step(function () {
- fsTestDirName1 = getFileName("filesystem");
- fsTestDirName2 = getFileName("inside");
- fsTestFileName = getFileName("filesystem.txt");
-
- deleteFileSuccess = t.step_func(function () {
- t.done();
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_unreached("deleteFile() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- deleteDirSuccess = t.step_func(function () {
- fsTestDir1.deleteFile(fsTestFile.fullPath, deleteFileSuccess, deleteFileError);
- });
-
- deleteDirError = t.step_func(function (error) {
- assert_unreached("deleteDir() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- listFilesSuccess = t.step_func(function (files) {
- assert_true(files.length > 0, "Files not found");
- fsTestDir1.deleteDirectory(fsTestDir2.fullPath, true, deleteDirSuccess, deleteDirError);
- });
-
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestDir1 = dir.createDirectory(fsTestDirName1);
- fsTestFile = fsTestDir1.createFile(fsTestFileName);
- fsTestDir2 = fsTestDir1.createDirectory(fsTestDirName2);
- fsTestDir1.listFiles(listFilesSuccess, listFilesError);
- });
-
- 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_deleteFile_listDownloadsFiles</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_deleteFile_listDownloadsFiles
-//==== PRIORITY P1
-//==== LABEL Check if you can create directories and file in Downloads, list them, then request deleting the directory and the file
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var t = async_test(document.title), fsTestDirName1, documentsDir,
- fsTestDirName2, fsTestFileName, fsTestDir1, fsTestDir2, deleteDirError, deleteDirSuccess,
- fsTestFile, resolveSuccess, resolveError, listFilesSuccess, listFilesError,
- deleteFileSuccess, deleteFileError;
-
-t.step(function () {
- fsTestDirName1 = getFileName("filesystem");
- fsTestDirName2 = getFileName("inside");
- fsTestFileName = getFileName("filesystem.txt");
-
- deleteFileSuccess = t.step_func(function () {
- t.done();
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_unreached("deleteFile() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- deleteDirSuccess = t.step_func(function () {
- fsTestDir1.deleteFile(fsTestFile.fullPath, deleteFileSuccess, deleteFileError);
- });
-
- deleteDirError = t.step_func(function (error) {
- assert_unreached("deleteDir() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- listFilesSuccess = t.step_func(function (files) {
- assert_true(files.length > 0, "Files not found");
- fsTestDir1.deleteDirectory(fsTestDir2.fullPath, true, deleteDirSuccess, deleteDirError);
- });
-
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestDir1 = dir.createDirectory(fsTestDirName1);
- fsTestFile = fsTestDir1.createFile(fsTestFileName);
- fsTestDir2 = fsTestDir1.createDirectory(fsTestDirName2);
- fsTestDir1.listFiles(listFilesSuccess, listFilesError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- prepareForTesting(t, function () {
- tizen.filesystem.resolve("downloads", 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_deleteFile_listImagsFiles</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_deleteFile_listImagsFiles
-//==== PRIORITY P1
-//==== LABEL Check if you can create directories and file in Images, list them, then request deleting the directory and the file
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var t = async_test(document.title), fsTestDirName1, documentsDir,
- fsTestDirName2, fsTestFileName, fsTestDir1, fsTestDir2, deleteDirError, deleteDirSuccess,
- fsTestFile, resolveSuccess, resolveError, listFilesSuccess, listFilesError,
- deleteFileSuccess, deleteFileError;
-
-t.step(function () {
- fsTestDirName1 = getDirName("filesystem");
- fsTestDirName2 = getDirName("inside");
- fsTestFileName = getFileName("filesystem.txt");
-
- deleteFileSuccess = t.step_func(function () {
- t.done();
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_unreached("deleteFile() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- deleteDirSuccess = t.step_func(function () {
- fsTestDir1.deleteFile(fsTestFile.fullPath, deleteFileSuccess, deleteFileError);
- });
-
- deleteDirError = t.step_func(function (error) {
- assert_unreached("deleteDir() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- listFilesSuccess = t.step_func(function (files) {
- assert_true(files.length > 0, "Files not found");
- fsTestDir1.deleteDirectory(fsTestDir2.fullPath, true, deleteDirSuccess, deleteDirError);
- });
-
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestDir1 = dir.createDirectory(fsTestDirName1);
- fsTestFile = fsTestDir1.createFile(fsTestFileName);
- fsTestDir2 = fsTestDir1.createDirectory(fsTestDirName2);
- fsTestDir1.listFiles(listFilesSuccess, listFilesError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- prepareForTesting(t, function () {
- tizen.filesystem.resolve("images", 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_deleteFile_listMusicFiles</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_deleteFile_listMusicFiles
-//==== PRIORITY P1
-//==== LABEL Check if you can create directories and file in Music, list them, then request deleting the directory and the file
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var t = async_test(document.title), fsTestDirName1, documentsDir,
- fsTestDirName2, fsTestFileName, fsTestDir1, fsTestDir2, deleteDirError, deleteDirSuccess,
- fsTestFile, resolveSuccess, resolveError, listFilesSuccess, listFilesError,
- deleteFileSuccess, deleteFileError;
-
-t.step(function () {
- fsTestDirName1 = getFileName("filesystem");
- fsTestDirName2 = getFileName("inside");
- fsTestFileName = getFileName("filesystem.txt");
-
- deleteFileSuccess = t.step_func(function () {
- t.done();
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_unreached("deleteFile() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- deleteDirSuccess = t.step_func(function () {
- fsTestDir1.deleteFile(fsTestFile.fullPath, deleteFileSuccess, deleteFileError);
- });
-
- deleteDirError = t.step_func(function (error) {
- assert_unreached("deleteDir() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- listFilesSuccess = t.step_func(function (files) {
- assert_true(files.length > 0, "Files not found");
- fsTestDir1.deleteDirectory(fsTestDir2.fullPath, true, deleteDirSuccess, deleteDirError);
- });
-
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestDir1 = dir.createDirectory(fsTestDirName1);
- fsTestFile = fsTestDir1.createFile(fsTestFileName);
- fsTestDir2 = fsTestDir1.createDirectory(fsTestDirName2);
- fsTestDir1.listFiles(listFilesSuccess, listFilesError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- prepareForTesting(t, function () {
- tizen.filesystem.resolve("music", 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_deleteFile_listVideosfiles</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_deleteFile_listVideosfiles
-//==== PRIORITY P1
-//==== LABEL Check if you can create directories and file in Videos, list them, then request deleting the directory and the file
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var t = async_test(document.title), fsTestDirName1, documentsDir,
- fsTestDirName2, fsTestFileName, fsTestDir1, fsTestDir2, deleteDirError, deleteDirSuccess,
- fsTestFile, resolveSuccess, resolveError, listFilesSuccess, listFilesError,
- deleteFileSuccess, deleteFileError;
-
-t.step(function () {
- fsTestDirName1 = getFileName("filesystem");
- fsTestDirName2 = getFileName("inside");
- fsTestFileName = getFileName("filesystem.txt");
-
- deleteFileSuccess = t.step_func(function () {
- t.done();
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_unreached("deleteFile() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- deleteDirSuccess = t.step_func(function () {
- fsTestDir1.deleteFile(fsTestFile.fullPath, deleteFileSuccess, deleteFileError);
- });
-
- deleteDirError = t.step_func(function (error) {
- assert_unreached("deleteDir() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- listFilesSuccess = t.step_func(function (files) {
- assert_true(files.length > 0, "Files not found");
- fsTestDir1.deleteDirectory(fsTestDir2.fullPath, true, deleteDirSuccess, deleteDirError);
- });
-
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestDir1 = dir.createDirectory(fsTestDirName1);
- fsTestFile = fsTestDir1.createFile(fsTestFileName);
- fsTestDir2 = fsTestDir1.createDirectory(fsTestDirName2);
- fsTestDir1.listFiles(listFilesSuccess, listFilesError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- prepareForTesting(t, function () {
- tizen.filesystem.resolve("videos", resolveSuccess, resolveError, "rw");
- });
-});
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 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:
- Xu sida <sida.xu@samsung.com>
-
--->
-<html>
-<head>
-<title>File_deleteFile_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_deleteFile_misarg
-//==== LABEL Check if File::deleteFile() method throws exception with missing mandatory argument
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-var t = async_test(document.title), resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- dir.deleteFile();
- }, TYPE_MISMATCH_EXCEPTION + " should be thrown - missing type");
- 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>
\ No newline at end of file
+++ /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_deleteFile_onerror_TypeMismatch</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_deleteFile_onerror_TypeMismatch
-//==== LABEL Check if File::deleteFile() throws exception for wrong type of onerror
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, conversionTable, deleteFileError, i, deleteFileSuccess,
- exceptionName = "TypeMismatchError";
-
-t.step(function () {
- deleteFileSuccess = t.step_func(function () {
- assert_unreached("successCalback should not be called");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- deleteFileError = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- dir.deleteFile("verybadfile.txt", deleteFileSuccess, deleteFileError);
- }, exceptionName + " should be thrown - given incorrect errorCallback.");
- }
- 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_deleteFile_onerror_invalid_cb</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_deleteFile_onerror_invalid_cb
-//==== LABEL Check if File::deleteFile() throws exception for wrong onerror
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MTCB
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- resolveSuccess, resolveError, deleteFileSuccess, deleteFileError;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- deleteFileError = {
- onerror: t.step_func(function () {
- assert_unreached("Invalid callback invoked: ");
- })
- };
- deleteFileSuccess = t.step_func(function () {
- assert_unreached("successCallback should not be called");
- });
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createDirectory(fsTestFileName);
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- dir.deleteFile(fsTestFile.fullPath, deleteFileSuccess, deleteFileError);
- }, "given incorrect errorCallback");
- 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>
+++ /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_deleteFile_onsuccess_TypeMismatch</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_deleteFile_onsuccess_TypeMismatch
-//==== LABEL Check if File::deleteFile() throws exception for wrong type of onsuccess
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title), deleteFileSuccess, fsTestFileName,
- resolveSuccess, resolveError, conversionTable, i, exceptionName = "TypeMismatchError", fsTestFile;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- deleteFileSuccess = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- dir.deleteFile(fsTestFile.fullPath, deleteFileSuccess);
- }, exceptionName + " should be thrown - given incorrect successCallback.");
- }
- 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>
+++ /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_deleteFile_onsuccess_invalid_cb</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_deleteFile_onsuccess_invalid_cb
-//==== LABEL Check if File::deleteFile() throws exception for wrong onsuccess
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MTCB
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- resolveSuccess, resolveError, deleteFileSuccess;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- deleteFileSuccess = {
- onsuccess: t.step_func(function () {
- assert_unreached("Invalid callback invoked: ");
- })
- };
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- dir.deleteFile(fsTestFile.fullPath, deleteFileSuccess);
- }, "given incorrect successCallback");
- 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>
+++ /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_deleteFile_with_dir_handle</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_deleteFile_with_dir_handle
-//==== LABEL Check if File::deleteFile() calls errorCallback when called on File object representing file, not a directory
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile 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), fsTestDirName, fsTestDir,
- resolveSuccess, resolveError, deleteFileSuccess, deleteFileError, expected = "InvalidValuesError",
- documentsDir;
-
-t.step(function () {
- fsTestDirName = getFileName("filesystem");
-
- deleteFileSuccess = t.step_func(function () {
- assert_unreached("There is no exception thrown when delete a file with file handle");
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_equals(error.name, expected, "expect throw an exception");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestDir= dir.createDirectory(fsTestDirName);
- dir.deleteFile(fsTestDir.fullPath, deleteFileSuccess, deleteFileError);
- });
-
- 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_deleteFile_with_nonexist</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_deleteFile_with_nonexist
-//==== LABEL Check if File::deleteFile() calls errorCallback when given filePath does not exist
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MERRCB
-
-
-var expected = "NotFoundError", t = async_test(document.title),
- resolveSuccess, resolveError, deleteFileSuccess, deleteFileError, fsTestFileName;
-
-t.step(function () {
- fsTestFileName = getFileName("noExistFile.txt");
-
- deleteFileSuccess = t.step_func(function () {
- assert_unreached("This function should not be invoked");
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_equals(error.name, expected, "should throw an exception");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- dir.deleteFile("documents/" + fsTestFileName, deleteFileSuccess, deleteFileError);
- });
-
- 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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>File_deleteFile_with_onerror</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_deleteFile_with_onerror
-//==== PRIORITY P1
-//==== LABEL Check if File::deleteFile() method calls errorCallback properly (when removing non-existing file)
-//==== SPEC: Tizen Web API:IO:Filesystem:File:deleteFile 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),
- resolveSuccess, resolveError, deleteFileError, deleteFileSuccess, fsTestFileName;
-
-t.step(function () {
- fsTestFileName = getFileName("noExistFile.txt");
-
- deleteFileError = t.step_func(function () {
- t.done();
- });
- deleteFileSuccess = t.step_func(function () {
- assert_unreached("onerroroptional callback should be called");
- });
- resolveSuccess = t.step_func(function (dir) {
- dir.deleteFile("documents/" + fsTestFileName, deleteFileSuccess, deleteFileError);
- });
- 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_deleteFile_with_onsuccess</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_deleteFile_with_onsuccess
-//==== PRIORITY P1
-//==== LABEL Check if File::deleteFile() method calls given onsuccess callback
-//==== SPEC: Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- resolveSuccess, resolveError, deleteFileSuccess;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- deleteFileSuccess = t.step_func(function () {
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- try {
- dir.deleteFile(fsTestFile.fullPath, deleteFileSuccess);
- } catch (e) {
- assert_unreached("deleteFile() exeption: name: " + e.name + ", msg: " + e.message);
- }
- });
-
- 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_deleteFile_with_vaild_callbacks</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_deleteFile_with_vaild_callbacks
-//==== PRIORITY P1
-//==== LABEL Check if File::deleteFile() can be called with onsuccess and onerror
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var t = async_test(document.title),
- deleteFileSuccess, deleteFileError, documentsDir,
- resolveSuccess, resolveError, fsTestFileName, fsTestFile;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- deleteFileSuccess = t.step_func(function () {
- t.done();
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_unreached("delete() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- dir.deleteFile(fsTestFile.fullPath, deleteFileSuccess, deleteFileError);
- });
-
- 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_deleteFile_with_valid_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_deleteFile_with_valid_filePath
-//==== PRIORITY P1
-//==== LABEL Check if File::deleteFile() method can be called without onsuccess
-//==== SPEC Tizen Web API:IO:Filesystem:File:deleteFile M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MMINA
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- resolveSuccess, resolveError;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- dir.deleteFile(fsTestFile.fullPath);
- 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>
+++ /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_extend</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_extend
-//==== LABEL Check if instance of File can be extended with new property
-//==== PRIORITY: P3
-//==== SPEC Tizen Web API:IO:Filesystem:File:File U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA OBX
-
-var t = async_test(document.title),
- resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- check_extensibility(dir);
- 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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>File_fileSize_attribute</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_fileSize_attribute
-//==== PRIORITY P1
-//==== LABEL Check if File::fileSize attribute exists, has type Number and is readonly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:fileSize A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA AE AT ARO
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- resolveSuccess, resolveError;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- assert_own_property(fsTestFile, "fileSize", "File does not own fileSize property.");
- check_readonly(fsTestFile, "fileSize", 0, "unsigned long long", fsTestFile.fileSize + 512);
- assert_equals(dir.fileSize, undefined, "fileSize of directory should be undefined");
- 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>
+++ /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_fullPath_attribute</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_fullPath_attribute
-//==== PRIORITY P1
-//==== LABEL Check if File::fullPath attribute exists, has type DOMString and is readonly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:fullPath A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA AE AT ARO
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- resolveSuccess, resolveError;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- assert_own_property(fsTestFile, "fullPath", "File does not own fullPath property.");
- check_readonly(fsTestFile, "fullPath", fsTestFile.fullPath, "string", "images");
- 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>
+++ /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_isDirectory_attribute</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_isDirectory_attribute
-//==== PRIORITY P1
-//==== LABEL Check if File::isDirectory attribute exists, has type Boolean and is readonly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:isDirectory A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA AE AT ARO
-
-var t = async_test(document.title),
- resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_own_property(dir, "isDirectory", "File does not own isDirectory property.");
- check_readonly(dir, "isDirectory", true, "boolean", false);
- 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_isFile_attribute</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_isFile_attribute
-//==== PRIORITY P1
-//==== LABEL Check if File::isFile attribute exists, has type Boolean and is readonly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:isFile A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA AE AT ARO
-
-var t = async_test(document.title),
- resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_own_property(dir, "isFile", "File does not own isFile property.");
- check_readonly(dir, "isFile", false, "boolean", true);
- 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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>File_length_attribute</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_length_attribute
-//==== PRIORITY P1
-//==== LABEL Check if File::length attribute exists, has type Number and is readonly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:length A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA AE AT ARO
-
-var t = async_test(document.title), fsTestFileName = getFileName("filesystem.txt"),
- resolveSuccess, resolveError, fsTestFile;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_own_property(dir, "length", "File does not own length property.");
- check_readonly(dir, "length", dir.length, "long", dir.length + 10);
- fsTestFile = dir.createFile(fsTestFileName);
- assert_equals(fsTestFile.length, undefined, "length of file should be undefined");
- 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>
+++ /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_listFiles</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: File_listFiles
-//==== PRIORITY P1
-//==== LABEL Check if File::listFiles() method works properly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:listFiles M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MMINA MR
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, listFilesSuccess, retVal=null;
-t.step(function () {
- listFilesSuccess = t.step_func(function (files) {
- assert_type(files, "array", "files should be array");
- assert_equals(retVal, undefined, "incorrect returned value");
- t.done();
- });
- resolveSuccess = t.step_func(function (dir) {
- retVal = dir.listFiles(listFilesSuccess);
- });
- 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_listFiles_createFiles</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_listFiles_createFiles
-//==== PRIORITY P1
-//==== LABEL Check if you can create a new directory and then list files in this directory
-//==== SPEC Tizen Web API:IO:Filesystem:File:listFiles M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, listFilesSuccess, listFilesError,
- fsTestDirName, fsTestDir, documentsDir, fsTestFileName1, fsTestFileName2;
-
-t.step(function () {
- fsTestDirName = getDirName("filesystem");
- fsTestFileName1 = getFileName("filesystem1.txt");
- fsTestFileName2 = getFileName("filesystem2.txt");
-
- listFilesSuccess = t.step_func(function (files) {
- assert_equals(files.length, 2, "list files");
- t.done();
- });
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestDir = dir.createDirectory(fsTestDirName);
- fsTestDir.createFile(fsTestFileName1);
- fsTestDir.createFile(fsTestFileName2);
- fsTestDir.listFiles(listFilesSuccess, listFilesError);
- });
-
- 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>
- Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>File_listFiles_exist</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: File_listFiles_exist
-//==== LABEL Check if File::listFiles() method exists
-//==== PRIORITY P0
-//==== SPEC Tizen Web API:IO:Filesystem:File:listFiles M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA ME
-
-var t = async_test(document.title), resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_true("listFiles" in dir, "method listFiles exists");
- check_method_exists(dir, "listFiles");
- 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_listFiles_filter_TypeMismatch</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: File_listFiles_filter_TypeMismatch
-//==== LABEL Check if File::listFiles() method throws exception for wrong type of filter
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:listFiles M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title), listFilesSuccess,
- resolveSuccess, resolveError, conversionTable, i, exceptionName = "TypeMismatchError",
- filter;
-
-t.step(function () {
- listFilesSuccess = t.step_func(function () {});
- resolveSuccess = t.step_func(function (dir) {
- conversionTable = getTypeConversionExceptions("object", true);
- for (i = 0; i < conversionTable.length; i++) {
- filter = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({
- name: exceptionName
- }, function () {
- dir.listFiles(listFilesSuccess, null, filter);
- }, exceptionName + " should be thrown - given incorrect filter.");
- }
- 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:
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>File_listFiles_filter_empty</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: File_listFiles_filter_empty
-//==== LABEL Check if File::listFiles() can be called with empty object as filter argument
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:listFiles M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MTD
-
-var t = async_test(document.title), resolveSuccess, resolveError,
- listFilesSuccess, listFilesError;
-
-t.step(function () {
-
- listFilesSuccess = t.step_func(function (files) {
- t.done();
- });
-
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- dir.listFiles(listFilesSuccess, listFilesError, {});
- });
-
- 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_listFiles_missarg</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: File_listFiles_missarg
-//==== PRIORITY: P2
-//==== LABEL Check if File::listFiles() with missing mandatory argument throws exception
-//==== SPEC: Tizen Web API:IO:Filesystem:File:listFiles M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MMA
-
-var t = async_test(document.title), resolveSuccess, resolveError;
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- dir.listFiles();
- });
- 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_listFiles_onerror_TypeMismatch</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_listFiles_onerror_TypeMismatch
-//==== LABEL Check if File::listFiles() throws exception for wrong type of onerror
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:listFiles M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, conversionTable, listFilesError, i, fsTestFileName,
- fsTestFile, listFilesSuccess, exceptionName = "TypeMismatchError";
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- listFilesSuccess = t.step_func(function () {
- assert_unreached("successCalback should not be called");
- });
- resolveSuccess = t.step_func(function (dir) {
- conversionTable = getTypeConversionExceptions("functionObject", true);
- fsTestFile = dir.createFile(fsTestFileName);
- for (i = 0; i < conversionTable.length; i++) {
- listFilesError = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- fsTestFile.listFiles(listFilesSuccess, listFilesError);
- }, exceptionName + " should be thrown - given incorrect errorCallback.");
- }
- 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>
+++ /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_listFiles_onerror_invalid_cb</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_listFiles_onerror_invalid_cb
-//==== LABEL Check if File::listFiles() throws exception for wrong onerror
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:listFiles M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MTCB
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- resolveSuccess, resolveError, listFilesSuccess, listFilesError;
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- listFilesError = {
- onerror: t.step_func(function () {
- assert_unreached("invalid errorCallback should not be called");
- })
- };
- listFilesSuccess = t.step_func(function () {
- assert_unreached("successCallback should not be called");
- });
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- fsTestFile.listFiles(listFilesSuccess, listFilesError);
- }, "given incorrect errorCallback");
- 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>
+++ /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_listFiles_onsuccess_TypeMismatch</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_listFiles_onsuccess_TypeMismatch
-//==== LABEL Check if File::listFiles() throws exception for wrong type of onsuccess
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:listFiles M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title), listFilesSuccess,
- resolveSuccess, resolveError, conversionTable, i, exceptionName = "TypeMismatchError";
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- conversionTable = getTypeConversionExceptions("functionObject", false);
- for (i = 0; i < conversionTable.length; i++) {
- listFilesSuccess = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({
- name: exceptionName
- }, function () {
- dir.listFiles(listFilesSuccess);
- }, exceptionName + " should be thrown - given incorrect successCallback.");
- }
- 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_listFiles_onsuccess_invalid_cb</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_listFiles_onsuccess_invalid_cb
-//==== LABEL Check if File::listFiles() throws exception for wrong onsuccess
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:listFiles M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MTCB
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, listFilesSuccess;
-
-t.step(function () {
- listFilesSuccess = {
- onsuccess: t.step_func(function () {
- assert_unreached("Invalid callback invoked: ");
- })
- };
-
- resolveSuccess = t.step_func(function (dir) {
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- dir.listFiles(listFilesSuccess);
- }, "given incorrect successCallback");
- 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) 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_listFiles_with_file_handle</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_listFiles_with_file_handle
-//==== LABEL Check if File::listFiles() calls errorCallback when called on File object representing file, not a directory
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:listFiles M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MERRCB
-
-
-var resolveSuccess, resolveError, listFilesSuccess, listFilesError, fsTestFileName, fsTestFile,
- documentsDir, t = async_test(document.title), expected = "IOError";
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- listFilesSuccess = t.step_func(function () {
- assert_unreached("There is no exception thrown when listFiles with a file handle");
- });
-
- listFilesError = t.step_func(function (error) {
- assert_equals(error.name, expected, "expect thrown an exception");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- fsTestFile.listFiles(listFilesSuccess, listFilesError);
- });
-
- 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_listFiles_with_filter</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_listFiles_with_filter
-//==== LABEL Check if File::listFiles() works with filter argument
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:IO:Filesystem:File:listFiles M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var filesFilter, listFilesError, resolveSuccess, resolveError, listFilesSuccess, documentsDir,
- fsTestFileName, fsTestFile, filesRegExp = new RegExp("^" + FILE_AND_DIR_NAME_PREFIX),
- t = async_test(document.title);
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
- filesFilter = {name: FILE_AND_DIR_NAME_PREFIX + "%"};
-
- listFilesSuccess = t.step_func(function (files) {
- assert_true(files.length > 0 , "file wasn't found");
- assert_regexp_match(files[0].name, filesRegExp, "bad file was found");
- t.done();
- });
-
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- dir.listFiles(listFilesSuccess, listFilesError, filesFilter);
- });
-
- 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_listFiles_with_onerror</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_listFiles_with_onerror
-//==== PRIORITY P1
-//==== LABEL Check if File::listFiles() calls errorCallback (listing files of a file)
-//==== SPEC: Tizen Web API:IO:Filesystem:File:listFiles M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MERRCB
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, listFilesSuccess, listFilesError, fsTestFileName, fsTestFile;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- listFilesError = t.step_func(function () {
- t.done();
- });
-
- listFilesSuccess = t.step_func(function (files) {
- assert_unreached("listFilesSuccess: listFilesError should be invoked");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- fsTestFile.listFiles(listFilesSuccess, listFilesError);
- });
-
- 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_listFiles_with_valid_successCallback</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_listFiles_with_valid_successCallback
-//==== PRIORITY P1
-//==== LABEL Check if File::listFiles() call onsuccess callback
-//==== SPEC Tizen Web API:IO:Filesystem:File:listFiles M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MMINA
-
-var t = async_test(document.title), resolveSuccess, resolveError,
- listFilesSuccess;
-t.step(function () {
-
- listFilesSuccess = t.step_func(function (files) {
- assert_type(files, "array", "files");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- dir.listFiles(listFilesSuccess);
- });
-
- 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_modified_attribute</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_modified_attribute
-//==== PRIORITY P1
-//==== LABEL Check if File::modified attribute exists, has type Date and is readonly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:modified A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA AE ARO AT
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, fsTestFileName, fsTestFile, date, tmp;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- date = new Date();
- fsTestFile = dir.createFile(fsTestFileName);
- assert_own_property(fsTestFile, "modified", "File does not own modified property.");
- assert_true("modified" in fsTestFile, "attribute modified doesn't exist in provided object.");
- assert_type(fsTestFile.modified, "Date", "Type of modified is different.");
- tmp = fsTestFile.modified;
- fsTestFile.modified = new Date();
- assert_equals(tmp.getTime(), fsTestFile.modified.getTime(), "created can be modified.");
- 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>
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>File_moveTo</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
-//==== PRIORITY P1
-//==== LABEL Check if File::moveTo() can be called successfully
-//==== 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 MMINA MR
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- resolveSuccess, resolveError, retVal;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- retVal = dir.moveTo(fsTestFile.fullPath,
- "images/"+fsTestFile.name, true);
- assert_equals(retVal, undefined, "incorrect returned value");
- 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>
+++ /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>
-
-<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 File::moveTo() invokes error callback when moving a directory to the same location with the same name (overwrite is false)
-//==== 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 resolveSuccess, resolveError, moveToSuccess, moveToError, fsTestDir1, fsTestDirName1, fsTestSubDir1,
- fsTestSubDirName1, expected = "IOError",
- t = async_test(document.title);
-
-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>
-
-<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 File::moveTo() invokes error callback when moving a directory to the same location with the same name (overwrite is true)
-//==== 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 resolveSuccess, resolveError, moveToSuccess, moveToError, fsTestDir1, fsTestDirName1, fsTestSubDir1,
- fsTestSubDirName1, expected = "IOError",
- t = async_test(document.title);
-
-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>
+++ /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_empty_destination_source_and_destination_paths</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_empty_destination_source_and_destination_paths
-//==== PRIORITY P1
-//==== LABEL Check if File::moveTo() invokes error callback when originFilePath and destinationFilePath are empty
-//==== 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),
- moveToSuccess, moveToError, resolveSuccess, resolveError;
-
-t.step(function () {
- moveToSuccess = t.step_func(function () {
- assert_unreached("moveToSuccess: moveToError should be invoked");
- });
-
- moveToError = t.step_func(function (error) {
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- dir.moveTo("", "", false, moveToSuccess, moveToError);
- });
-
- 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>
- Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>File_moveTo_exist</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_exist
-//==== LABEL Check if File::moveTo() method exists
-//==== PRIORITY P0
-//==== 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 ME
-
-var t = async_test(document.title), resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_true("moveTo" in dir, "method moveTo exists");
- check_method_exists(dir, "moveTo");
- 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) 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:
- Guan, JingX <jingx.guan@intel.com>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>File_moveTo_file_samedir_samename_overwrite_false</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_file_samedir_samename_overwrite_false
-//==== LABEL Check if File::moveTo() invokes error callback when moving a file to the same location with the same name (overwrite is false)
-//==== 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), resolveSuccess,
- resolveError, moveToSuccess, moveToError, expectedError = "IOError",
- fsTestDirName1, fsTestDirName2, fsTestFileName, fsTestDir1, fsTestDir2, fsTestFile;
-
-t.step(function () {
- fsTestDirName1 = getDirName("filesystem");
- fsTestDirName2 = getDirName("destination");
- fsTestFileName = getFileName("filesystem.txt");
-
- moveToSuccess = t.step_func(function () {
- assert_unreached("moveToSuccess callback should not be invoked");
- });
-
- moveToError = t.step_func(function (error) {
- assert_equals(error.name, expectedError, "wrong error type");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestDir1 = dir.createDirectory(fsTestDirName1);
- fsTestDir2 = fsTestDir1.createDirectory(fsTestDirName2);
- fsTestFile = fsTestDir2.createFile(fsTestFileName);
- fsTestDir2.moveTo(fsTestFile.fullPath, "documents/"+fsTestDir1.name+"/"+fsTestDir2.name+"/",
- 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) 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:
- Guan, JingX <jingx.guan@intel.com>
-
--->
-
-<html>
-<head>
-<title>File_moveTo_file_samedir_samename_overwrite_true</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_file_samedir_samename_overwrite_true
-//==== LABEL Check if File::moveTo() error callback when moving a file to the same location with the same name (overwrite is true)
-//==== 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), resolveSuccess,
- resolveError, moveToSuccess, moveToError, expectedError = "IOError",
- fsTestDirName1, fsTestDirName2, fsTestFileName, fsTestDir1,
- fsTestDir2, fsTestFile;
-
-t.step(function () {
- fsTestDirName1 = getDirName("filesystem");
- fsTestDirName2 = getDirName("destination");
- fsTestFileName = getFileName("filesystem.txt");
-
- moveToSuccess = t.step_func(function () {
- assert_unreached("moveToSuccess callback should not be invoked");
- });
-
- moveToError = t.step_func(function (error) {
- assert_equals(error.name, expectedError, "wrong error type");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestDir1 = dir.createDirectory(fsTestDirName1);
- fsTestDir2 = fsTestDir1.createDirectory(fsTestDirName2);
- fsTestFile = fsTestDir2.createFile(fsTestFileName);
- fsTestDir2.moveTo(fsTestFile.fullPath, "documents/" + fsTestDir1.name + "/" + fsTestDir2.name + "/",
- 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) 2014 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:
- Xu sida <sida.xu@samsung.com>
-
--->
-<html>
-<head>
-<title>File_moveTo_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_moveTo_misarg
-//==== PRIORITY P2
-//==== LABEL Check if File:moveTo() for File::moveto() throws exception with missing mandatory argument
-//==== 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 MMA
-
-var t = async_test(document.title), fsTestFileName, fsTestFile, resolveSuccess, resolveError;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem003.txt");
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- dir.moveTo(fsTestFile.fullPath, "images/"+fsTestFile.name);
- }, TYPE_MISMATCH_EXCEPTION + " 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>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 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:
- Xu sida <sida.xu@samsung.com>
-
--->
-<html>
-<head>
-<title>File_moveTo_noarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_moveTo_noarg
-//==== PRIORITY P2
-//==== LABEL Check if File::moveto() throws exception without mandatory argument
-//==== 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 MMA
-
-var t = async_test(document.title), fsTestFileName, fsTestFile, resolveSuccess, resolveError;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem001.txt");
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- dir.moveTo();
- }, TYPE_MISMATCH_EXCEPTION + " 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>
\ No newline at end of file
+++ /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_onerror_TypeMismatch</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_onerror_TypeMismatch
-//==== LABEL Check if File::moveTo() throws exception for wrong type of onerror
-//==== 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 MC
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, conversionTable, moveToError, i, moveToSuccess,
- exceptionName = "TypeMismatchError";
-
-t.step(function () {
- moveToSuccess = t.step_func(function () {
- assert_unreached("successCalback should not be called");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- moveToError = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({
- name: exceptionName
- }, function () {
- dir.moveTo("verybadfile.txt", "images", true, moveToSuccess, moveToError);
- }, exceptionName + " should be thrown - given incorrect error callback.");
- }
- 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_onerror_invalid_cb</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_onerror_invalid_cb
-//==== LABEL Check if File::moveTo() throws exception for wrong onerror
-//==== 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 MTCB
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- resolveSuccess, resolveError, moveToSuccess, moveToError;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- moveToError = {
- onerror: t.step_func(function () {
- assert_unreached("moveTo() error callback invoked");
- })
- };
- moveToSuccess = t.step_func(function () {
- assert_unreached("moveTo() success callback invoked");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- dir.moveTo(fsTestFile.fullPath, "images", true, moveToSuccess, moveToError);
- }, "given incorrect errorCallback");
- 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>
+++ /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_onsuccess_TypeMismatch</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_onsuccess_TypeMismatch
-//==== LABEL Check if File::moveTo() throws exception for wrong type of onsuccess
-//==== 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 MC
-
-var t = async_test(document.title), moveToSuccess, fsTestFileName, fsTestFile,
- resolveSuccess, resolveError, conversionTable, i, exceptionName = "TypeMismatchError";
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- moveToSuccess = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- dir.moveTo(fsTestFile.fullPath, "images", true, moveToSuccess);
- }, exceptionName + " should be thrown - given incorrect success callback.");
- }
- 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>
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>File_moveTo_onsuccess_invalid_cb</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_onsuccess_invalid_cb
-//==== LABEL Check if File::moveTo() throws exception for wrong onsuccess
-//==== 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 MTCB
-
-var t = async_test(document.title), resolveSuccess, resolveError,
- moveToSuccess, fsTestFileName, fsTestFile;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- moveToSuccess = {
- onsuccess: t.step_func(function () {
- assert_unreached("Invalid callback invoked: ");
- })
- };
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- dir.moveTo(fsTestFile.fullPath, "images", true, moveToSuccess);
- }, "given incorrect successCallback");
- 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>
+++ /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>
-<meta charset="utf-8" />
-<title>File_moveTo_with_additional_null_parameter</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_additional_null_parameter
-//==== PRIORITY P1
-//==== LABEL Check if File::moveTo() method can be invoked with extra null parameter
-//==== 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 MOA
-
-var t = async_test(document.title), fsTestFileName2,
- resolveSuccess, resolveError, file, movedPath, fsTestFileName, moveToSuccess;
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
- fsTestFileName2 = getFileName("filesystem2.txt");
-
- moveToSuccess = t.step_func(function () {
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- file = dir.createFile(fsTestFileName);
- assert_true(isFileObject(file), "isFileObject(createdFile)");
- movedPath = dir.fullPath + "/" + fsTestFileName2;
- dir.moveTo(file.fullPath, movedPath, true, moveToSuccess, null, null);
- });
-
- 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) 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_moveTo_with_file_handle</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_file_handle
-//==== LABEL Check if File::moveTo() calls errorCallback when called on File object representing file, not a directory
-//==== 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 resolveSuccess, resolveError, moveToSuccess, moveToError, fsTestDirName1,
- fsTestDirName2, fsTestDir1, fsTestDir2, fsTestFileName, fsTestFile,
- expectedError = "IOError", t = async_test(document.title);
-
-t.step(function () {
- fsTestDirName1 = getFileName("filesystem");
- fsTestDirName2 = getFileName("filesystem2");
- fsTestFileName = getFileName("filesystem.txt");
-
- moveToSuccess = t.step_func(function () {
- assert_unreached("There is no exception thrown when when copyTo with file handle");
- });
-
- moveToError = t.step_func(function (error) {
- assert_equals(error.name, expectedError, expectedError + " should be thrown");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestDir1 = dir.createDirectory(fsTestDirName1);
- fsTestDir2 = fsTestDir1.createDirectory(fsTestDirName2);
- fsTestFile = fsTestDir2.createFile(fsTestFileName);
- fsTestFile.moveTo(fsTestFile.fullPath, fsTestDir1.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>
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>File_moveTo_with_onerror</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_onerror
-//==== PRIORITY P1
-//==== LABEL Check if File::moveTo() calls errorCallback (source file does not exist)
-//==== 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),
- resolveSuccess, resolveError, moveToSuccess, moveToError, fsTestFileName;
-
-t.step(function () {
- fsTestFileName = getFileName("noExistFile.txt");
-
- moveToError = t.step_func(function () {
- t.done();
- });
- moveToSuccess = t.step_func(function (files) {
- assert_unreached("moveTo() error callback invoked: moveTo() error callback should be called");
- });
- resolveSuccess = t.step_func(function (dir) {
- dir.moveTo("documents/" + fsTestFileName,
- "images/" + 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) 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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>File_moveTo_with_onsuccess</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_moveTo_with_onsuccess
-//==== PRIORITY P1
-//==== LABEL Check if File::moveTo() calls successCallback
-//==== 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 MAST MOA
-
-var t = async_test(document.title), listFilesError, resolveError,
- resolveSuccess, documentsDir, listFilesSuccess, moveToSuccess, i, fsTestFileName;
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- moveToSuccess = t.step_func(function () {
- t.done();
- });
-
- listFilesSuccess = t.step_func(function (files) {
- for (i = 0; i < files.length; i++) {
- if (files[i].name === fsTestFileName) {
- try {
- documentsDir.moveTo(files[i].fullPath,
- "images/" + files[i].name, true, moveToSuccess);
- } catch (error) {
- assert_unreached("listFiles() success callback invoked: name:" + error.name + "msg:" + error.message);
- }
- }
- }
- });
-
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- dir.createFile(fsTestFileName);
- dir.listFiles(listFilesSuccess, listFilesError);
- });
-
- 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_moveTo_with_path_invalid</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_moveTo_with_path_invalid
-//==== LABEL Check if File::moveTo() calls errorCallback (NotFound) when destinationFilePath is in non-existing directory
-//==== 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), fsTestDirName, fsTestDir,
- expected = "NotFoundError", documentsDir, resolveSuccess, resolveError,
- moveToSuccess, moveToError;
-
-t.step(function () {
- fsTestDirName = getFileName("filesystem");
-
- moveToSuccess = t.step_func(function () {
- assert_unreached("moveTo() success callback invoked: No exception be thrown when move file to an invalid path");
- });
-
- moveToError = t.step_func(function (error) {
- assert_equals(error.name, expected, "exception is not our expected value");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestDir = dir.createDirectory(fsTestDirName);
- dir.moveTo(fsTestDir.fullPath, "hello/" + fsTestDirName, 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_moveTo_writeFile_newName</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_moveTo_writeFile_newName
-//==== PRIORITY P1
-//==== LABEL Check if you can create a new file, write content to it, and then move the file to the same directory with different file name
-//==== 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 MOA
-
-
-var resolveSuccess, resolveError, fsTestDirName, fsTestFileName, fsTestDir,
- fsTestFile, fsTestFileName2, moveToSuccess, moveToError, t = async_test(document.title),
- 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>
+++ /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_moveTo_writeFile_overwrite_false</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_moveTo_writeFile_overwrite_false
-//==== PRIORITY P1
-//==== LABEL Check if File::moveTo() calls errorCallback when originFilePath and destinationFilePath is the same path (overwrite false)
-//==== 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),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, moveToSuccess, mainDir,
- moveToError, fsTestFileName, fsTestFile, fsTestDirName, fsTestDir, expectedError = "IOError";
-
-t.step(function () {
- fsTestDirName = getFileName("filesystem");
- fsTestFileName = getFileName("filesystem.txt");
-
- moveToSuccess = t.step_func(function () {
- assert_unreached("moveToSuccess callback shouldn't be invoked");
- });
-
- moveToError = t.step_func(function (error) {
- assert_equals(error.name, expectedError, "wrong error type");
- t.done();
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write("test");
- fs.close();
- mainDir.moveTo(fsTestFile.fullPath, fsTestDir.fullPath + "/" + fsTestFile.name,
- false, 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) {
- mainDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- fsTestDir = dir.createDirectory(fsTestDirName);
- 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>
-<head>
-<title>File_moveTo_writeFile_subdir</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_moveTo_writeFile_subdir
-//==== PRIORITY P1
-//==== LABEL Check if you can create a new file, write content to it, and then move the file to a subdirectory keeping the name of the 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
-//==== TEST_CRITERIA MOA
-
-
-var resolveSuccess, resolveError, openStreamSuccess, openStreamError, moveToSuccess,
- moveToError, fsTestDirName1, fsTestDirName2, fsTestFileName,
- fsTestFile, fsTestDir1, fsTestDir2, t = async_test(document.title);
-
-t.step(function () {
- fsTestDirName1 = getFileName("filesystem");
- fsTestDirName2 = getFileName("destination");
- 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();
- fsTestDir1.moveTo(fsTestFile.fullPath, fsTestDir2.fullPath + "/" + 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) {
- fsTestDir1 = dir.createDirectory(fsTestDirName1);
- fsTestDir2 = fsTestDir1.createDirectory(fsTestDirName2);
- fsTestFile = fsTestDir1.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) 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:
- Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>File_name_attribute</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_name_attribute
-//==== PRIORITY P1
-//==== LABEL Check if File::name attribute exists, has type DOMString and is readonly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:name A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA AE ARO AT
-
-var t = async_test(document.title), fsTestFileName,
- fsTestFile, resolveSuccess, resolveError;
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- assert_own_property(fsTestFile, "name", "File does not own name property.");
- check_readonly(fsTestFile, "name", fsTestFile.name, "string", fsTestFile.name + "dummyValue");
- 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>
+++ /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_notexist</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: File_notexist
-//==== LABEL Interface File should not be accessible
-//==== PRIORITY: P3
-//==== SPEC Tizen Web API:IO:Filesystem:File:File U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA NIO
-test(function () {
- check_no_interface_object("File");
-}, document.title);
-
-</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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<meta charset="utf-8" />
-<title>File_openStream</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_openStream
-//==== PRIORITY P1
-//==== LABEL Check if File::openStream() method works properly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MMINA MR
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- resolveSuccess, resolveError, retVal = null;
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- retVal = fsTestFile.openStream("w",
- t.step_func(function (fs) {
- assert_equals(retVal, undefined, "incorrect returned value");
- fs.write("HelloWorld");
- fs.close();
- 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>
+++ /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>
-<meta charset="utf-8" />
-<title>File_openStream_encoding_invalid</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_openStream_encoding_invalid
-//==== LABEL Check if File::openStream() throws an exception for invalid encoding value
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError,
- fsTestFileName, fsTestFile, documentsDir;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.close();
- assert_unreached("There in no exception thrown when open the file in invalid encoding");
- });
-
- openStreamError = t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- fsTestFile.openStream("r", openStreamSuccess, openStreamError, "coding");
- });
- 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>
+++ /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>
-
--->
-
-<html>
-<head>
-<title>File_openStream_exist</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: File_openStream_exist
-//==== LABEL Check if File::openStream() method exists
-//==== PRIORITY P0
-//==== SPEC Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA ME
-var t = async_test(document.title), resolveSuccess, resolveError;
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_true("openStream" in dir, "method openStream exists");
- check_method_exists(dir, "listFiles");
- 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_openStream_missarg</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: File_openStream_missarg
-//==== PRIORITY: P2
-//==== LABEL Check if File::openStream() method throws exception for missing mandatory argument
-//==== SPEC: Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MMA
-
-var t = async_test(document.title), fsTestFileName, fsTestFile,
- resolveSuccess, resolveError;
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- fsTestFile.openStream();
- });
- 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>
+++ /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_openStream_mode_TypeMismatch</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-
-//==== TEST: File_openStream_mode_TypeMismatch
-//==== LABEL Check if File::openStream() throws exception for wrong type of mode argument
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, conversionTable, i, exceptionName = "TypeMismatchError",
- openStreamSuccess, mode;
-
-t.step(function () {
- openStreamSuccess = t.step_func(function (fs) {
- fs.close();
- assert_unreached("openStream() success callback invoked: should not be called");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- conversionTable = getTypeConversionExceptions("enum", false);
- for (i = 0; i < conversionTable.length; i++) {
- mode = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- dir.openStream(mode, openStreamSuccess);
- }, exceptionName + " should be thrown - given incorrect mode.");
- }
- 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) 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>
-<meta charset="utf-8" />
-<title>File_openStream_mode_a</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_openStream_mode_a
-//==== LABEL Check if File::openStream() works for mode a
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var resolveSuccess, resolveError, openStreamSuccess, openStreamError, fsTestFileName,
- fsTestFile, documentsDir, t = async_test(document.title);
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- openStreamSuccess = t.step_func(function (fs) {
- 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) {
- documentsDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- fsTestFile.openStream("a", 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) 2014 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:
- Xu Sida <sida.xu@samsung.com>
-
--->
-<html>
-<head>
-<title>File_openStream_mode_invalid</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_openStream_mode_invalid
-//==== LABEL Check if File::openStream() method throws exception for wrong mode
-//==== PRIORITY P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title), resolveSuccess, resolveError, openStreamSuccess;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- dir.openStream(5);
- }, TYPE_MISMATCH_EXCEPTION + " should be thrown - given invalid mode");
- 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>
\ 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>
-<head>
-<meta charset="utf-8" />
-<title>File_openStream_mode_r</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_openStream_mode_r
-//==== LABEL Check if File::openStream() works for mode r
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MAST MOA
-
-
-var resolveSuccess, resolveError, openStreamSuccess, openStreamError, fsTestFileName,
- fsTestFile, documentsDir, t = async_test(document.title);
-
-t.step(function (){
- fsTestFileName = getFileName("filesystem.txt");
-
- openStreamSuccess = t.step_func(function (fs) {
- 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) {
- documentsDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- fsTestFile.openStream("r", 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>
-<meta charset="utf-8" />
-<title>File_openStream_mode_rw</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_openStream_mode_rw
-//==== LABEL Check if File::openStream() works for mode rw
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MAST MOA
-
-
-var resolveSuccess, resolveError, openStreamSuccess, openStreamError, fsTestFileName,
- fsTestFile, documentsDir, t = async_test(document.title);
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- openStreamSuccess = t.step_func(function (fs) {
- 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) {
- documentsDir = dir;
- fsTestFile = dir.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>
-<head>
-<meta charset="utf-8" />
-<title>File_openStream_mode_w</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_openStream_mode_w
-//==== LABEL Check if File::openStream() works for mode w
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MAST MOA
-
-
-var resolveSuccess, resolveError, openStreamSuccess, openStreamError, fsTestFileName,
- fsTestFile, documentsDir, t = async_test(document.title);
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- openStreamSuccess = t.step_func(function (fs) {
- 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) {
- documentsDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- fsTestFile.openStream("w", 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) 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_openStream_onerror_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_openStream_onerror_TypeMismatch
-//==== LABEL Check if File::openStream() method throws exception for wrong type of onerror
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, conversionTable, openStreamError, i, openStreamSuccess,
- exceptionName = "TypeMismatchError";
-t.step(function () {
- openStreamSuccess = t.step_func(function (fs) {
- fs.close();
- assert_unreached("openStream() success callback invoked: should not be called");
- });
- resolveSuccess = t.step_func(function (dir) {
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- openStreamError = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- dir.openStream("r", openStreamSuccess, openStreamError);
- }, exceptionName + " should be thrown - given incorrect errorCallback.");
- }
- 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_openStream_onerror_invalid_cb</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_openStream_onerror_invalid_cb
-//==== LABEL Check if File::openStream() method throws exception for wrong onerror
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MTCB
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError;
-t.step(function () {
- openStreamError = {
- onerror: t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: name:" + error.name + "msg:" + error.message);
- })
- };
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.close();
- assert_unreached("successCallback should not be called");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- dir.openStream("r", openStreamSuccess, openStreamError);
- }, "given incorrect errorCallback");
- 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>
-<meta charset="utf-8" />
-<title>File_openStream_onsuccess_TypeMismatch</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_openStream_onsuccess_TypeMismatch
-//==== LABEL Check if File::openStream() method throws exception for wrong type of onsuccess
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title), openStreamSuccess,
- resolveSuccess, resolveError, conversionTable, i, exceptionName = "TypeMismatchError",
- fsTestFileName, fsTestFile;
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- conversionTable = getTypeConversionExceptions("functionObject", false);
- for (i = 0; i < conversionTable.length; i++) {
- openStreamSuccess = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- fsTestFile.openStream("r", openStreamSuccess);
- }, exceptionName + " should be thrown - given incorrect successCallback.");
- }
- 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>
+++ /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_openStream_onsuccess_invalid_cb</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: File_openStream_onsuccess_invalid_cb
-//==== LABEL Check if File::openStream() method throws exception for wrong onsuccess
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MTCB
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, openStreamSuccess, fsTestFileName, fsTestFile;
-t.step(function (){
- fsTestFileName = getFileName("filesystem.txt");
-
- openStreamSuccess = {
- onsuccess: t.step_func(function () {
- assert_unreached("openStream() success callback invoked: Invalid callback invoked.");
- })
- };
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- fsTestFile.openStream("r", openStreamSuccess);
- }, "given incorrect successCallback");
- 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>
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>File_openStream_with_encoding</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_openStream_with_encoding
-//==== PRIORITY P1
-//==== LABEL Check if File::openStream() method can be called with valid encoding argument
-//==== SPEC: Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MAST MOA
-
-var t = async_test(document.title), resolveSuccess, resolveError,
- openStreamSuccess, openStreamError, fsTestFileName, fsTestFile;
-
-t.step(function (){
- fsTestFileName = getFileName("filesystem.txt");
-
- 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.close();
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- fsTestFile.openStream("r", openStreamSuccess, openStreamError, "ISO-8859-1");
- });
-
- 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) 2014 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:
- Xu sida <sida.xu@samsung.com>
-
--->
-<html>
-<head>
-<title>File_openStream_with_encoding_not_default</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_openStream_with_encoding_not_default
-//==== LABEL Check if File::openStream() method works properly when the encoding is "ISO-8859-1"
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title), resolveSuccess, resolveError, openStreamError, openStreamSuccess, fsTestFileName, fsTestFile;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem06.txt");
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.close();
- t.done();
- });
-
- openStreamError = t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: should not be called");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- fsTestFile.openStream("r", openStreamSuccess, openStreamError, "ISO-8859-1");
- });
-
- 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>
\ 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>
- Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>File_openStream_with_nonexist_file</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_openStream_with_nonexist_file
-//==== LABEL Check if File::openStream() method calls errorCallback when invoked for file which was already removed
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MERRCB
-
-
-var fsTestFileName, fsTestFile, resolveSuccess, resolveError, deleteFileSuccess,
- deleteFileError, openStreamSuccess, openStreamError,
- t = async_test(document.title);
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.close();
- assert_unreached("openStream() success callback invoked: expect throw an exception when open the file which not exist");
- });
-
- openStreamError = t.step_func(function (error) {
- assert_equals(error.name, "IOError", "expect throw an exception");
- t.done();
- });
-
- deleteFileSuccess = t.step_func(function () {
- fsTestFile.openStream("r", openStreamSuccess, openStreamError, "UTF-8");
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_unreached("deleteFile() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- dir.deleteFile(fsTestFile.fullPath, deleteFileSuccess, deleteFileError);
- });
-
- 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_openStream_with_onerror</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: File_openStream_with_onerror
-//==== PRIORITY P1
-//==== LABEL Check if File::openStream() method calls errorCallback properly (openStream used on directory)
-//==== SPEC: Tizen Web API:IO:Filesystem:File:openStream M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MAST MOA
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError;
-t.step(function (){
- openStreamError = t.step_func(function () {
- t.done();
- });
- openStreamSuccess = t.step_func(function (fs) {
- fs.close();
- assert_unreached("this function should not be executed");
- });
- resolveSuccess = t.step_func(function (dir) {
- dir.openStream("r", openStreamSuccess, openStreamError);
- });
- 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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>File_parent_attribute</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: File_parent_attribute
-//==== PRIORITY P1
-//==== LABEL Check if File::parent attribute exists, has type File and is readonly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:parent A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA AE ARO AT
-
-var t = async_test(document.title), resolveSuccess, resolveError, fsTestFileName,
- fsTestFile, fsTestDir, fsTestDirName;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem");
- fsTestDirName = getDirName("filesystemDir");
-
- resolveSuccess = t.step_func(function (dir) {
- assert_true("parent" in dir, "parent attribute doesn't exist");
- assert_equals(dir.parent, null, "incorrect parent value for root directory");
- fsTestDir = dir.createDirectory(fsTestDirName);
- fsTestFile = fsTestDir.createFile(fsTestFileName);
- assert_type(fsTestFile.parent, "object", "parent isn't an object");
- checkOwnProperties(fsTestFile.parent);
- assert_equals(fsTestFile.parent.name, fsTestDir.name, "incorrect parent");
- fsTestFile.parent = dir;
- assert_equals(fsTestFile.parent.name, fsTestDir.name, "parent can be modified");
- 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>
+++ /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:
- Tomasz Kuśmierz <t.kusmierz@samsung.com>
- Mariusz Polasinski <m.polasinski@samsung.com>>
-
--->
-<html>
-<head>
-<title>File_parent_attribute_notnull_using_resolve</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_parent_attribute_notnull_using_resolve
-//==== PRIORITY P1
-//==== LABEL Check if File::parent attribute is set by resolve() for subdirectory of Documents
-//==== SPEC: Tizen Web API:IO:Filesystem:File:parent A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, resolveFileSuccess, fsTestFileName;
-
-t.step(function (){
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveFileSuccess = t.step_func(function (file) {
- assert_not_equals(file.parent, null, "File.parent should not be null.");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- try {
- dir.createFile(fsTestFileName);
- } catch (e) {
- if (e.name !== "IOError") {
- assert_unreached("createFile() error throw: name: " + e.name + ", msg: " + e.message);
- }
- }
- tizen.filesystem.resolve("documents/" + fsTestFileName, resolveFileSuccess, resolveError, "rw");
- });
-
- 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_path_attribute</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: File_path_attribute
-//==== PRIORITY P1
-//==== LABEL Check if File::path attribute exists, has type DOMString and is readonly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:path A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA AE ARO AT
-
-var t = async_test(document.title), resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_own_property(dir, "path", "file does not have own path property");
- check_readonly(dir, "path", dir.path, "string", "images");
- assert_equals(dir.path, "documents", "incorrect path");
- 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) 2014 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:
- Danni Zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>File_path_attribute_limitation</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_path_attribute_limitation
-//==== LABEL Check if File::path attribute has proper value limitation
-//==== SPEC: Tizen Web API:IO:Filesystem:File:path A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA AVL
-
-var t = async_test(document.title), resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_less_than_equal(dir.path.length, tizen.filesystem.maxPathLength, "the length of path should not have value greater than maxPathLength");
- 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>
\ No newline at end of file
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>File_readAsText</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: File_readAsText
-//==== PRIORITY P1
-//==== LABEL Check if File::readAsText() method works properly without errorCallback
-//==== SPEC: Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MMINA MR
-
-var t = async_test(document.title), resolveSuccess, resolveError, stringInFile = "HelloWorld",
- readAsTextSuccess, file, fsTestFileName = getFileName("testReadAsTextAgain.txt"), retVal = null;
-
-t.step(function () {
- readAsTextSuccess = t.step_func(function (str) {
- assert_equals(retVal, undefined, "incorrect returned value");
- assert_equals(str, stringInFile, "incorrect read value");
- t.done();
- });
-
- resolveSuccess = t.step_func(function (dir) {
- file = dir.createFile(fsTestFileName);
- file.openStream("w",
- t.step_func(function (fs) {
- fs.write(stringInFile);
- fs.close();
- retVal = file.readAsText(readAsTextSuccess);
- }));
- });
- 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>
-<meta charset="utf-8" />
-<title>File_readAsText_encoding_invalid</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_readAsText_encoding_invalid
-//==== LABEL Check if File::readAsText() method throws exception for invalid encoding value
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA
-
-var t = async_test(document.title), resolveSuccess, resolveError,
- readAsTextSuccess, documentsDir, expected = "TypeMismatchError", fsTestFileName,
- fsTestFile, readAsTextError;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- readAsTextSuccess = t.step_func(function (str) {
- assert_unreached("readAsText() success callback invoked: There is no exception thrown when readAsText() in invalid encoding");
- });
-
- readAsTextError = t.step_func(function (error) {
- assert_unreached("readAsText() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- documentsDir = dir;
- fsTestFile = dir.createFile(fsTestFileName);
- assert_throws({"name": expected}, function () {
- fsTestFile.readAsText(readAsTextSuccess, readAsTextError, true);
- });
- 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>
+++ /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>
-
--->
-
-<html>
-<head>
-<title>File_readAsText_exist</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: File_readAsText_exist
-//==== LABEL Check if File::readAsText() method exists
-//==== PRIORITY P0
-//==== SPEC Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA ME
-var t = async_test(document.title), resolveSuccess, resolveError;
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- assert_true("readAsText" in dir, "method readAsText exists");
- check_method_exists(dir, "readAsText");
- 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) 2014 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:
- Danni zhao <danni.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>File_readAsText_listCameraFiles</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_readAsText_listCameraFiles
-//==== LABEL Check if File::readAsText() method works for a file created in Camera
-//==== SPEC Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MOA
-
-var t = async_test(document.title), resolveSuccess, resolveError, listFilesSuccess, listFilesError, openStreamSuccess, openStreamError,
- readAsTextSuccess, readAsTextError,testFile, fsTestFileName = getFileName("write01.txt"), text = "test write method";
-
-t.step(function (){
- readAsTextSuccess = t.step_func(function (str) {
- assert_equals(str, text, "text read from file is wrong");
- t.done();
- });
-
- readAsTextError = t.step_func(function (error) {
- assert_unreached("readAsText() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write(text);
- fs.close();
- testFile.readAsText(readAsTextSuccess, readAsTextError, "UTF-8");
- });
-
- openStreamError = t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- listFilesSuccess = t.step_func(function (files) {
- testFile.openStream("rw", openStreamSuccess, openStreamError);
- });
-
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- testFile = dir.createFile(fsTestFileName);
- dir.listFiles(listFilesSuccess, listFilesError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- prepareForTesting(t,
- function () {
- tizen.filesystem.resolve("camera", 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>
-
--->
-
-<html>
-<head>
-<title>File_readAsText_listDocumentsFiles</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_readAsText_listDocumentsFiles
-//==== PRIORITY P1
-//==== LABEL Check if File::readAsText() method works for a file created in Documents
-//==== SPEC Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var testFile, resolveSuccess, resolveError, readAsTextSuccess,
- readAsTextError, openStreamSuccess, openStreamError,
- listFilesSuccess, listFilesError, text = "test write method",
- t = async_test(document.title),
- fsTestFileName = getFileName("write01.txt");
-
-t.step(function (){
- readAsTextSuccess = t.step_func(function (str) {
- assert_equals(str, text, "text read from file is wrong");
- t.done();
- });
-
- readAsTextError = t.step_func(function (error) {
- assert_unreached("readAsText() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write(text);
- fs.close();
- testFile.readAsText(readAsTextSuccess, readAsTextError, "UTF-8");
- });
-
- openStreamError = t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- listFilesSuccess = t.step_func(function (files) {
- testFile.openStream("rw", openStreamSuccess, openStreamError);
- });
-
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- testFile = dir.createFile(fsTestFileName);
- dir.listFiles(listFilesSuccess, listFilesError);
- });
-
- 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_readAsText_listDownloadsFiles</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_readAsText_listDownloadsFiles
-//==== PRIORITY P1
-//==== LABEL Check if File::readAsText() method works for a file created in Downloads
-//==== SPEC Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var t = async_test(document.title),
- text = "test write method", testFile, resolveSuccess, resolveError,
- listFilesSuccess, listFilesError, openStreamSuccess,
- openStreamError, readAsTextSuccess, readAsTextError,
- fsTestFileName = getFileName("write01.txt");
-
-t.step(function (){
- readAsTextSuccess = t.step_func(function (str) {
- assert_equals(str, text, "text read from file is wrong");
- t.done();
- });
-
- readAsTextError = t.step_func(function (error) {
- assert_unreached("readAsText() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write(text);
- fs.close();
- testFile.readAsText(readAsTextSuccess, readAsTextError, "UTF-8");
- });
- openStreamError = t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- listFilesSuccess = t.step_func(function (files) {
- testFile.openStream("rw", openStreamSuccess, openStreamError);
- });
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- testFile = dir.createFile(fsTestFileName);
- dir.listFiles(listFilesSuccess, listFilesError);
- });
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- prepareForTesting(t,
- function () {
- tizen.filesystem.resolve("downloads", resolveSuccess, resolveError, "rw");
- }
- );
-});
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-h<!--
-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_readAsText_listImagesFiles</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_readAsText_listImagesFiles
-//==== PRIORITY P1
-//==== LABEL Check if File::readAsText() method works for a file created in Images
-//==== SPEC Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var text = "test write method", t = async_test(document.title),
- testFile, resolveSuccess, resolveError, listFilesSuccess,
- listFilesError, openStreamSuccess, openStreamError,
- readAsTextSuccess, readAsTextError,
- fsTestFileName = getFileName("write01.txt");
-
-t.step(function (){
- readAsTextSuccess = t.step_func(function (str) {
- assert_equals(str, text, "text read from file is wrong");
- t.done();
- });
-
- readAsTextError = t.step_func(function (error) {
- assert_unreached("readAsText() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write(text);
- fs.close();
- testFile.readAsText(readAsTextSuccess, readAsTextError, "UTF-8");
- });
-
- openStreamError = t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- listFilesSuccess = t.step_func(function (files) {
- testFile.openStream("rw", openStreamSuccess, openStreamError);
- });
-
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- testFile = dir.createFile(fsTestFileName);
- dir.listFiles(listFilesSuccess, listFilesError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- prepareForTesting(t,
- function () {
- tizen.filesystem.resolve("images", 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_readAsText_listMusicFiles</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_readAsText_listMusicFiles
-//==== PRIORITY P1
-//==== LABEL Check if File::readAsText() method works for a file created in Music
-//==== SPEC Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var testFile, resolveSuccess, resolveError, listFilesSuccess,
- listFilesError, openStreamSuccess, openStreamError, readAsTextSuccess,
- readAsTextError, text = "test write method",
- t = async_test(document.title),
- fsTestFileName = getFileName("write01.txt");
-
-t.step(function (){
- readAsTextSuccess = t.step_func(function (str) {
- assert_equals(str, text, "text read from file is wrong");
- t.done();
- });
-
- readAsTextError = t.step_func(function (error) {
- assert_unreached("readAsText() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write(text);
- fs.close();
- testFile.readAsText(readAsTextSuccess, readAsTextError, "UTF-8");
- });
-
- openStreamError = t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- listFilesSuccess = t.step_func(function (files) {
- testFile.openStream("rw", openStreamSuccess, openStreamError);
- });
-
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- testFile = dir.createFile(fsTestFileName);
- dir.listFiles(listFilesSuccess, listFilesError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- prepareForTesting(t,
- function () {
- tizen.filesystem.resolve("music", 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_readAsText_listVideosFiles</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_readAsText_listVideosFiles
-//==== PRIORITY P1
-//==== LABEL Check if File::readAsText() method works for a file created in Videos
-//==== SPEC Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var text = "test write method", t = async_test(document.title),
- testFile, resolveSuccess, resolveError, listFilesSuccess,
- listFilesError, openStreamSuccess, openStreamError,
- readAsTextSuccess, readAsTextError,
- fsTestFileName = getFileName("write01.txt");
-
-t.step(function (){
- readAsTextSuccess = t.step_func(function (str) {
- assert_equals(str, text, "text read from file is wrong");
- t.done();
- });
-
- readAsTextError = t.step_func(function (error) {
- assert_unreached("readAsText() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write(text);
- fs.close();
- testFile.readAsText(readAsTextSuccess, readAsTextError, "UTF-8");
- });
-
- openStreamError = t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- listFilesSuccess = t.step_func(function (files) {
- testFile.openStream("rw", openStreamSuccess, openStreamError);
- });
-
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- testFile = dir.createFile(fsTestFileName);
- dir.listFiles(listFilesSuccess, listFilesError);
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- prepareForTesting(t,
- function () {
- tizen.filesystem.resolve("videos", 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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>File_readAsText_missarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: File_readAsText_missarg
-//==== PRIORITY: P2
-//==== LABEL Check if File::readAsText() throws exception for missing mandatory parameter
-//==== SPEC: Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MMA
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, file,
- fsTestFileName = getFileName("testMissArg.txt");
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- file = dir.createFile(fsTestFileName);
- file.openStream("w",
- t.step_func(function (fs) {
- fs.write("HelloWorld");
- fs.close();
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- file.readAsText();
- });
- 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>
+++ /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_readAsText_onerror_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_readAsText_onerror_TypeMismatch
-//==== LABEL Check if File::readAsText() method throws exception for wrong type of onerror
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, conversionTable, readAsTextError, i,
- readAsTextSuccess, exceptionName = "TypeMismatchError";
-
-t.step(function () {
- readAsTextSuccess = t.step_func(function () {
- assert_unreached("successCalback should not be called");
- });
- resolveSuccess = t.step_func(function (dir) {
- conversionTable = getTypeConversionExceptions("functionObject", true);
- for (i = 0; i < conversionTable.length; i++) {
- readAsTextError = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- dir.readAsText(readAsTextSuccess, readAsTextError);
- }, exceptionName + " should be thrown - given incorrect errorCallback.");
- }
- 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_readAsText_onerror_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_readAsText_onerror_invalid_cb
-//==== LABEL Check if File::readAsText() method throws exception for wrong onerror
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MTCB
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, readAsTextSuccess, readAsTextError;
-
-t.step(function () {
- readAsTextError = {
- onerror: t.step_func(function () {
- assert_unreached("Invalid callback invoked: ");
- })
- };
- readAsTextSuccess = t.step_func(function () {
- assert_unreached("successCallback should not be called");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- dir.readAsText(readAsTextSuccess, readAsTextError);
- }, "given incorrect errorCallback");
- 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_readAsText_onsuccess_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_readAsText_onsuccess_TypeMismatch
-//==== LABEL Check if File::readAsText() method throws exception for wrong type of onsuccess
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title), readAsTextSuccess,
- resolveSuccess, resolveError, conversionTable, i, file,
- exceptionName = "TypeMismatchError",
- fsTestFileName = getFileName("goodFile2.txt");
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- file = dir.createFile(fsTestFileName);
- conversionTable = getTypeConversionExceptions("functionObject", false);
-
- for (i = 0; i < conversionTable.length; i++) {
- readAsTextSuccess = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- file.readAsText(readAsTextSuccess);
- }, exceptionName + " should be thrown - given incorrect successCallback.");
- }
- 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>
+++ /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_readAsText_onsuccess_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_readAsText_onsuccess_invalid_cb
-//==== LABEL Check if File::readAsText() method throws exception for wrong onsuccess
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MTCB
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, readAsTextSuccess,
- fsTestFileName = getFileName("goodFile.txt"), file;
-
-t.step(function (){
- readAsTextSuccess = {
- onsuccess: t.step_func(function () {
- assert_unreached("Invalid callback invoked: ");
- })
- };
- resolveSuccess = t.step_func(function (dir) {
- file = dir.createFile(fsTestFileName);
- assert_throws(TYPE_MISMATCH_EXCEPTION,
- function () {
- file.readAsText(readAsTextSuccess);
- }, "given incorrect successCallback");
- 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>
+++ /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_readAsText_with_encoding</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_readAsText_with_encoding
-//==== LABEL Check if File::readAsText() method works with encoding argument
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, listFilesSuccess, listFilesError,
- readAsTextSuccess, readAsTextError, i;
-
-t.step(function (){
- readAsTextSuccess = t.step_func(function (text) {
- t.done();
- });
- readAsTextError = t.step_func(function (error) {
- assert_unreached("readAsText() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- listFilesSuccess = t.step_func(function (files) {
- for (i = 0; i < files.length; i++) {
- if (files[i].isDirectory === false){
- files[i].readAsText(readAsTextSuccess,
- readAsTextError, "ISO-8859-1");
- }
- }
- });
- listFilesError = t.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- dir.listFiles(listFilesSuccess, listFilesError);
- });
- 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) 2014 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:
- Xu Sida <sida.xu@samsung.com>
-
--->
-<html>
-<head>
-<title>File_readAsText_with_encoding_not_default</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_readAsText_with_encoding_not_default
-//==== LABEL Check if File::readAsText() method works properly when the encoding is "ISO-8859-1"
-//==== PRIORITY P2
-//==== SPEC: Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MC
-
-var t = async_test(document.title), resolveSuccess, resolveError, readAsTextError, readAsTextSuccess, fsTestFileName, fsTestFile;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem07.txt");
-
- readAsTextSuccess = t.step_func(function () {
- t.done();
- });
-
- readAsTextError = t.step_func(function (error) {
- assert_unreached("readAsText() errorcallback should not be called");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- fsTestFile.readAsText(readAsTextSuccess, readAsTextError, "ISO-8859-1");
- });
-
- 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>
\ No newline at end of file
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>File_readAsText_with_onerror</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_readAsText_with_onerror
-//==== PRIORITY P1
-//==== LABEL Check if File::readAsText() properly calls errorCallback (called on a directory instead of file)
-//==== SPEC: Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MERRCB
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, readAsTextSuccess, readAsTextError;
-
-t.step(function () {
- readAsTextError = t.step_func(function (error) {
- assert_equals(error.name, "IOError", "incorrect error name");
- assert_type(error.message, "string", "incorrect error message type");
- assert_not_equals(error.message, "", "incorrect error message");
- t.done();
- });
- readAsTextSuccess = t.step_func(function (text) {
- assert_unreached("readAsTextSuccess: readAsTextError should be invoked");
- });
-
- resolveSuccess = t.step_func(function (dir) {
- dir.readAsText(readAsTextSuccess, readAsTextError);
- });
- 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_readOnly_attribute</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_readOnly_attribute
-//==== PRIORITY P1
-//==== LABEL Check if File::readOnly attribute exists, has type Boolean and is readonly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:readOnly A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA AE AT ARO
-
-var t = async_test(document.title),
- onSuccess, onError;
-t.step(function () {
- onSuccess = t.step_func(function (dir) {
- assert_own_property(dir, "readOnly", "File does not own readOnly property.");
- check_readonly(dir, "readOnly", false, "boolean", true);
- t.done();
- });
- onError = t.step_func(function (error) {
- assert_unreached("Error: " + error.message);
- });
-
- tizen.filesystem.resolve("documents", onSuccess, onError, "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_resolve</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_resolve
-//==== PRIORITY P1
-//==== LABEL Check if File::resolve() method works properly
-//==== 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 MMINA MR
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, listFilesSuccess, i, ds, file,
- fsTestFileName = getFileName("goodFile2.txt");
-t.step(function () {
- listFilesSuccess = t.step_func(function (files) {
- for (i = 0; i < files.length; i++) {
- if (files[i].name === fsTestFileName) {
- file = ds.resolve(fsTestFileName);
- assert_equals(file.name, fsTestFileName, "Attribute check");
- t.done();
- }
- }
- });
- resolveSuccess = t.step_func(function (dir) {
- ds = dir;
- dir.createFile(fsTestFileName);
- dir.listFiles(listFilesSuccess);
- });
- 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>
- Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>File_resolve_exist</title>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: File_resolve_exist
-//==== LABEL Check if File::resolve() method exists
-//==== PRIORITY P0
-//==== 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 ME
-
-var t = async_test(document.title),
- onSuccess, onError;
-t.step(function (){
- onSuccess = t.step_func(function (dir) {
- assert_true("resolve" in dir, "method resolve exists");
- check_method_exists(dir, "resolve");
- t.done();
- });
- onError = t.step_func(function (error) {
- assert_unreached("Error: " + error.message);
- });
-
- tizen.filesystem.resolve("documents", onSuccess, onError, "rw");
-});
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 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:
- Xu Sida <sida.xu@samsung.com>
-
--->
-<html>
-<head>
-<title>File_resolve_filePath_invalid</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_resolve_filePath_invalid
-//==== LABEL Check if File::resolve() throws exception when filePath is invalid
-//==== 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 MC
-
-var t = async_test(document.title), resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_throws(NOT_FOUND_EXCEPTION, function () {
- dir.resolve(true);
- }, NOT_FOUND_EXCEPTION + " should be thrown - invalid filePath.");
- 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>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 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:
- Xu Sida <sida.xu@samsung.com>
-
--->
-<html>
-<head>
-<title>File_resolve_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: File_resolve_misarg
-//==== LABEL Check if File::resolve() throws exception when resolving a file which missing argument
-//==== 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 MMA
-
-var t = async_test(document.title), resolveSuccess, resolveError, fsTestFileName;
-
-t.step(function () {
- fsTestFileName = getFileName("noExistFile.txt");
- resolveSuccess = t.step_func(function (dir) {
- try {
- dir.resolve();
- } catch (error) {
- 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>
\ 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>
-<head>
-<meta charset="utf-8" />
-<title>File_resolve_with_nonexist</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_resolve_with_nonexist
-//==== LABEL Check if File::resolve() throws exception when resolving a file which 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), resolveSuccess, resolveError, fsTestFileName, expected = "NotFoundError";
-
-t.step(function () {
- fsTestFileName = getFileName("noExistFile.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- 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>
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>File_toURI</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_toURI
-//==== PRIORITY P1
-//==== LABEL Check if File::toURI() method works properly
-//==== SPEC: Tizen Web API:IO:Filesystem:File:toURI M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MNA MR
-
-var t = async_test(document.title), resolveSuccess, resolveError, returnedValue, fsTestFileName, fsTestFile;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- returnedValue = fsTestFile.toURI();
- assert_type(returnedValue, "string", "incorrect returned type");
- assert_not_equals(returnedValue, "", "incorrect returned value");
- 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>
+++ /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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>File_toURI_exist</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: File_toURI_exist
-//==== LABEL Check if File::toURI() method exists
-//==== PRIORITY P0
-//==== SPEC Tizen Web API:IO:Filesystem:File:toURI M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA ME
-
-var t = async_test(document.title), resolveSuccess, resolveError;
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- check_method_exists(dir, "toURI");
- 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);
-});
-
-</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>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>File_toURI_extra_argument</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: File_toURI_extra_argument
-//==== PRIORITY P1
-//==== LABEL Check if File::toURI() method accepts extra argument
-//==== SPEC: Tizen Web API:IO:Filesystem:File:toURI M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MNAEX
-
-var t = async_test(document.title), resolveSuccess, resolveError;
-
-t.step(function (){
- resolveSuccess = t.step_func(function (dir) {
- checkExtraArgument(dir, "toURI");
- 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);
-});
-
-</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>
- Ma, YueX <yuex.ma@intel.com>
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>File_toURI_with_nonexist_file</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_toURI_with_nonexist_file
-//==== LABEL Check if File::toURI() method throws exception when get a URI of non-existing file
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:IO:Filesystem:File:toURI M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MNA
-
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, deleteFileSuccess, deleteFileError , fsTestFileName, fsTestFile, returnedValue;
-
-t.step(function () {
- fsTestFileName = getFileName("filesystem.txt");
-
- deleteFileSuccess = t.step_func(function () {
- returnedValue = fsTestFile.toURI();
- assert_type(returnedValue, "string", "wrong type");
- t.done();
- });
-
- deleteFileError = t.step_func(function (error) {
- assert_unreached("deleteFile() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- fsTestFile = dir.createFile(fsTestFileName);
- dir.deleteFile(fsTestFile.fullPath, deleteFileSuccess, deleteFileError);
- });
-
- 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>filesystem_FileStreamSuccessCallback_onsuccess</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: filesystem_FileStreamSuccessCallback_onsuccess
-//==== PRIORITY P1
-//==== LABEL Test whether FileStreamSuccessCallback::onsuccess is called with valid argument
-//==== SPEC Tizen Web API:IO:Filesystem:FileStreamSuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA CBOA
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, openStreamSuccess, openStreamError, file,
- fsTestFileName = getFileName("successFile.txt");
-
-t.step(function () {
- openStreamSuccess = t.step_func(function (fs) {
- assert_not_equals(fs, null, "fs should not be null");
- 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("w", 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>filesystem_File_copyTo</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: filesystem_File_copyTo
-//==== LABEL Check if File::copyTo() can be called
-//==== PRIORITY P0
-//==== 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 MOA
-
-var t = async_test(document.title),
- createFile, resolveSuccess, resolveError, copyToSuccess, copyToError,
- fsTestFileName = getFileName("copyFile.txt");
-
-t.step(function (){
- copyToSuccess = t.step_func(function () {
- t.done();
- });
- copyToError = t.step_func(function (error) {
- assert_unreached("copyTo() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- createFile = dir.createFile(fsTestFileName);
- dir.copyTo(createFile.fullPath, "downloads/" + createFile.name, 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("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>filesystem_File_readAsText</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: filesystem_File_readAsText
-//==== PRIORITY P1
-//==== LABEL Check if File::readAsText() method reads the content of a file as a DOMString
-//==== SPEC Tizen Web API:IO:Filesystem:File:readAsText M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-var t = async_test(document.title), text = "test write method",
- testFile, resolveSuccess, resolveError, openStreamSuccess, openStreamError,
- readAsTextSuccess, readAsTextError,
- fsTestFileName = getFileName("write01.txt");
-
-t.step(function (){
- readAsTextSuccess = t.step_func(function (str) {
- assert_equals(str, text, "text read from file is wrong");
- t.done();
- });
- readAsTextError = t.step_func(function (error) {
- assert_unreached("readAsText() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- openStreamSuccess = t.step_func(function (fs) {
- fs.write(text);
- fs.close();
- testFile.readAsText(readAsTextSuccess, readAsTextError, "UTF-8");
- });
- openStreamError = t.step_func(function (error) {
- assert_unreached("openStream() error callback invoked: name: " + error.name + ", msg: " + error.message);
- });
-
- resolveSuccess = t.step_func(function (dir) {
- testFile = dir.createFile(fsTestFileName);
- testFile.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>filesystem_File_resolve</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: filesystem_File_resolve
-//==== PRIORITY P1
-//==== LABEL Check if File::resolve() method called for a file returns a file handle
-//==== 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 MMINA
-
-var t = async_test(document.title),
- resolveSuccess, resolveError, expected = "object", handle,
- fsTestFileName = getFileName("resolve.doc");
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- dir.createFile(fsTestFileName);
- handle = dir.resolve(fsTestFileName);
- assert_equals(typeof(handle), expected, "resolve a file and return a file handle");
- 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>
parent.deleteFile(file.fullPath, onSuccess, onError);
}
-function resolve_root_location(handler) {
- function on_resolve_error(err) {
- assert_false("resolve error: [" + err.name + "]", "error during resolving the root location");
- }
-
- function on_resolve_success(file) {
- assert_true(isFileObject(file), "resolve()");
- handler(file);
- }
- tizen.filesystem.resolve(TEST_ROOT_LOCATION, on_resolve_success, on_resolve_error);
-}
function getFileName(fileName) {
return FILE_AND_DIR_NAME_PREFIX + "_" + fileName;
}));
}
-function prepareForTesting(test, successCallback) {
- var i, j, toRemoveCounter = 0, dirCounter = 0, deleteSuccess, deleteError, filesToRemove = 0,
- resolveSuccess, resolveError, listFilesSuccess, listFilesError,
- filterRegExp = new RegExp("^" + FILE_AND_DIR_NAME_PREFIX),
- rootDirectories = ["documents", "images", "music", "videos", "downloads", "camera"];
-
- deleteError = test.step_func(function (error) {
- assert_unreached("delete() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- deleteSuccess = test.step_func(function () {
- filesToRemove--;
- toRemoveCounter--;
- if ((dirCounter === rootDirectories.length) && (toRemoveCounter === 0) && (filesToRemove === 0)) {
- test.step_func(successCallback)();
- }
- });
-
- listFilesSuccess = test.step_func(function (files) {
- dirCounter++;
- filesToRemove += files.length;
- for (j = 0; j < files.length; j++) {
- if (files[j].name.search(filterRegExp) > -1) {
- toRemoveCounter++;
- if (files[j].isDirectory) {
- files[j].parent.deleteDirectory(files[j].fullPath, true, deleteSuccess, deleteError);
- } else {
- files[j].parent.deleteFile(files[j].fullPath, deleteSuccess, deleteError);
- }
- } else {
- filesToRemove--;
- }
- }
- if ((dirCounter === rootDirectories.length) && (toRemoveCounter === 0) && (filesToRemove === 0)) {
- test.step_func(successCallback)();
- }
- });
-
- listFilesError = test.step_func(function (error) {
- assert_unreached("listFiles() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- resolveSuccess = test.step_func(function (dir) {
- dir.listFiles(listFilesSuccess, listFilesError);
- });
-
- resolveError = test.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- for (i =0; i < rootDirectories.length; i++) {
- tizen.filesystem.resolve(rootDirectories[i], resolveSuccess, resolveError, "rw");
- }
-}
-
function checkOwnProperties(fileHandle) {
var i, len, fileProperties = ["parent", "readOnly", "isFile", "isDirectory", "created", "modified", "path",
"name", "fullPath", "fileSize", "length"];
<test_definition>
<suite name="tct-filesystem-tizen-tests" extension="crosswalk" category="Tizen Web Device APIs">
<set name="Filesystem" type="js">
- <testcase purpose="Interface FileArraySuccessCallback should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileArraySuccessCallback_notexist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileArraySuccessCallback_notexist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileArraySuccessCallback" usage="true" 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="Test whether FileArraySuccessCallback::onsuccess is called with valid argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileArraySuccessCallback_onsuccess">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileArraySuccessCallback_onsuccess.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileArraySuccessCallback" element_type="method" element_name="onsuccess" 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="Interface FileStreamSuccessCallback should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileStreamSuccessCallback_notexist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStreamSuccessCallback_notexist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStreamSuccessCallback" usage="true" 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="Test whether FileStreamSuccessCallback::onsuccess is called with argument of proper type" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileStreamSuccessCallback_onsuccess">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStreamSuccessCallback_onsuccess.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStreamSuccessCallback" element_type="method" element_name="onsuccess" 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::bytesAvailable attribute exist, is of proper type" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileStream_bytesAvailable_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_bytesAvailable_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="attribute" element_name="bytesAvailable" 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::close() method works" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_close">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_close.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="close" 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::close() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="FileStream_close_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_close_exist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="close" 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::close() method can be called with extra arguments" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileStream_close_extra_argument">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_close_extra_argument.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="close" 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::eof attribute exists, is Boolean" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileStream_eof_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_eof_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="attribute" element_name="eof" 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="Test whether instance of FileStream can be extended with new attribute" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileStream_extend">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_extend.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" usage="true" 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="Interface FileStream should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileStream_notexist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_notexist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" usage="true" 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::position attribute exists, is of proper type, can be changed" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_position_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_position_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="attribute" element_name="position" 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() method works properly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileStream_read">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read.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::readBase64() method works" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileStream_readBase64">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64.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() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="FileStream_readBase64_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_exist.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>
- </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 you can create a new file, write content to it, and then read the content of the file as base64" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileStream_readBase64_writeFile">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_writeFile.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" usage="true" 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() method works properly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileStream_readBytes">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes.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() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="FileStream_readBytes_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_exist.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>
- </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 you can create a new file, write content to it, and then read the content of the file as a byte array" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileStream_readBytes_writeFile">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_writeFile.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" usage="true" 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() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="FileStream_read_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_exist.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>
- </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 you can create a new file, write content to it, and then read the content of the file" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileStream_read_writeFile">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_writeFile.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" usage="true" 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::write() method works properly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileStream_write">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_write.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="write" 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::writeBase64() method works properly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileStream_writeBase64">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="writeBase64" 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::writeBase64() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="FileStream_writeBase64_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_exist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="writeBase64" 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::writeBase64() throws exception when writing to a file opened in 'r' mode" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_writeBase64_without_w_permission">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_without_w_permission.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="writeBase64" 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::writeBytes() method works properly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileStream_writeBytes">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="writeBytes" 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::writeBytes() throws exception for wrong type of byteData" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_writeBytes_byteData_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_byteData_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="writeBytes" 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::writeBytes() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="FileStream_writeBytes_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_exist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="writeBytes" 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::writeBytes() method throws exception for missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileStream_writeBytes_missarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_missarg.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="writeBytes" 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::writeBytes() method properly writes the specified bytes to file" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileStream_writeBytes_with_additional_null_parameter">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_with_additional_null_parameter.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="writeBytes" 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::writeBytes() throws exception when writing to a file opened in 'r' mode" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_writeBytes_without_w_permission">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_without_w_permission.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="writeBytes" 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::write() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="FileStream_write_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_write_exist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="write" 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::write() throws exception when writing to a file opened in 'r' mode" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_write_without_w_permission">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_write_without_w_permission.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="write" 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="Interface FileStringSuccessCallback should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileStringSuccessCallback_notexist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStringSuccessCallback_notexist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStringSuccessCallback" usage="true" 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="Test whether FileStringSuccessCallback::onsuccess is called with valid argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileStringSuccessCallback_onsuccess">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStringSuccessCallback_onsuccess.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileStringSuccessCallback" element_type="method" element_name="onsuccess" 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="Interface FileSuccessCallback should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSuccessCallback_notexist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSuccessCallback_notexist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSuccessCallback" usage="true" 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="Test whether FileSuccessCallback::onsuccess is called with valid argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSuccessCallback_onsuccess">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSuccessCallback_onsuccess.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSuccessCallback" element_type="method" element_name="onsuccess" 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="Interface FileSystemManagerObject should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemManagerObject_notexist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManagerObject_notexist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManagerObject" usage="true" 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::addStorageStateChangeListener() method can be called" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="manual" priority="P1" id="FileSystemManager_addStorageStateChangeListener">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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::addStorageStateChangeListener() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="FileSystemManager_addStorageStateChangeListener_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_exist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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::addStorageStateChangeListener() method throws exception for missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_addStorageStateChangeListener_missarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_missarg.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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::addStorageStateChangeListener() throws exception for wrong type of onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_addStorageStateChangeListener_onerror_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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::addStorageStateChangeListener() throws exception for wrong onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_addStorageStateChangeListener_onerror_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_invalid_cb.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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::addStorageStateChangeListener() throws exception for wrong type of onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_addStorageStateChangeListener_onsuccess_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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::addStorageStateChangeListener() throws exception for wrong onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_addStorageStateChangeListener_onsuccess_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onsuccess_invalid_cb.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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::addStorageStateChangeListener() can be called with onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="manual" priority="P1" id="FileSystemManager_addStorageStateChangeListener_with_onerror">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_with_onerror.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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::addStorageStateChangeListener() throws exception for missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_addStorageStateChangeListener_without_arguments">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_without_arguments.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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 instance of FileSystemManager can be extended with new property" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemManager_extend">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_extend.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" usage="true" 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::getStorage() calls onsuccess callback" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_getStorage">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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::getStorage() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_getStorage_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_exist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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::getStorage() throws exception for missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_getStorage_missarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_missarg.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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::getStorage() throws exception for wrong type of onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_getStorage_onerror_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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::getStorage() throws exception for wrong onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_getStorage_onerror_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_invalid_cb.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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::getStorage() throws exception for wrong type of onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_getStorage_onsuccess_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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::getStorage() throws exception for wrong onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_getStorage_onsuccess_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_invalid_cb.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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::getStorage() throws an exception when storage with given label does not exist" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_getStorage_with_nonexist_label">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_with_nonexist_label.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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::getStorage() can be called with onerror callback" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_getStorage_with_onerror">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_with_onerror.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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 tizen namespace contains filesystem" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemManager_in_tizen">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_in_tizen.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" usage="true" 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::listStorages() method works" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_listStorages">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::listStorages() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_listStorages_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_exist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::listStorages() throws exception for missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_listStorages_missarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_missarg.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::listStorages() method throws exception for wrong type of onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_listStorages_onerror_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::listStorages() method throws exception for wrong onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_listStorages_onerror_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_invalid_cb.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::listStorages() method throws exception for wrong type of onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_listStorages_onsuccess_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::listStorages() method throws exception for wrong onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_listStorages_onsuccess_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_invalid_cb.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::listStorages() method properly retrieves the available storages on the device" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_listStorages_storages_retrieve">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_storages_retrieve.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::listStorages() method throws exception for wrong type of onerror (literals)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_listStorages_with_invalid_error_callbacks">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_with_invalid_error_callbacks.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::listStorages() can be called with onerror argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_listStorages_with_onerror">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_with_onerror.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::listStorages() method throws exception for missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_listStorages_without_arguments">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_without_arguments.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::listStorages() method invokes onsuccess callback" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_listStorages_works_correctly">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_works_correctly.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::maxPathLength attribute exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_maxPathLength_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_maxPathLength_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="attribute" element_name="maxPathLength" 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="Interface FileSystemManager should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemManager_notexist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_notexist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" usage="true" 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::removeStorageStateChangeListener() method works with only mandatory arguments" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="manual" priority="P1" id="FileSystemManager_removeStorageStateChangeListener">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="removeStorageStateChangeListener" 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::removeStorageStateChangeListener() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_removeStorageStateChangeListener_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_exist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="removeStorageStateChangeListener" 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::removeStorageStateChangeListener() method throws NotFoundError when given invalid watchId" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_removeStorageStateChangeListener_with_para_invalid">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_with_para_invalid.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="removeStorageStateChangeListener" 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::removeStorageStateChangeListener() method can be called with valid watchId" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_removeStorageStateChangeListener_works_correctly">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_works_correctly.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="removeStorageStateChangeListener" 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() method can be called with only mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_resolve">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve.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() method works for Documents virtual root" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_documents">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_documents.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() method works for Downloads virtual root" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_downloads">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_downloads.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() method reports NotFoundError by onerror for wrong value of location argument (absolute)" 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/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() method exists" 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>
- </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() method works for Images virtual root" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_resolve_images">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_images.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>
- </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() method throws exception for wrong value of mode argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_mode_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_TypeMismatch.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() method works for Documents virtual root and mode 'a'" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_mode_a">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for Documents virtual root and mode 'r'" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_mode_r">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_r.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() method works for Documents virtual root and mode 'w'" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_mode_w">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for Music virtual root" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_music">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_music.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() method throws exception for wrong type of onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_onerror_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onerror_TypeMismatch.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() method throws exception for wrong onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_onerror_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onerror_invalid_cb.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() method throws exception for wrong type of onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_onsuccess_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onsuccess_TypeMismatch.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() method throws exception for wrong onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_onsuccess_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onsuccess_invalid_cb.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() method works for Ringtones virtual root" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_resolve_ringtones">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones.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() method reports InvalidValuesError when resolving Ringtones directory with mode 'a'" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" 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>
- <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() method reports InvalidValuesError when resolving Ringtones directory with mode 'rw'" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" 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>
- <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() method reports InvalidValuesError when resolving Ringtones directory with mode 'w'" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" 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>
- <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() method works for Videos virtual root" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_videos">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_videos.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() method reports InvalidValuesError when resolving 'wgt-package' directory 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>
- <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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method reports InvalidValuesError when resolving 'wgt-package' directory 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>
- <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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method reports InvalidValuesError when resolving 'wgt-package' directory 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>
- <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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for 'wgt-package' virtual root" 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>
- </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() method works for 'wgt-private' virtual root" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_resolve_wgt_private">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt_private.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() method works for 'wgt-private-tmp' virtual root" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_resolve_wgt_private_tmp">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt_private_tmp.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() method works for Images virtual root with mode 'rw'" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_resolve_with_mode">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_with_mode.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() method can be called with onerror argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_with_onerror">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_with_onerror.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() method works for Documents and onsuccess is invoked with proper argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_resolve_works_correctly">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_works_correctly.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="Interface FileSystemStorageArraySuccessCallback should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemStorageArraySuccessCallback_notexist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageArraySuccessCallback_notexist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemStorageArraySuccessCallback" usage="true" 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="Test whether FileSystemStorageArraySuccessCallback::onsuccess is called with valid argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemStorageArraySuccessCallback_onsuccess">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageArraySuccessCallback_onsuccess.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemStorageArraySuccessCallback" element_type="method" element_name="onsuccess" 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="Interface FileSystemStorageSuccessCallback should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemStorageSuccessCallback_notexist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageSuccessCallback_notexist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemStorageSuccessCallback" usage="true" 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="Test whether FileSystemStorageSuccessCallback::onsuccess is called with valid argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemStorageSuccessCallback_onsuccess">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageSuccessCallback_onsuccess.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemStorageSuccessCallback" element_type="method" element_name="onsuccess" 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 instance of FileSystemStorage object can be extended with new attribute" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemStorage_extend">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_extend.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemStorage" usage="true" 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 FileSystemStorage::label attribute exists, has type DOMString and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemStorage_label_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_label_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemStorage" element_type="attribute" element_name="label" 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="Interface FileSystemStorage should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemStorage_notexist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_notexist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemStorage" usage="true" 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 FileSystemStorage::state attribute exists, has type FileSystemStorageState and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemStorage_state_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_state_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemStorage" element_type="attribute" element_name="state" 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 FileSystemStorage::type attribute exists, has type FileSystemStorageType and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemStorage_type_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_type_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="FileSystemStorage" element_type="attribute" element_name="type" 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 ends successfully (copy file from documents/ to images/)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo.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 error callback is invoked when copy a directory to another location where directory of that name already exists (overwrite is false)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" 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>
- <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 copy a directory to another location where directory of that name already exists (overwrite is true)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" 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>
- <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 error callback is invoked when copy directory dir1/subdir1 into dir1/ (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>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if error callback is invoked when copy directory dir1/subdir1 into dir1/ (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>
- <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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if File::copyTo() method exists" 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>
- </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 error callback is invoked when copy a file to another directory where a file of that name already exists (overwrite is false)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" 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>
- <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 copy a file to another directory where a file of that name already exists (overwrite is true)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" 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>
- <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 error callback is invoked when copy a file to the same location (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>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if error callback is invoked when copy a file to the same location (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>
- <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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if File::copyTo() throws exception when type of errorCallback is wrong" 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>
- </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() throws exception for wrong errorCallback" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_onerror_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_onerror_invalid_cb.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() throws exception when type of successCallback is wrong" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_onsuccess_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_onsuccess_TypeMismatch.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() throws exception for wrong successCallback" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_onsuccess_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_onsuccess_invalid_cb.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>
- </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>
- </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 (nonexisting originFilePath)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_with_onerror">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_onerror.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() with onSuccess creates a file copy" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_with_onsuccess">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_onsuccess.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>
- </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 when create a new empty file, write content into it, then request a copy of it over existing file invokes errorCallback (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_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.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, different directory)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_writeFile_subdir">
- <description>
- <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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if File::createDirectory() method" 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/topic/org.tizen.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if File::createDirectory() method exists" 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>
- <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/topic/org.tizen.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if File::createDirectory() works for non-existing intermediate directory (creates 2 levels of directories)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_createDirectory_level2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createDirectory_level2.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/topic/org.tizen.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if File::createFile() method works properly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_createFile">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createFile.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::createFile() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="File_createFile_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createFile_exist.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::createFile() throws exception when the file already exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_createFile_existing_file">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createFile_existing_file.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>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="attribute" element_name="created" 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::deleteDirectory() method can be called" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteDirectory">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::createDirectory() creates a new directory in Documents and File::deleteDirectory() removes it" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteDirectory_createDir_documents">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_documents.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::createDirectory() creates a new directory in Downloads and File::deleteDirectory() removes it" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteDirectory_createDir_downloads">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_downloads.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::createDirectory() creates a new directory in Images and File::deleteDirectory() removes it" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteDirectory_createDir_images">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_images.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::createDirectory() creates a new directory in Music and File::deleteDirectory() removes it" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteDirectory_createDir_music">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_music.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::createDirectory() creates a new directory in Videos and File::deleteDirectory() removes it" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteDirectory_createDir_videos">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_videos.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::deleteDirectory() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="File_deleteDirectory_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_exist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::deleteDirectory() throws exception for wrong type of onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_deleteDirectory_onerror_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_onerror_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::deleteDirectory() throws exception for wrong onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_deleteDirectory_onerror_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_onerror_invalid_cb.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::deleteDirectory() throws exception for wrong type of onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_deleteDirectory_onsuccess_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::deleteDirectory() throws exception for wrong onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_deleteDirectory_onsuccess_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_onsuccess_invalid_cb.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::deleteDirectory() calls errorCallback when given directoryPath is empty" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteDirectory_with_empty_path">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_with_empty_path.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::deleteDirectory() calls errorCallback when called on File object representing file, not a directory" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_deleteDirectory_with_file_handle">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_with_file_handle.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::deleteDirectory() method can be called with null onsuccess and onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteDirectory_with_null_callbacks">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_with_null_callbacks.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::deleteDirectory() method calls onerror properly (when removing non-existing directory)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteDirectory_with_onerror">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_with_onerror.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::deleteDirectory() method with onsuccess optional argument works properly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteDirectory_with_onsuccess">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_with_onsuccess.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" 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::deleteFile() method works properly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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 file in Document, copy it into Downloads, then request removing it" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile_copyFile_downloads">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_copyFile_downloads.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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 file in Images, copy it into Downloads, then request removing it" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile_copyFile_images">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_copyFile_images.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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 file in Music, copy it into Downloads, then request removing it" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile_copyFile_music">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_copyFile_music.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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 file in Video, copy it into Downloads, then request removing it" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile_copyFile_videos">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_copyFile_videos.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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 file in Documents, copy it into Downloads, then request removing it" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile_createFile">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_createFile.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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::deleteFile() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="File_deleteFile_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_exist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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 directories and file in Documents, list them, then request deleting the directory and the file" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile_listDocumentsFiles">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listDocumentsFiles.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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 directories and file in Downloads, list them, then request deleting the directory and the file" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile_listDownloadsFiles">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listDownloadsFiles.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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 directories and file in Images, list them, then request deleting the directory and the file" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile_listImagsFiles">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listImagsFiles.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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 directories and file in Music, list them, then request deleting the directory and the file" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile_listMusicFiles">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listMusicFiles.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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 directories and file in Videos, list them, then request deleting the directory and the file" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile_listVideosfiles">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listVideosfiles.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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::deleteFile() throws exception for wrong type of onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_deleteFile_onerror_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_onerror_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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::deleteFile() throws exception for wrong onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_deleteFile_onerror_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_onerror_invalid_cb.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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::deleteFile() throws exception for wrong type of onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_deleteFile_onsuccess_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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::deleteFile() throws exception for wrong onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_deleteFile_onsuccess_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_onsuccess_invalid_cb.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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::deleteFile() calls errorCallback when called on File object representing file, not a directory" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_deleteFile_with_dir_handle">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_dir_handle.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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::deleteFile() calls errorCallback when given filePath does not exist" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_deleteFile_with_nonexist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_nonexist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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::deleteFile() method calls errorCallback properly (when removing non-existing file)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile_with_onerror">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_onerror.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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::deleteFile() method calls given onsuccess callback" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile_with_onsuccess">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_onsuccess.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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::deleteFile() can be called with onsuccess and onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile_with_vaild_callbacks">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_vaild_callbacks.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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::deleteFile() method can be called without onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile_with_valid_filePath">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_valid_filePath.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" 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 instance of File can be extended with new property" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="File_extend">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_extend.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" usage="true" 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::fileSize attribute exists, has type Number and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_fileSize_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_fileSize_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="attribute" element_name="fileSize" 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::fullPath attribute exists, has type DOMString and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_fullPath_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_fullPath_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="attribute" element_name="fullPath" 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::isDirectory attribute exists, has type Boolean and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_isDirectory_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_isDirectory_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="attribute" element_name="isDirectory" 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::isFile attribute exists, has type Boolean and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_isFile_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_isFile_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="attribute" element_name="isFile" 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::length attribute exists, has type Number and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_length_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_length_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="attribute" element_name="length" 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::listFiles() method works properly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_listFiles">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="listFiles" 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 directory and then list files in this directory" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_listFiles_createFiles">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_createFiles.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="listFiles" 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::listFiles() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="File_listFiles_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_exist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="listFiles" 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::listFiles() method throws exception for wrong type of filter" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_listFiles_filter_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_filter_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="listFiles" 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::listFiles() can be called with empty object as filter argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_listFiles_filter_empty">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_filter_empty.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="listFiles" 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::listFiles() with missing mandatory argument throws exception" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_listFiles_missarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_missarg.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="listFiles" 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::listFiles() throws exception for wrong type of onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_listFiles_onerror_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_onerror_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="listFiles" 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::listFiles() throws exception for wrong onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_listFiles_onerror_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_onerror_invalid_cb.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="listFiles" 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::listFiles() throws exception for wrong type of onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_listFiles_onsuccess_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="listFiles" 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::listFiles() throws exception for wrong onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_listFiles_onsuccess_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_onsuccess_invalid_cb.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="listFiles" 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::listFiles() calls errorCallback when called on File object representing file, not a directory" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_listFiles_with_file_handle">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_with_file_handle.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="listFiles" 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::listFiles() works with filter argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_listFiles_with_filter">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_with_filter.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="listFiles" 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::listFiles() calls errorCallback (listing files of a file)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_listFiles_with_onerror">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_with_onerror.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="listFiles" 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::listFiles() call onsuccess callback" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_listFiles_with_valid_successCallback">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_with_valid_successCallback.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="listFiles" 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::modified attribute exists, has type Date and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_modified_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_modified_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="attribute" element_name="modified" 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() can be called successfully" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo.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() invokes error callback when moving 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>
- <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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if File::moveTo() invokes error callback when moving 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>
- <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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if File::moveTo() invokes error callback when originFilePath and destinationFilePath are empty" 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>
- </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() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="File_moveTo_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_exist.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() invokes error callback when moving 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_moveTo_file_samedir_samename_overwrite_false">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if File::moveTo() error callback when moving 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>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_overwrite_true.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() throws exception for wrong type of onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_onerror_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_onerror_TypeMismatch.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() throws exception for wrong onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_onerror_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_onerror_invalid_cb.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() throws exception for wrong type of onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_onsuccess_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_onsuccess_TypeMismatch.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() throws exception for wrong onsuccess" 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>
- <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() method can be invoked with extra null parameter" 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>
- <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 when called on File object representing file, not a directory" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" 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>
- <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>
- </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 successCallback" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_with_onsuccess">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_onsuccess.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 (NotFound) when destinationFilePath is in non-existing directory" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_with_path_invalid">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_path_invalid.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 you can create a new file, write content to it, and then move the file to the same directory with different file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_writeFile_newName">
- <description>
- <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.web.device.apireference/tizen/filesystem.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
- <testcase purpose="Check if File::moveTo() calls errorCallback when originFilePath and destinationFilePath is the same path (overwrite false)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" 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>
- <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 you can create a new file, write content to it, and then move the file to a subdirectory keeping the name of the file" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_writeFile_subdir">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_subdir.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::name attribute exists, has type DOMString and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_name_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_name_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="attribute" element_name="name" 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="Interface File should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="File_notexist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_notexist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" usage="true" 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::openStream() method works properly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_openStream">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::openStream() throws an exception for invalid encoding value" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_openStream_encoding_invalid">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_encoding_invalid.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::openStream() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="File_openStream_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_exist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::openStream() method throws exception for missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_openStream_missarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_missarg.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::openStream() throws exception for wrong type of mode argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_openStream_mode_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::openStream() works for mode a" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_openStream_mode_a">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_a.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::openStream() works for mode r" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_openStream_mode_r">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_r.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::openStream() works for mode rw" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_openStream_mode_rw">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_rw.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::openStream() works for mode w" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_openStream_mode_w">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_w.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::openStream() method throws exception for wrong type of onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_openStream_onerror_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_onerror_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::openStream() method throws exception for wrong onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_openStream_onerror_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_onerror_invalid_cb.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::openStream() method throws exception for wrong type of onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_openStream_onsuccess_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::openStream() method throws exception for wrong onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_openStream_onsuccess_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_onsuccess_invalid_cb.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::openStream() method can be called with valid encoding argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_openStream_with_encoding">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_with_encoding.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::openStream() method calls errorCallback when invoked for file which was already removed" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_openStream_with_nonexist_file">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_with_nonexist_file.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::openStream() method calls errorCallback properly (openStream used on directory)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_openStream_with_onerror">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_with_onerror.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" 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::parent attribute exists, has type File and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_parent_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_parent_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="attribute" element_name="parent" 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::parent attribute is set by resolve() for subdirectory of Documents" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_parent_attribute_notnull_using_resolve">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_parent_attribute_notnull_using_resolve.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="attribute" element_name="parent" 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::path attribute exists, has type DOMString and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_path_attribute">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_path_attribute.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="attribute" element_name="path" 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::readAsText() method works properly without errorCallback" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_readAsText">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" 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::readAsText() method throws exception for invalid encoding value" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_readAsText_encoding_invalid">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_encoding_invalid.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" 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::readAsText() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="File_readAsText_exist">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_exist.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" 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::readAsText() method works for a file created in Documents" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_readAsText_listDocumentsFiles">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listDocumentsFiles.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" 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::readAsText() method works for a file created in Downloads" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_readAsText_listDownloadsFiles">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listDownloadsFiles.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" 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::readAsText() method works for a file created in Images" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_readAsText_listImagesFiles">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listImagesFiles.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" 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::readAsText() method works for a file created in Music" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_readAsText_listMusicFiles">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listMusicFiles.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" 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::readAsText() method works for a file created in Videos" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_readAsText_listVideosFiles">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listVideosFiles.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" 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::readAsText() throws exception for missing mandatory parameter" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_readAsText_missarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_missarg.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" 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::readAsText() method throws exception for wrong type of onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_readAsText_onerror_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_onerror_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" 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::readAsText() method throws exception for wrong onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_readAsText_onerror_invalid_cb">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_onerror_invalid_cb.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" 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::readAsText() method throws exception for wrong type of onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_readAsText_onsuccess_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" 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::readAsText() method throws exception for wrong onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_readAsText_onsuccess_invalid_cb">
+ <testcase purpose="Interface FileSystemManagerObject should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemManagerObject_notexist">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_onsuccess_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManagerObject_notexist.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManagerObject" usage="true" 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::readAsText() method works with encoding argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_readAsText_with_encoding">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() method can be called" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="manual" priority="P1" id="FileSystemManager_addStorageStateChangeListener">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_with_encoding.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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::readAsText() properly calls errorCallback (called on a directory instead of file)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_readAsText_with_onerror">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="FileSystemManager_addStorageStateChangeListener_exist">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_with_onerror.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_exist.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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::readOnly attribute exists, has type Boolean and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_readOnly_attribute">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() method throws exception for missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_addStorageStateChangeListener_missarg">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readOnly_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_missarg.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="attribute" element_name="readOnly" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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() method works properly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_resolve">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() throws exception for wrong type of onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_addStorageStateChangeListener_onerror_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_resolve.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_TypeMismatch.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_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="File_resolve_exist">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() throws exception for wrong onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_addStorageStateChangeListener_onerror_invalid_cb">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_resolve_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_invalid_cb.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_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() throws exception for wrong type of onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_addStorageStateChangeListener_onsuccess_TypeMismatch">
<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/FileSystemManager_addStorageStateChangeListener_onsuccess_TypeMismatch.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_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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::toURI() method works properly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_toURI">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() throws exception for wrong onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_addStorageStateChangeListener_onsuccess_invalid_cb">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_toURI.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onsuccess_invalid_cb.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="toURI" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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::toURI() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="File_toURI_exist">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() can be called with onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="manual" priority="P1" id="FileSystemManager_addStorageStateChangeListener_with_onerror">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_toURI_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_with_onerror.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="toURI" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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::toURI() method accepts extra argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_toURI_extra_argument">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() throws exception for missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_addStorageStateChangeListener_without_arguments">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_toURI_extra_argument.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_without_arguments.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="toURI" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="addStorageStateChangeListener" 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::toURI() method throws exception when get a URI of non-existing file" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_toURI_with_nonexist_file">
+ <testcase purpose="Check if instance of FileSystemManager can be extended with new property" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemManager_extend">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_toURI_with_nonexist_file.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_extend.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="toURI" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" usage="true" 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="Test whether FileStreamSuccessCallback::onsuccess is called with valid argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="filesystem_FileStreamSuccessCallback_onsuccess">
+ <testcase purpose="Check if FileSystemManager::getStorage() calls onsuccess callback" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_getStorage">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/filesystem_FileStreamSuccessCallback_onsuccess.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="FileStreamSuccessCallback" element_type="method" element_name="onsuccess" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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 called" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="filesystem_File_copyTo">
+ <testcase purpose="Check if FileSystemManager::getStorage() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_getStorage_exist">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/filesystem_File_copyTo.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_exist.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_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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::readAsText() method reads the content of a file as a DOMString" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="filesystem_File_readAsText">
+ <testcase purpose="Check if FileSystemManager::getStorage() throws exception for missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_getStorage_missarg">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/filesystem_File_readAsText.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_missarg.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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() method called for a file returns a file handle" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="filesystem_File_resolve">
+ <testcase purpose="Check if FileSystemManager::getStorage() throws exception for wrong type of onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_getStorage_onerror_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/filesystem_File_resolve.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_TypeMismatch.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_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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() method work for invalid location" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_location_invalid">
+ <testcase purpose="Check if FileSystemManager::getStorage() throws exception for wrong onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_getStorage_onerror_invalid_cb">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_location_invalid.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_invalid_cb.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_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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 errorcallback of FileSystemManager::resolve() method can be invoked when location is wrong type" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_errorCallback_invoked">
+ <testcase purpose="Check if FileSystemManager::getStorage() throws exception for wrong type of onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_getStorage_onsuccess_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_errorCallback_invoked.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_TypeMismatch.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_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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::getStorage() throws an exception when given wrong type of label" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_getStorage_errorCallback_invoked">
+ <testcase purpose="Check if FileSystemManager::getStorage() throws exception for wrong onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_getStorage_onsuccess_invalid_cb">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_errorCallback_invoked.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_invalid_cb.html</test_script_entry>
</description>
<specs>
<spec>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if FileSystemManager::removeStorageStateChangeListener() with missing mandatory argument throws exception" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_removeStorageStateChangeListener_misarg">
+ <testcase purpose="Check if FileSystemManager::getStorage() throws an exception when storage with given label does not exist" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_getStorage_with_nonexist_label">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_misarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_with_nonexist_label.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="FileSystemManager" element_type="method" element_name="removeStorageStateChangeListener" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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::openStream() method throws exception for wrong mode" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_openStream_mode_invalid">
+ <testcase purpose="Check if FileSystemManager::getStorage() can be called with onerror callback" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_getStorage_with_onerror">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_invalid.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_with_onerror.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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 copyTo method called with invalid destinationFilePath does what it should" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_destinationFilePath_invalid">
+ <testcase purpose="Check if tizen namespace contains filesystem" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemManager_in_tizen">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_destinationFilePath_invalid.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_in_tizen.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_assertion interface="FileSystemManager" usage="true" 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 copyTo method called with invalid originFilePath does what it should" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_originFilePath_invalid">
+ <testcase purpose="Check if FileSystemManager::listStorages() method works" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_listStorages">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_originFilePath_invalid.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages.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_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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 createDirectory method throws exception with missing non-optional argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_createDirectory_misarg">
+ <testcase purpose="Check if FileSystemManager::listStorages() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_listStorages_exist">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createDirectory_misarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_exist.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_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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 with missing non-optional argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_resolve_misarg">
+ <testcase purpose="Check if FileSystemManager::listStorages() throws exception for missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_listStorages_missarg">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_resolve_misarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_missarg.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_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::deleteDirectory() throws exception with missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_deleteDirectory_misarg">
+ <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for wrong type of onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_listStorages_onerror_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_misarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_TypeMismatch.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::path attribute has proper value limitation" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_path_attribute_limitation">
+ <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for wrong onerror" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_listStorages_onerror_invalid_cb">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_path_attribute_limitation.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_invalid_cb.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="attribute" element_name="path" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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 with missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_read_misarg">
+ <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for wrong type of onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_listStorages_onsuccess_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_misarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_TypeMismatch.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_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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 an exception when given wrong type of charCount" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_read_TypeMismatch">
+ <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for wrong onsuccess" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_listStorages_onsuccess_invalid_cb">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_invalid_cb.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_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::createDirectory() throws exception when dirPath is invalid." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_createDirectory_dirPath_invalid">
+ <testcase purpose="Check if FileSystemManager::listStorages() method properly retrieves the available storages on the device" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_listStorages_storages_retrieve">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createDirectory_dirPath_invalid.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_storages_retrieve.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_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::openStream() method works properly when the encoding is ISO-8859-1" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_openStream_with_encoding_not_default">
+ <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for wrong type of onerror (literals)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_listStorages_with_invalid_error_callbacks">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_with_encoding_not_default.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_with_invalid_error_callbacks.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="openStream" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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::readAsText() method works properly when the encoding is ISO-8859-1" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_readAsText_with_encoding_not_default">
+ <testcase purpose="Check if FileSystemManager::listStorages() can be called with onerror argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_listStorages_with_onerror">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_with_encoding_not_default.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_with_onerror.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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 with missing argument - copyTo" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_misarg">
+ <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_listStorages_without_arguments">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_misarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_without_arguments.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_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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 with no argument - copyTo" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_noarg">
+ <testcase purpose="Check if FileSystemManager::listStorages() method invokes onsuccess callback" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_listStorages_works_correctly">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_noarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_works_correctly.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_assertion interface="FileSystemManager" element_type="method" element_name="listStorages" 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() throws exception without mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_noarg">
+ <testcase purpose="Check if FileSystemManager::maxPathLength attribute exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_maxPathLength_attribute">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_noarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_maxPathLength_attribute.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_assertion interface="FileSystemManager" element_type="attribute" element_name="maxPathLength" 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() throws exception with missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_misarg">
+ <testcase purpose="Interface FileSystemManager should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemManager_notexist">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_misarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_notexist.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_assertion interface="FileSystemManager" usage="true" 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::createDirectory() throws exception when dirPath is invalid." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_resolve_filePath_invalid">
+ <testcase purpose="Check if FileSystemManager::removeStorageStateChangeListener() method works with only mandatory arguments" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="manual" priority="P1" id="FileSystemManager_removeStorageStateChangeListener">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_resolve_filePath_invalid.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener.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_assertion interface="FileSystemManager" element_type="method" element_name="removeStorageStateChangeListener" 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::deleteFile() method throws exception with missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_deleteFile_misarg">
+ <testcase purpose="Check if FileSystemManager::removeStorageStateChangeListener() method exists" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_removeStorageStateChangeListener_exist">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_misarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_exist.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="removeStorageStateChangeListener" 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 with missing mandatory argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_readBase64_misarg">
+ <testcase purpose="Check if FileSystemManager::removeStorageStateChangeListener() method throws NotFoundError when given invalid watchId" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_removeStorageStateChangeListener_with_para_invalid">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_misarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_with_para_invalid.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_assertion interface="FileSystemManager" element_type="method" element_name="removeStorageStateChangeListener" 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::write() with missing mandatory argument throws exception" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_write_misarg">
+ <testcase purpose="Check if FileSystemManager::removeStorageStateChangeListener() method can be called with valid watchId" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_removeStorageStateChangeListener_works_correctly">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_write_misarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_works_correctly.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="write" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="removeStorageStateChangeListener" 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::writeBase64() with missing mandatory argument throws exception" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_writeBase64_misarg">
+ <testcase purpose="Interface FileSystemStorageArraySuccessCallback should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemStorageArraySuccessCallback_notexist">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_misarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageArraySuccessCallback_notexist.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="writeBase64" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemStorageArraySuccessCallback" usage="true" 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() with missing mandatory argument throws exception" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_readBytes_misarg">
+ <testcase purpose="Test whether FileSystemStorageArraySuccessCallback::onsuccess is called with valid argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemStorageArraySuccessCallback_onsuccess">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_misarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageArraySuccessCallback_onsuccess.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_assertion interface="FileSystemStorageArraySuccessCallback" element_type="method" element_name="onsuccess" 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 for wrong type of byteCount" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_readBytes_TypeMismatch">
+ <testcase purpose="Interface FileSystemStorageSuccessCallback should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemStorageSuccessCallback_notexist">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageSuccessCallback_notexist.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_assertion interface="FileSystemStorageSuccessCallback" usage="true" 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 for wrong type of byteCount" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_readBase64_TypeMismatch">
+ <testcase purpose="Test whether FileSystemStorageSuccessCallback::onsuccess is called with valid argument" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemStorageSuccessCallback_onsuccess">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageSuccessCallback_onsuccess.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_assertion interface="FileSystemStorageSuccessCallback" element_type="method" element_name="onsuccess" 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::writeBase64() throws exception for invalid base64Data" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileStream_writeBase64_invalid">
+ <testcase purpose="Check if instance of FileSystemStorage object can be extended with new attribute" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemStorage_extend">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_invalid.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_extend.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="FileStream" element_type="method" element_name="writeBase64" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemStorage" usage="true" 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::createFile() with missing mandatory argument throws exceptions" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_createFile_misarg">
+ <testcase purpose="Check if FileSystemStorage::label attribute exists, has type DOMString and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemStorage_label_attribute">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createFile_misarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_label_attribute.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_assertion interface="FileSystemStorage" element_type="attribute" element_name="label" 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 file in Camera, copy it into Downloads, then request removing it" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteFile_copyFile_camera">
+ <testcase purpose="Interface FileSystemStorage should not be accessible" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P3" id="FileSystemStorage_notexist">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_copyFile_camera.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_notexist.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteFile" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemStorage" usage="true" 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::readAsText() method works for a file created in Camera" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_readAsText_listCameraFiles">
+ <testcase purpose="Check if FileSystemStorage::state attribute exists, has type FileSystemStorageState and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemStorage_state_attribute">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listCameraFiles.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_state_attribute.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="readAsText" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemStorage" element_type="attribute" element_name="state" 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() method works for Camera virtual root" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_camera">
+ <testcase purpose="Check if FileSystemStorage::type attribute exists, has type FileSystemStorageType and is readonly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemStorage_type_attribute">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_camera.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_type_attribute.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_assertion interface="FileSystemStorage" element_type="attribute" element_name="type" 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::createDirectory() creates a new directory in Camera and File::deleteDirectory() removes it" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_deleteDirectory_createDir_camera">
+ <testcase purpose="Check if FileSystemManager::getStorage() throws an exception when given wrong type of label" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_getStorage_errorCallback_invoked">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_camera.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_errorCallback_invoked.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="File" element_type="method" element_name="deleteDirectory" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+ <spec_assertion interface="FileSystemManager" element_type="method" element_name="getStorage" 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>
<test_definition>
<suite name="tct-filesystem-tizen-tests" extension="crosswalk" category="Tizen Web Device APIs">
<set name="Filesystem" type="js">
- <testcase purpose="Interface FileArraySuccessCallback should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileArraySuccessCallback_notexist" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileArraySuccessCallback_notexist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Test whether FileArraySuccessCallback::onsuccess is called with valid argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileArraySuccessCallback_onsuccess" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileArraySuccessCallback_onsuccess.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Interface FileStreamSuccessCallback should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStreamSuccessCallback_notexist" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStreamSuccessCallback_notexist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Test whether FileStreamSuccessCallback::onsuccess is called with argument of proper type" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStreamSuccessCallback_onsuccess" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStreamSuccessCallback_onsuccess.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::bytesAvailable attribute exist, is of proper type" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_bytesAvailable_attribute" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_bytesAvailable_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::close() method works" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_close" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_close.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::close() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_close_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_close_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::close() method can be called with extra arguments" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_close_extra_argument" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_close_extra_argument.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::eof attribute exists, is Boolean" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_eof_attribute" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_eof_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Test whether instance of FileStream can be extended with new attribute" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_extend" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_extend.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Interface FileStream should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_notexist" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_notexist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::position attribute exists, is of proper type, can be changed" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_position_attribute" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_position_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::read() method works properly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_read" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::readBase64() method works" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_readBase64" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::readBase64() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_readBase64_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_exist.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" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_without_r_permission.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if you can create a new file, write content to it, and then read the content of the file as base64" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_readBase64_writeFile" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_writeFile.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::readBytes() method works properly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_readBytes" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::readBytes() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_readBytes_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_exist.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" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_without_r_permission.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if you can create a new file, write content to it, and then read the content of the file as a byte array" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_readBytes_writeFile" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_writeFile.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::read() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_read_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_exist.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" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_without_r_permission.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if you can create a new file, write content to it, and then read the content of the file" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_read_writeFile" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_writeFile.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::write() method works properly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_write" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_write.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::writeBase64() method works properly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_writeBase64" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::writeBase64() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_writeBase64_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::writeBase64() throws exception when writing to a file opened in 'r' mode" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_writeBase64_without_w_permission" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_without_w_permission.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::writeBytes() method works properly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_writeBytes" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::writeBytes() throws exception for wrong type of byteData" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_writeBytes_byteData_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_byteData_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::writeBytes() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_writeBytes_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::writeBytes() method throws exception for missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_writeBytes_missarg" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_missarg.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::writeBytes() method properly writes the specified bytes to file" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_writeBytes_with_additional_null_parameter" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_with_additional_null_parameter.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::writeBytes() throws exception when writing to a file opened in 'r' mode" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_writeBytes_without_w_permission" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes_without_w_permission.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::write() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_write_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_write_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::write() throws exception when writing to a file opened in 'r' mode" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_write_without_w_permission" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_write_without_w_permission.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Interface FileStringSuccessCallback should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStringSuccessCallback_notexist" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStringSuccessCallback_notexist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Test whether FileStringSuccessCallback::onsuccess is called with valid argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStringSuccessCallback_onsuccess" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStringSuccessCallback_onsuccess.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Interface FileSuccessCallback should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSuccessCallback_notexist" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSuccessCallback_notexist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Test whether FileSuccessCallback::onsuccess is called with valid argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSuccessCallback_onsuccess" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSuccessCallback_onsuccess.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Interface FileSystemManagerObject should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManagerObject_notexist" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManagerObject_notexist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_addStorageStateChangeListener_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() method throws exception for missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_addStorageStateChangeListener_missarg" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_missarg.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() throws exception for wrong type of onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_addStorageStateChangeListener_onerror_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() throws exception for wrong onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_addStorageStateChangeListener_onerror_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() throws exception for wrong type of onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_addStorageStateChangeListener_onsuccess_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() throws exception for wrong onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_addStorageStateChangeListener_onsuccess_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onsuccess_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() throws exception for missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_addStorageStateChangeListener_without_arguments" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_without_arguments.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if instance of FileSystemManager can be extended with new property" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_extend" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_extend.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::getStorage() calls onsuccess callback" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::getStorage() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_exist" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::getStorage() throws exception for missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_missarg" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_missarg.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::getStorage() throws exception for wrong type of onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_onerror_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::getStorage() throws exception for wrong onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_onerror_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::getStorage() throws exception for wrong type of onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_onsuccess_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::getStorage() throws exception for wrong onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_onsuccess_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::getStorage() throws an exception when storage with given label does not exist" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_with_nonexist_label" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_with_nonexist_label.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::getStorage() can be called with onerror callback" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_with_onerror" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_with_onerror.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if tizen namespace contains filesystem" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_in_tizen" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_in_tizen.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::listStorages() method works" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::listStorages() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_exist" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::listStorages() throws exception for missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_missarg" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_missarg.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for wrong type of onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_onerror_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for wrong onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_onerror_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for wrong type of onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_onsuccess_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for wrong onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_onsuccess_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::listStorages() method properly retrieves the available storages on the device" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_storages_retrieve" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_storages_retrieve.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for wrong type of onerror (literals)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_with_invalid_error_callbacks" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_with_invalid_error_callbacks.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::listStorages() can be called with onerror argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_with_onerror" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_with_onerror.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_without_arguments" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_without_arguments.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::listStorages() method invokes onsuccess callback" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_works_correctly" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_works_correctly.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::maxPathLength attribute exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_maxPathLength_attribute" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_maxPathLength_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Interface FileSystemManager should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_notexist" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_notexist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::removeStorageStateChangeListener() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_removeStorageStateChangeListener_exist" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::removeStorageStateChangeListener() method can be called with valid watchId" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_removeStorageStateChangeListener_works_correctly" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_works_correctly.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method can be called with only mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for Documents virtual root" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_documents" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_documents.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for Downloads virtual root" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_downloads" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_downloads.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method reports NotFoundError by onerror for wrong value of location argument (absolute)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_error_invoked" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_error_invoked.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for Images virtual root" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_images" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_images.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" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_missarg.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method throws exception for wrong value of mode argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_mode_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for Documents virtual root and mode 'a'" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_mode_a" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_a.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for Documents virtual root and mode 'r'" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_mode_r" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_r.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for Documents virtual root and mode 'w'" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_mode_w" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_mode_w.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for Music virtual root" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_music" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_music.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method throws exception for wrong type of onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_onerror_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onerror_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method throws exception for wrong onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_onerror_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onerror_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method throws exception for wrong type of onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_onsuccess_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method throws exception for wrong onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_onsuccess_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_onsuccess_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for Videos virtual root" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_videos" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_videos.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method reports InvalidValuesError when resolving 'wgt-package' directory with mode 'a'" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt-package_invalid_mode_a" priority="P2">
- <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 FileSystemManager::resolve() method reports InvalidValuesError when resolving 'wgt-package' directory with mode 'rw'" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt-package_invalid_mode_rw" priority="P2">
- <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 FileSystemManager::resolve() method reports InvalidValuesError when resolving 'wgt-package' directory with mode 'w'" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt-package_invalid_mode_w" priority="P2">
- <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 FileSystemManager::resolve() method works for 'wgt-package' virtual root" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt_package" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt_package.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for 'wgt-private' virtual root" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt_private" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt_private.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for 'wgt-private-tmp' virtual root" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt_private_tmp" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt_private_tmp.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for Images virtual root with mode 'rw'" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_with_mode" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_with_mode.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method can be called with onerror argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_with_onerror" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_with_onerror.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for Documents and onsuccess is invoked with proper argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_works_correctly" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_works_correctly.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Interface FileSystemStorageArraySuccessCallback should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorageArraySuccessCallback_notexist" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageArraySuccessCallback_notexist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Test whether FileSystemStorageArraySuccessCallback::onsuccess is called with valid argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorageArraySuccessCallback_onsuccess" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageArraySuccessCallback_onsuccess.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Interface FileSystemStorageSuccessCallback should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorageSuccessCallback_notexist" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageSuccessCallback_notexist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Test whether FileSystemStorageSuccessCallback::onsuccess is called with valid argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorageSuccessCallback_onsuccess" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageSuccessCallback_onsuccess.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if instance of FileSystemStorage object can be extended with new attribute" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorage_extend" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_extend.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemStorage::label attribute exists, has type DOMString and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorage_label_attribute" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_label_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Interface FileSystemStorage should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorage_notexist" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_notexist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemStorage::state attribute exists, has type FileSystemStorageState and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorage_state_attribute" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_state_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemStorage::type attribute exists, has type FileSystemStorageType and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorage_type_attribute" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_type_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::copyTo() method ends successfully (copy file from documents/ to images/)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if error callback is invoked when copy a directory to another location where directory of that name already exists (overwrite is false)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_overwrite_false" priority="P2">
- <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 you can copy a directory to another location where directory of that name already exists (overwrite is true)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_overwrite_true" priority="P2">
- <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 is invoked when copy directory dir1/subdir1 into dir1/ (overwrite is false)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_samedir_samename_overwrite_false" priority="P2">
- <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 is invoked when copy directory dir1/subdir1 into dir1/ (overwrite is true)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_samedir_samename_overwrite_true" priority="P2">
- <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 File::copyTo() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_exist" priority="P0">
- <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 is invoked when copy a file to another directory where a file of that name already exists (overwrite is false)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_overwrite_false" priority="P2">
- <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 you can copy a file to another directory where a file of that name already exists (overwrite is true)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_overwrite_true" priority="P2">
- <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 is invoked when copy a file to the same location (overwrite is false)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_samedir_samename_overwrite_false" priority="P2">
- <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 is invoked when copy a file to the same location (overwrite is true)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_samedir_samename_overwrite_true" priority="P2">
- <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 if File::copyTo() throws exception when type of errorCallback is wrong" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_onerror_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_onerror_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::copyTo() throws exception for wrong errorCallback" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_onerror_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_onerror_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::copyTo() throws exception when type of successCallback is wrong" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_onsuccess_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::copyTo() throws exception for wrong successCallback" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_onsuccess_invalid_cb" priority="P2">
- <description>
- <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() calls errorCallback when called for object representing file, not a directory" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_with_file_handle" priority="P2">
- <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() can be invoked with null successCallback and errorCallback" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_with_null_success_and_error_callbacks" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_null_success_and_error_callbacks.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::copyTo() calls errorCallback (nonexisting originFilePath)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_with_onerror" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_onerror.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::copyTo() with onSuccess creates a file copy" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_with_onsuccess" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_onsuccess.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" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newName.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if when create a new empty file, write content into it, then request a copy of it over existing file invokes errorCallback (overwrite=false)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_writeFile_overwrite_false" priority="P1">
- <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 you can create a new empty file, write content into it, then request a copy of it (different name, different directory)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_writeFile_subdir" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_subdir.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::createDirectory() method" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_createDirectory" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createDirectory.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::createDirectory() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_createDirectory_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createDirectory_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::createDirectory() works for non-existing intermediate directory (creates 2 levels of directories)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_createDirectory_level2" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createDirectory_level2.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::createFile() method works properly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_createFile" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createFile.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::createFile() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_createFile_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createFile_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::createFile() throws exception when the file already exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_createFile_existing_file" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createFile_existing_file.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" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_created_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteDirectory() method can be called" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::createDirectory() creates a new directory in Documents and File::deleteDirectory() removes it" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_createDir_documents" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_documents.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::createDirectory() creates a new directory in Downloads and File::deleteDirectory() removes it" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_createDir_downloads" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_downloads.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::createDirectory() creates a new directory in Images and File::deleteDirectory() removes it" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_createDir_images" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_images.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::createDirectory() creates a new directory in Music and File::deleteDirectory() removes it" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_createDir_music" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_music.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::createDirectory() creates a new directory in Videos and File::deleteDirectory() removes it" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_createDir_videos" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_videos.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteDirectory() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteDirectory() throws exception for wrong type of onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_onerror_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_onerror_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteDirectory() throws exception for wrong onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_onerror_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_onerror_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteDirectory() throws exception for wrong type of onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_onsuccess_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteDirectory() throws exception for wrong onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_onsuccess_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_onsuccess_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteDirectory() calls errorCallback when given directoryPath is empty" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_with_empty_path" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_with_empty_path.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteDirectory() calls errorCallback when called on File object representing file, not a directory" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_with_file_handle" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_with_file_handle.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteDirectory() method can be called with null onsuccess and onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_with_null_callbacks" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_with_null_callbacks.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteDirectory() method calls onerror properly (when removing non-existing directory)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_with_onerror" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_with_onerror.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteDirectory() method with onsuccess optional argument works properly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_with_onsuccess" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_with_onsuccess.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteFile() method works properly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if you can create a new file in Document, copy it into Downloads, then request removing it" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_copyFile_downloads" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_copyFile_downloads.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if you can create a new file in Images, copy it into Downloads, then request removing it" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_copyFile_images" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_copyFile_images.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if you can create a new file in Music, copy it into Downloads, then request removing it" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_copyFile_music" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_copyFile_music.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if you can create a new file in Video, copy it into Downloads, then request removing it" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_copyFile_videos" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_copyFile_videos.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if you can create a new file in Documents, copy it into Downloads, then request removing it" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_createFile" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_createFile.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteFile() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if you can create directories and file in Documents, list them, then request deleting the directory and the file" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_listDocumentsFiles" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listDocumentsFiles.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if you can create directories and file in Downloads, list them, then request deleting the directory and the file" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_listDownloadsFiles" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listDownloadsFiles.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if you can create directories and file in Images, list them, then request deleting the directory and the file" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_listImagsFiles" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listImagsFiles.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if you can create directories and file in Music, list them, then request deleting the directory and the file" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_listMusicFiles" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listMusicFiles.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if you can create directories and file in Videos, list them, then request deleting the directory and the file" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_listVideosfiles" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_listVideosfiles.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteFile() throws exception for wrong type of onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_onerror_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_onerror_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteFile() throws exception for wrong onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_onerror_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_onerror_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteFile() throws exception for wrong type of onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_onsuccess_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteFile() throws exception for wrong onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_onsuccess_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_onsuccess_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteFile() calls errorCallback when called on File object representing file, not a directory" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_with_dir_handle" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_dir_handle.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteFile() calls errorCallback when given filePath does not exist" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_with_nonexist" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_nonexist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteFile() method calls errorCallback properly (when removing non-existing file)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_with_onerror" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_onerror.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteFile() method calls given onsuccess callback" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_with_onsuccess" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_onsuccess.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteFile() can be called with onsuccess and onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_with_vaild_callbacks" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_vaild_callbacks.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteFile() method can be called without onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_with_valid_filePath" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_with_valid_filePath.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if instance of File can be extended with new property" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_extend" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_extend.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::fileSize attribute exists, has type Number and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_fileSize_attribute" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_fileSize_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::fullPath attribute exists, has type DOMString and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_fullPath_attribute" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_fullPath_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::isDirectory attribute exists, has type Boolean and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_isDirectory_attribute" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_isDirectory_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::isFile attribute exists, has type Boolean and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_isFile_attribute" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_isFile_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::length attribute exists, has type Number and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_length_attribute" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_length_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::listFiles() method works properly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_listFiles" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if you can create a new directory and then list files in this directory" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_listFiles_createFiles" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_createFiles.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::listFiles() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_listFiles_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::listFiles() method throws exception for wrong type of filter" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_listFiles_filter_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_filter_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::listFiles() can be called with empty object as filter argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_listFiles_filter_empty" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_filter_empty.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::listFiles() with missing mandatory argument throws exception" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_listFiles_missarg" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_missarg.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::listFiles() throws exception for wrong type of onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_listFiles_onerror_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_onerror_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::listFiles() throws exception for wrong onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_listFiles_onerror_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_onerror_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::listFiles() throws exception for wrong type of onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_listFiles_onsuccess_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::listFiles() throws exception for wrong onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_listFiles_onsuccess_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_onsuccess_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::listFiles() calls errorCallback when called on File object representing file, not a directory" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_listFiles_with_file_handle" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_with_file_handle.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::listFiles() works with filter argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_listFiles_with_filter" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_with_filter.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::listFiles() calls errorCallback (listing files of a file)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_listFiles_with_onerror" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_with_onerror.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::listFiles() call onsuccess callback" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_listFiles_with_valid_successCallback" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_listFiles_with_valid_successCallback.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::modified attribute exists, has type Date and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_modified_attribute" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_modified_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::moveTo() can be called successfully" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::moveTo() invokes error callback when moving 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" priority="P2">
- <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 File::moveTo() invokes error callback when moving 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" priority="P2">
- <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 if File::moveTo() invokes error callback when originFilePath and destinationFilePath are empty" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_empty_destination_source_and_destination_paths" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_empty_destination_source_and_destination_paths.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::moveTo() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::moveTo() invokes error callback when moving a file to the same location with the same name (overwrite is false)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_file_samedir_samename_overwrite_false" priority="P2">
- <description>
- <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 File::moveTo() error callback when moving 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" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_overwrite_true.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::moveTo() throws exception for wrong type of onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_onerror_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_onerror_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::moveTo() throws exception for wrong onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_onerror_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_onerror_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::moveTo() throws exception for wrong type of onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_onsuccess_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_onsuccess_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::moveTo() throws exception for wrong onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_onsuccess_invalid_cb" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_onsuccess_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::moveTo() method can be invoked with extra null parameter" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_with_additional_null_parameter" priority="P1">
- <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 File::moveTo() calls errorCallback when called on File object representing file, not a directory" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_with_file_handle" priority="P2">
- <description>
- <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 (source file does not exist)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_with_onerror" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_onerror.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::moveTo() calls successCallback" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_with_onsuccess" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_onsuccess.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::moveTo() calls errorCallback (NotFound) when destinationFilePath is in non-existing directory" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_with_path_invalid" priority="P2">
- <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 you can create a new file, write content to it, and then move the file to the same directory with different file name" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_writeFile_newName" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newName.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::moveTo() calls errorCallback when originFilePath and destinationFilePath is the same path (overwrite false)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_writeFile_overwrite_false" priority="P1">
- <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 you can create a new file, write content to it, and then move the file to a subdirectory keeping the name of the file" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_writeFile_subdir" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_subdir.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::name attribute exists, has type DOMString and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_name_attribute" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_name_attribute.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Interface File should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_notexist" priority="P3">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_notexist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::openStream() method works properly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::openStream() throws an exception for invalid encoding value" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_encoding_invalid" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_encoding_invalid.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::openStream() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_exist" priority="P0">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_exist.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::openStream() method throws exception for missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_missarg" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_missarg.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::openStream() throws exception for wrong type of mode argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_mode_TypeMismatch" priority="P2">
+ <testcase purpose="Interface FileSystemManagerObject should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManagerObject_notexist" priority="P3">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManagerObject_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::openStream() works for mode a" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_mode_a" priority="P2">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_addStorageStateChangeListener_exist" priority="P0">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_a.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::openStream() works for mode r" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_mode_r" priority="P2">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() method throws exception for missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_addStorageStateChangeListener_missarg" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_r.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_missarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::openStream() works for mode rw" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_mode_rw" priority="P2">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() throws exception for wrong type of onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_addStorageStateChangeListener_onerror_TypeMismatch" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_rw.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::openStream() works for mode w" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_mode_w" priority="P2">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() throws exception for wrong onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_addStorageStateChangeListener_onerror_invalid_cb" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_w.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onerror_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::openStream() method throws exception for wrong type of onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_onerror_TypeMismatch" priority="P2">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() throws exception for wrong type of onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_addStorageStateChangeListener_onsuccess_TypeMismatch" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_onerror_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onsuccess_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::openStream() method throws exception for wrong onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_onerror_invalid_cb" priority="P2">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() throws exception for wrong onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_addStorageStateChangeListener_onsuccess_invalid_cb" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_onerror_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_onsuccess_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::openStream() method throws exception for wrong type of onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_onsuccess_TypeMismatch" priority="P2">
+ <testcase purpose="Check if FileSystemManager::addStorageStateChangeListener() throws exception for missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_addStorageStateChangeListener_without_arguments" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_onsuccess_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_addStorageStateChangeListener_without_arguments.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::openStream() method throws exception for wrong onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_onsuccess_invalid_cb" priority="P2">
+ <testcase purpose="Check if instance of FileSystemManager can be extended with new property" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_extend" priority="P3">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_onsuccess_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_extend.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::openStream() method can be called with valid encoding argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_with_encoding" priority="P1">
+ <testcase purpose="Check if FileSystemManager::getStorage() calls onsuccess callback" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_with_encoding.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::openStream() method calls errorCallback when invoked for file which was already removed" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_with_nonexist_file" priority="P2">
+ <testcase purpose="Check if FileSystemManager::getStorage() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_exist" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_with_nonexist_file.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::openStream() method calls errorCallback properly (openStream used on directory)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_with_onerror" priority="P1">
+ <testcase purpose="Check if FileSystemManager::getStorage() throws exception for missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_missarg" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_with_onerror.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_missarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::parent attribute exists, has type File and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_parent_attribute" priority="P1">
+ <testcase purpose="Check if FileSystemManager::getStorage() throws exception for wrong type of onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_onerror_TypeMismatch" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_parent_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::parent attribute is set by resolve() for subdirectory of Documents" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_parent_attribute_notnull_using_resolve" priority="P1">
+ <testcase purpose="Check if FileSystemManager::getStorage() throws exception for wrong onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_onerror_invalid_cb" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_parent_attribute_notnull_using_resolve.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onerror_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::path attribute exists, has type DOMString and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_path_attribute" priority="P1">
+ <testcase purpose="Check if FileSystemManager::getStorage() throws exception for wrong type of onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_onsuccess_TypeMismatch" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_path_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() method works properly without errorCallback" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText" priority="P1">
+ <testcase purpose="Check if FileSystemManager::getStorage() throws exception for wrong onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_onsuccess_invalid_cb" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_onsuccess_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() method throws exception for invalid encoding value" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_encoding_invalid" priority="P2">
+ <testcase purpose="Check if FileSystemManager::getStorage() throws an exception when storage with given label does not exist" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_with_nonexist_label" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_encoding_invalid.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_with_nonexist_label.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_exist" priority="P0">
+ <testcase purpose="Check if FileSystemManager::getStorage() can be called with onerror callback" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_with_onerror" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_with_onerror.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() method works for a file created in Documents" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_listDocumentsFiles" priority="P1">
+ <testcase purpose="Check if tizen namespace contains filesystem" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_in_tizen" priority="P3">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listDocumentsFiles.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_in_tizen.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() method works for a file created in Downloads" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_listDownloadsFiles" priority="P1">
+ <testcase purpose="Check if FileSystemManager::listStorages() method works" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listDownloadsFiles.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() method works for a file created in Images" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_listImagesFiles" priority="P1">
+ <testcase purpose="Check if FileSystemManager::listStorages() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_exist" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listImagesFiles.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() method works for a file created in Music" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_listMusicFiles" priority="P1">
+ <testcase purpose="Check if FileSystemManager::listStorages() throws exception for missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_missarg" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listMusicFiles.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_missarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() method works for a file created in Videos" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_listVideosFiles" priority="P1">
+ <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for wrong type of onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_onerror_TypeMismatch" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listVideosFiles.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() throws exception for missing mandatory parameter" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_missarg" priority="P2">
+ <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for wrong onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_onerror_invalid_cb" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_missarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onerror_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() method throws exception for wrong type of onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_onerror_TypeMismatch" priority="P2">
+ <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for wrong type of onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_onsuccess_TypeMismatch" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_onerror_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() method throws exception for wrong onerror" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_onerror_invalid_cb" priority="P2">
+ <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for wrong onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_onsuccess_invalid_cb" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_onerror_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_onsuccess_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() method throws exception for wrong type of onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_onsuccess_TypeMismatch" priority="P2">
+ <testcase purpose="Check if FileSystemManager::listStorages() method properly retrieves the available storages on the device" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_storages_retrieve" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_onsuccess_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_storages_retrieve.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() method throws exception for wrong onsuccess" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_onsuccess_invalid_cb" priority="P2">
+ <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for wrong type of onerror (literals)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_with_invalid_error_callbacks" priority="P2">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_onsuccess_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_with_invalid_error_callbacks.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() method works with encoding argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_with_encoding" priority="P2">
+ <testcase purpose="Check if FileSystemManager::listStorages() can be called with onerror argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_with_onerror" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_with_encoding.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_with_onerror.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() properly calls errorCallback (called on a directory instead of file)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_with_onerror" priority="P1">
+ <testcase purpose="Check if FileSystemManager::listStorages() method throws exception for missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_without_arguments" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_with_onerror.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_without_arguments.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readOnly attribute exists, has type Boolean and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readOnly_attribute" priority="P1">
+ <testcase purpose="Check if FileSystemManager::listStorages() method invokes onsuccess callback" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_listStorages_works_correctly" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readOnly_attribute.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_listStorages_works_correctly.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::resolve() method works properly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_resolve" priority="P1">
+ <testcase purpose="Check if FileSystemManager::maxPathLength attribute exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_maxPathLength_attribute" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_resolve.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_maxPathLength_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::resolve() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_resolve_exist" priority="P0">
+ <testcase purpose="Interface FileSystemManager should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_notexist" priority="P3">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_resolve_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_notexist.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" priority="P2">
+ <testcase purpose="Check if FileSystemManager::removeStorageStateChangeListener() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_removeStorageStateChangeListener_exist" priority="P1">
<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/FileSystemManager_removeStorageStateChangeListener_exist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::toURI() method works properly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_toURI" priority="P1">
+ <testcase purpose="Check if FileSystemManager::removeStorageStateChangeListener() method can be called with valid watchId" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_removeStorageStateChangeListener_works_correctly" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_toURI.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_works_correctly.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::toURI() method exists" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_toURI_exist" priority="P0">
+ <testcase purpose="Interface FileSystemStorageArraySuccessCallback should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorageArraySuccessCallback_notexist" priority="P3">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_toURI_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageArraySuccessCallback_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::toURI() method accepts extra argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_toURI_extra_argument" priority="P1">
+ <testcase purpose="Test whether FileSystemStorageArraySuccessCallback::onsuccess is called with valid argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorageArraySuccessCallback_onsuccess" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_toURI_extra_argument.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageArraySuccessCallback_onsuccess.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::toURI() method throws exception when get a URI of non-existing file" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_toURI_with_nonexist_file" priority="P2">
+ <testcase purpose="Interface FileSystemStorageSuccessCallback should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorageSuccessCallback_notexist" priority="P3">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_toURI_with_nonexist_file.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageSuccessCallback_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Test whether FileStreamSuccessCallback::onsuccess is called with valid argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="filesystem_FileStreamSuccessCallback_onsuccess" priority="P1">
+ <testcase purpose="Test whether FileSystemStorageSuccessCallback::onsuccess is called with valid argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorageSuccessCallback_onsuccess" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/filesystem_FileStreamSuccessCallback_onsuccess.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorageSuccessCallback_onsuccess.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::copyTo() can be called" component="TizenAPI/IO/Filesystem" execution_type="auto" id="filesystem_File_copyTo" priority="P0">
+ <testcase purpose="Check if instance of FileSystemStorage object can be extended with new attribute" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorage_extend" priority="P3">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/filesystem_File_copyTo.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_extend.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::readAsText() method reads the content of a file as a DOMString" component="TizenAPI/IO/Filesystem" execution_type="auto" id="filesystem_File_readAsText" priority="P1">
+ <testcase purpose="Check if FileSystemStorage::label attribute exists, has type DOMString and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorage_label_attribute" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/filesystem_File_readAsText.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_label_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if File::resolve() method called for a file returns a file handle" component="TizenAPI/IO/Filesystem" execution_type="auto" id="filesystem_File_resolve" priority="P1">
+ <testcase purpose="Interface FileSystemStorage should not be accessible" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorage_notexist" priority="P3">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/filesystem_File_resolve.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method work for invalid location" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_location_invalid" priority="P2">
+ <testcase purpose="Check if FileSystemStorage::state attribute exists, has type FileSystemStorageState and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorage_state_attribute" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_location_invalid.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_state_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if errorcallback of FileSystemManager::resolve() method can be invoked when location is wrong type" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_errorCallback_invoked" priority="P2">
+ <testcase purpose="Check if FileSystemStorage::type attribute exists, has type FileSystemStorageType and is readonly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemStorage_type_attribute" priority="P1">
<description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_errorCallback_invoked.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemStorage_type_attribute.html</test_script_entry>
</description>
</testcase>
<testcase purpose="Check if errorcallback of FileSystemManager::getStorage() method can be invoked" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_getStorage_errorCallback_invoked" priority="P2">
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_getStorage_errorCallback_invoked.html</test_script_entry>
</description>
</testcase>
- <!-- <testcase purpose="Check if FileSystemManager::removeStorageStateChangeListener() with missing mandatory argument throws exception" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_removeStorageStateChangeListener_misarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_misarg.html</test_script_entry>
- </description>
- </testcase> -->
- <testcase purpose="Check if File::openStream() method throws exception for wrong mode" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_mode_invalid" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_mode_invalid.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if copyTo method called with invalid destinationFilePath does what it should" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_destinationFilePath_invalid" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_destinationFilePath_invalid.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if copyTo method called with invalid originFilePath does what it should" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_originFilePath_invalid" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_originFilePath_invalid.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if createDirectory method throws exception with missing non-optional argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_createDirectory_misarg" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createDirectory_misarg.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::resolve() throws exception with missing non-optional argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_resolve_misarg" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_resolve_misarg.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::deleteDirectory() throws exception with missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_misarg" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_misarg.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::path attribute has proper value limitation" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_path_attribute_limitation" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_path_attribute_limitation.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::read() throws exception with missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_read_misarg" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_misarg.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileStream::read() throws an exception when given wrong type of charCount" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_read_TypeMismatch" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_read_TypeMismatch.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::createDirectory() throws exception when dirPath is invalid." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_createDirectory_dirPath_invalid" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createDirectory_dirPath_invalid.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::openStream() method works properly when the encoding is ISO-8859-1" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_openStream_with_encoding_not_default" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_openStream_with_encoding_not_default.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::readAsText() method works properly when the encoding is ISO-8859-1" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_with_encoding_not_default" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_with_encoding_not_default.html</test_script_entry>
- </description>
- </testcase>
- <!-- <testcase purpose="Check with missing argument - copyTo" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_misarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_misarg.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check with no argument - copyTo" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_noarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_noarg.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::moveto() throws exception without mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_noarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_noarg.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::moveto() throws exception with missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_misarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_misarg.html</test_script_entry>
- </description>
- </testcase> -->
- <testcase purpose="Check if File::createDirectory() throws exception when dirPath is invalid." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_resolve_filePath_invalid" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_resolve_filePath_invalid.html</test_script_entry>
- </description>
- </testcase>
- <!-- <testcase purpose="Check if File::deleteFile() method throws exception with missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_misarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_misarg.html</test_script_entry>
- </description>
- </testcase> -->
- <!-- <testcase purpose="Check if FileStream::readBase64() throws exception with missing mandatory argument" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_readBase64_misarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_misarg.html</test_script_entry>
- </description>
- </testcase> -->
- <!-- <testcase purpose="Check if FileStream::write() with missing mandatory argument throws exception" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_write_misarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_write_misarg.html</test_script_entry>
- </description>
- </testcase> -->
- <!-- <testcase purpose="Check if FileStream::writeBase64() with missing mandatory argument throws exception" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_writeBase64_misarg">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_misarg.html</test_script_entry>
- </description>
- </testcase> -->
- <testcase purpose="Check if FileStream::readBytes() with missing mandatory argument throws exception" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_readBytes_misarg" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_misarg.html</test_script_entry>
- </description>
- </testcase>
- <!-- <testcase purpose="Check if FileStream::readBytes() throws exception for wrong type of byteCount" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_readBytes_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBytes_TypeMismatch.html</test_script_entry>
- </description>
- </testcase> -->
- <!-- <testcase purpose="Check if FileStream::readBase64() throws exception for wrong type of byteCount" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_readBase64_TypeMismatch">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_readBase64_TypeMismatch.html</test_script_entry>
- </description>
- </testcase> -->
- <!-- <testcase purpose="Check if FileStream::writeBase64() throws exception for invalid base64Data" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileStream_writeBase64_invalid">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileStream_writeBase64_invalid.html</test_script_entry>
- </description>
- </testcase> -->
- <testcase purpose="Check if File::createFile() with missing mandatory argument throws exception" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_createFile_misarg" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createFile_misarg.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if FileHandle::close() method works properly" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileHandle_close">
<description>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileHandle_close.html</test_script_entry>
</description>
</testcase>
</set>
- <set name="Filesystem_camera">
- <capabilities>
- <capability name="http://tizen.org/feature/camera.back"/>
- </capabilities>
- <testcase purpose="Check if you can create a new file in Camera, copy it into Downloads, then request removing it" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteFile_copyFile_camera" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteFile_copyFile_camera.html</test_script_entry>
- </description>
- </testcase>
- <!-- <testcase purpose="Check if File::readAsText() method works for a file created in Camera" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_readAsText_listCameraFiles">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_readAsText_listCameraFiles.html</test_script_entry>
- </description>
- </testcase> -->
- <testcase purpose="Check if FileSystemManager::resolve() method works for camera virtual root" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_camera" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_camera.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if File::createDirectory() creates a new directory in Camera and File::deleteDirectory() removes it" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_deleteDirectory_createDir_camera" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_deleteDirectory_createDir_camera.html</test_script_entry>
- </description>
- </testcase>
- </set>
<set name="Filesystem_mobile" type="js">
<capabilities>
<capability name="http://tizen.org/feature/profile"><value>MOBILE_FULL</value></capability>
<test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method works for Ringtones virtual root" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method reports InvalidValuesError when resolving Ringtones directory with mode 'a'" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_a" priority="P2">
- <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 FileSystemManager::resolve() method reports InvalidValuesError when resolving Ringtones directory with mode 'rw'" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_rw" priority="P2">
- <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 FileSystemManager::resolve() method reports InvalidValuesError when resolving Ringtones directory with mode 'w'" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_w" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html</test_script_entry>
- </description>
- </testcase>
- </set>
- <set name="Filesystem_wearable" type="js">
- <capabilities>
- <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
- </capabilities>
- <testcase purpose="Check if FileSystemManager::resolve() method works for Ringtones virtual root" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones" priority="P1">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if FileSystemManager::resolve() method reports InvalidValuesError when resolving Ringtones directory with mode 'a'" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_a" priority="P2">
- <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 FileSystemManager::resolve() method reports InvalidValuesError when resolving Ringtones directory with mode 'rw'" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_rw" priority="P2">
- <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 FileSystemManager::resolve() method reports InvalidValuesError when resolving Ringtones directory with mode 'w'" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_w" priority="P2">
- <description>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html</test_script_entry>
- </description>
- </testcase>
</set>
<set name="Filesystem_tv" type="js">
<capabilities>