--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
+Authors:
+ Mariusz Polasinski <m.polasinski@samsung.com>
+
+-->
+
+<html lang="en">
+<head>
+<title>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 InvalidValuesError will be reported when the ringtones directory is resolved with mode a
+//==== PRIORITY P2
+//==== STEP check if InvalidValuesError will be reported when the ringtones directory is resolved with mode a
+//==== EXPECT the exception should be thrown
+//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA
+
+var resolveSuccess, resolveError,
+ t = async_test("FileSystemManager_resolve_ringtones_invalid_mode_a");
+
+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 lang="en">
+<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 InvalidValuesError will be reported when the rightones directory is resolved with mode rw
+//==== PRIORITY P2
+//==== STEP check if InvalidValuesError will be reported when the rightones directory is resolved with mode rw
+//==== EXPECT the exception should be thrown
+//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA
+
+var resolveSuccess, resolveError,
+ t = async_test("FileSystemManager_resolve_ringtones_invalid_mode_rw");
+
+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 lang="en">
+<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 InvalidValuesError will be reported when the ringtones directory is resolved with mode w
+//==== PRIORITY P2
+//==== STEP check if InvalidValuesError will be reported when the ringtones directory is resolved with mode w
+//==== EXPECT the exception should be thrown
+//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA
+
+var resolveSuccess, resolveError,
+ t = async_test("FileSystemManager_resolve_ringtones_invalid_mode_w");
+
+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) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html lang="en">
-<head>
-<title>FileSystemManager_resolve_ringtones_mode_a_SecurityError</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_mode_a_SecurityError
-//==== LABEL check if SecurityError will be thrown when the ringtones directory is resolved with mode a
-//==== PRIORITY P2
-//==== STEP check if SecurityError will be thrown when the ringtones directory is resolved with mode a
-//==== EXPECT the exception should be thrown
-//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
-//==== TEST_CRITERIA
-
-var resolveSuccess, resolveError,
- t = async_test("FileSystemManager_resolve_ringtones_mode_a_SecurityError");
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("this function shouldn't be invoked");
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- assert_throws({name : "SecurityError"},
- function () {
- tizen.filesystem.resolve("ringtones", resolveSuccess, resolveError, "a");
- }, "SecurityError should be thrown");
-
- 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:
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html lang="en">
-<head>
-<title>FileSystemManager_resolve_ringtones_mode_rw_SecurityError</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_mode_rw_SecurityError
-//==== LABEL check if SecurityError will be thrown when the rightones directory is resolved with mode rw
-//==== PRIORITY P2
-//==== STEP check if SecurityError will be thrown when the rightones directory is resolved with mode rw
-//==== EXPECT the exception should be thrown
-//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
-//==== TEST_CRITERIA
-
-var resolveSuccess, resolveError,
- t = async_test("FileSystemManager_resolve_ringtones_mode_rw_SecurityError");
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("this function shouldn't be invoked");
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- assert_throws({name : "SecurityError"},
- function () {
- tizen.filesystem.resolve("ringtones", resolveSuccess, resolveError, "rw");
- }, "SecurityError should be thrown");
-
- 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:
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html lang="en">
-<head>
-<title>FileSystemManager_resolve_ringtones_mode_w_SecurityError</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_mode_w_SecurityError
-//==== LABEL check if SecurityError will be thrown when the ringtones directory is resolved with mode w
-//==== PRIORITY P2
-//==== STEP check if SecurityError will be thrown when the ringtones directory is resolved with mode w
-//==== EXPECT the exception should be thrown
-//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
-//==== TEST_CRITERIA
-
-var resolveSuccess, resolveError,
- t = async_test("FileSystemManager_resolve_ringtones_mode_w_SecurityError");
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("this function shouldn't be invoked");
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- assert_throws({name : "SecurityError"},
- function () {
- tizen.filesystem.resolve("ringtones", resolveSuccess, resolveError, "w");
- }, "SecurityError should be thrown");
-
- 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:
+ Mariusz Polasinski <m.polasinski@samsung.com>
+
+-->
+
+<html lang="en">
+<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 InvalidValuesError will be reported when the wgt-package directory is resolved with mode a
+//==== PRIORITY P2
+//==== STEP check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode a
+//==== EXPECT the exception should be thrown
+//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA
+
+var resolveSuccess, resolveError,
+ t = async_test("FileSystemManager_resolve_wgt-package_invalid_mode_a");
+
+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 lang="en">
+<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 InvalidValuesError will be reported when the wgt-package directory is resolved with mode rw
+//==== PRIORITY P2
+//==== STEP check if InvalidValuesError will be reported when the wgt-package directory is resolved with moderw
+//==== EXPECT the exception should be thrown
+//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA
+
+var resolveSuccess, resolveError,
+ t = async_test("FileSystemManager_resolve_wgt-package_invalid_mode_rw");
+
+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 lang="en">
+<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 InvalidValuesError will be reported when the wgt-package directory is resolved with mode w
+//==== PRIORITY P2
+//==== STEP check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode w
+//==== EXPECT the exception should be thrown
+//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA
+
+var resolveSuccess, resolveError,
+ t = async_test("FileSystemManager_resolve_wgt-package_invalid_mode_w");
+
+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) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html lang="en">
-<head>
-<title>FileSystemManager_resolve_wgt-package_mode_a_SecurityError</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_mode_a_SecurityError
-//==== LABEL check if SecurityError will be thrown when the wgt-package directory is resolved with mode a
-//==== PRIORITY P2
-//==== STEP check if SecurityError will be thrown when the wgt-package directory is resolved with mode a
-//==== EXPECT the exception should be thrown
-//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
-//==== TEST_CRITERIA
-
-var resolveSuccess, resolveError,
- t = async_test("FileSystemManager_resolve_wgt-package_mode_a_SecurityError");
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("this function shouldn't be invoked");
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- assert_throws({name : "SecurityError"},
- function () {
- tizen.filesystem.resolve("wgt-package", resolveSuccess, resolveError, "a");
- }, "SecurityError should be thrown");
-
- 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:
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html lang="en">
-<head>
-<title>FileSystemManager_resolve_wgt-package_mode_rw_SecurityError</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_mode_rw_SecurityError
-//==== LABEL check if SecurityError will be thrown when the wgt-package directory is resolved with mode rw
-//==== PRIORITY P2
-//==== STEP check if SecurityError will be thrown when the wgt-package directory is resolved with moderw
-//==== EXPECT the exception should be thrown
-//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
-//==== TEST_CRITERIA
-
-var resolveSuccess, resolveError,
- t = async_test("FileSystemManager_resolve_wgt-package_mode_rw_SecurityError");
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("this function shouldn't be invoked");
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- assert_throws({name : "SecurityError"},
- function () {
- tizen.filesystem.resolve("wgt-package", resolveSuccess, resolveError, "rw");
- }, "SecurityError should be thrown");
-
- 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:
- Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html lang="en">
-<head>
-<title>FileSystemManager_resolve_wgt-package_mode_w_SecurityError</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_mode_w_SecurityError
-//==== LABEL check if SecurityError will be thrown when the wgt-package directory is resolved with mode w
-//==== PRIORITY P2
-//==== STEP check if SecurityError will be thrown when the wgt-package directory is resolved with mode w
-//==== EXPECT the exception should be thrown
-//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:resolve M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
-//==== TEST_CRITERIA
-
-var resolveSuccess, resolveError,
- t = async_test("FileSystemManager_resolve_wgt-package_mode_w_SecurityError");
-
-t.step(function () {
- resolveSuccess = t.step_func(function (dir) {
- assert_unreached("this function shouldn't be invoked");
- });
-
- resolveError = t.step_func(function (error) {
- assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
- });
-
- assert_throws({name : "SecurityError"},
- function () {
- tizen.filesystem.resolve("wgt-package", resolveSuccess, resolveError, "w");
- }, "SecurityError should be thrown");
-
- t.done();
-});
-</script>
-</body>
-</html>
</spec>
</specs>
</testcase>
- <testcase purpose="check if SecurityError will be thrown when the ringtones directory is resolved with mode a" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_mode_a_SecurityError">
+ <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode a" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_invalid_mode_a">
<description>
<steps>
<step order="1">
- <step_desc>check if SecurityError will be thrown when the ringtones directory is resolved with mode a</step_desc>
+ <step_desc>check if InvalidValuesError will be reported when the ringtones directory is resolved with mode a</step_desc>
<expected>the exception should be thrown</expected>
</step>
</steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_mode_a_SecurityError.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_a.html</test_script_entry>
</description>
<specs>
<spec>
</spec>
</specs>
</testcase>
- <testcase purpose="check if SecurityError will be thrown when the rightones directory is resolved with mode rw" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_mode_rw_SecurityError">
+ <testcase purpose="check if InvalidValuesError will be reported when the rightones directory is resolved with mode rw" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_invalid_mode_rw">
<description>
<steps>
<step order="1">
- <step_desc>check if SecurityError will be thrown when the rightones directory is resolved with mode rw</step_desc>
+ <step_desc>check if InvalidValuesError will be reported when the rightones directory is resolved with mode rw</step_desc>
<expected>the exception should be thrown</expected>
</step>
</steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_mode_rw_SecurityError.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_rw.html</test_script_entry>
</description>
<specs>
<spec>
</spec>
</specs>
</testcase>
- <testcase purpose="check if SecurityError will be thrown when the ringtones directory is resolved with mode w" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_mode_w_SecurityError">
+ <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode w" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_invalid_mode_w">
<description>
<steps>
<step order="1">
- <step_desc>check if SecurityError will be thrown when the ringtones directory is resolved with mode w</step_desc>
+ <step_desc>check if InvalidValuesError will be reported when the ringtones directory is resolved with mode w</step_desc>
<expected>the exception should be thrown</expected>
</step>
</steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_mode_w_SecurityError.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html</test_script_entry>
</description>
<specs>
<spec>
</spec>
</specs>
</testcase>
- <testcase purpose="check if SecurityError will be thrown when the wgt-package directory is resolved with mode w" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_mode_w_SecurityError">
+ <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode w" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_invalid_mode_w">
<description>
<steps>
<step order="1">
- <step_desc>check if SecurityError will be thrown when the wgt-package directory is resolved with mode w</step_desc>
+ <step_desc>check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode w</step_desc>
<expected>the exception should be thrown</expected>
</step>
</steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_mode_w_SecurityError.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_w.html</test_script_entry>
</description>
<specs>
<spec>
</spec>
</specs>
</testcase>
- <testcase purpose="check if SecurityError will be thrown when the wgt-package directory is resolved with mode a" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_mode_a_SecurityError">
+ <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode a" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_invalid_mode_a">
<description>
<steps>
<step order="1">
- <step_desc>check if SecurityError will be thrown when the wgt-package directory is resolved with mode a</step_desc>
+ <step_desc>check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode a</step_desc>
<expected>the exception should be thrown</expected>
</step>
</steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_mode_a_SecurityError.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_a.html</test_script_entry>
</description>
<specs>
<spec>
</spec>
</specs>
</testcase>
- <testcase purpose="check if SecurityError will be thrown when the wgt-package directory is resolved with mode rw" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_mode_rw_SecurityError">
+ <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode rw" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_invalid_mode_rw">
<description>
<steps>
<step order="1">
- <step_desc>check if SecurityError will be thrown when the wgt-package directory is resolved with moderw</step_desc>
+ <step_desc>check if InvalidValuesError will be reported when the wgt-package directory is resolved with moderw</step_desc>
<expected>the exception should be thrown</expected>
</step>
</steps>
- <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_mode_rw_SecurityError.html</test_script_entry>
+ <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_rw.html</test_script_entry>
</description>
<specs>
<spec>