[Filesystem] SecurityError -> InvalidValuesError in resolving with denied mode
authorPiotr Szydelko <p.szydelko@samsung.com>
Fri, 16 Aug 2013 06:43:46 +0000 (08:43 +0200)
committerPiotr Szydelko <p.szydelko@samsung.com>
Fri, 16 Aug 2013 10:18:15 +0000 (12:18 +0200)
Change-Id: Ia23de42521ddc41e711184648ebfac6128741e89

16 files changed:
tct-filesystem-tizen-tests/filesystem/FileStream_write.html [changed mode: 0755->0644]
tct-filesystem-tizen-tests/filesystem/FileStream_writeBytes.html [changed mode: 0755->0644]
tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_a.html [new file with mode: 0644]
tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_rw.html [new file with mode: 0644]
tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html [new file with mode: 0644]
tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_mode_a_SecurityError.html [deleted file]
tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_mode_rw_SecurityError.html [deleted file]
tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_mode_w_SecurityError.html [deleted file]
tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_a.html [new file with mode: 0644]
tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_rw.html [new file with mode: 0644]
tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_w.html [new file with mode: 0644]
tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_mode_a_SecurityError.html [deleted file]
tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_mode_rw_SecurityError.html [deleted file]
tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_mode_w_SecurityError.html [deleted file]
tct-filesystem-tizen-tests/filesystem/File_parent_attribute_notnull_using_resolve.html [changed mode: 0755->0644]
tct-filesystem-tizen-tests/tests.xml

diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_a.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_a.html
new file mode 100644 (file)
index 0000000..6e753e0
--- /dev/null
@@ -0,0 +1,59 @@
+<!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>
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_rw.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_rw.html
new file mode 100644 (file)
index 0000000..2d40b19
--- /dev/null
@@ -0,0 +1,59 @@
+<!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>
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html
new file mode 100644 (file)
index 0000000..a73115a
--- /dev/null
@@ -0,0 +1,59 @@
+<!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>
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_mode_a_SecurityError.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_mode_a_SecurityError.html
deleted file mode 100644 (file)
index 1db5e06..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!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>
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_mode_rw_SecurityError.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_mode_rw_SecurityError.html
deleted file mode 100644 (file)
index ab48393..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!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>
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_mode_w_SecurityError.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_mode_w_SecurityError.html
deleted file mode 100644 (file)
index 8a27a8b..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!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>
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_a.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_a.html
new file mode 100644 (file)
index 0000000..264e75a
--- /dev/null
@@ -0,0 +1,59 @@
+<!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>
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_rw.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_rw.html
new file mode 100644 (file)
index 0000000..5fe4197
--- /dev/null
@@ -0,0 +1,59 @@
+<!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>
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_w.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_w.html
new file mode 100644 (file)
index 0000000..65e63ef
--- /dev/null
@@ -0,0 +1,59 @@
+<!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>
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_mode_a_SecurityError.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_mode_a_SecurityError.html
deleted file mode 100644 (file)
index 3b6c40f..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!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>
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_mode_rw_SecurityError.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_mode_rw_SecurityError.html
deleted file mode 100644 (file)
index 3beeb5e..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!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>
diff --git a/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_mode_w_SecurityError.html b/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_mode_w_SecurityError.html
deleted file mode 100644 (file)
index 7801b2d..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!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>
index 7a4c57408182bc1ca2cf09e8caa063ad10be531e..e479598bde87d6ffcc4eb6ca63303e610a967059 100644 (file)
           </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>