[common][tct-filesystem-tizen-tests][Add one TC] 41/130641/1
authorxy.qian <xy.qian@samsung.com>
Tue, 23 May 2017 07:24:49 +0000 (15:24 +0800)
committerxy.qian <xy.qian@samsung.com>
Tue, 23 May 2017 07:24:49 +0000 (15:24 +0800)
Change-Id: I1a61792db1ee33b3ecd3578b69418dd139c116ec
Signed-off-by: xy.qian <xy.qian@samsung.com>
common/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_with_para_invalid.html [new file with mode: 0755]

diff --git a/common/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_with_para_invalid.html b/common/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_with_para_invalid.html
new file mode 100755 (executable)
index 0000000..1823a80
--- /dev/null
@@ -0,0 +1,59 @@
+<!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>
+
+-->
+
+
+<html>
+<head>
+<title>FileSystemManager_removeStorageStateChangeListener_with_para_invalid</title>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script src="support/filesystem_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: FileSystemManager_removeStorageStateChangeListener_with_para_invalid
+//==== LABEL Check if FileSystemManager::removeStorageStateChangeListener() method throws NotFoundError when given invalid watchId
+//==== PRIORITY P2
+//==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:removeStorageStateChangeListener M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
+//==== TEST_CRITERIA
+
+test(function () {
+    var watchID;
+    assert_throws(NOT_FOUND_EXCEPTION, function () {
+        tizen.filesystem.removeStorageStateChangeListener(watchID);
+    });
+}, document.title);
+
+</script>
+</body>
+</html>