[filesystem] Remove invalid test case. 06/196106/3
authorMichal Michalski <m.michalski2@partner.samsung.com>
Fri, 21 Dec 2018 14:35:51 +0000 (15:35 +0100)
committerMichal Michalski <m.michalski2@partner.samsung.com>
Fri, 21 Dec 2018 14:49:41 +0000 (15:49 +0100)
removeStorageStateChangeListener_with_para_invalid test case
was not testing documented behavior, instead it was testing
implementation. According to documentation
removeStorageStateChangeListener function should return without
any error if watchId does not correspond to registered listener.

WebAPI implementation is being corrected at the same time.

Change-Id: I28861b820f90c4cb751c35221d624feb6656c2c2
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
common/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_with_para_invalid.html [deleted file]
common/tct-filesystem-tizen-tests/tests.full.xml
common/tct-filesystem-tizen-tests/tests.xml

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
deleted file mode 100755 (executable)
index 1823a80..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-<!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>
index 1c1845b4eb055869871cd460e78e838310fa14e3..7bf8d13b3004d3aa961d67c4b87c777a40aa66e1 100755 (executable)
           </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>
index 2040883d05c1036484e876335e77b225377dde39..cb66c917fa5492199d971373bd9f9ddda8584dae 100755 (executable)
       <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>TV</value></capability>
       </capabilities>
-         <testcase purpose="Check if FileSystemManager::removeStorageStateChangeListener() method throws NotFoundError when given invalid watchId" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_removeStorageStateChangeListener_with_para_invalid" priority="P2">
-            <description>
-               <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_removeStorageStateChangeListener_with_para_invalid.html</test_script_entry>
-            </description>
-         </testcase>
       </set>
    </suite>
 </test_definition>