1823a80779a276e7f4b2752d968b6b9df0ad4ae7
[test/tct/web/api.git] /
1 <!DOCTYPE html>
2 <!--
3 Copyright (c) 2012 Intel Corporation. All rights reserved.
4
5 Redistribution and use in source and binary forms, with or without modification,
6 are permitted provided that the following conditions are met:
7
8 *Redistributions of works must retain the original copyright notice, this list
9 of conditions and the following disclaimer.
10 *Redistributions in binary form must reproduce the original copyright notice,
11 this list of conditions and the following disclaimer in the documentation
12 and/or other materials provided with the distribution
13 *Neither the name of Intel Corporation nor the names of its contributors
14 may be used to endorse or promote products derived from this work without
15 specific prior written permission.
16
17 THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
18 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
21 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
24 OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28 Authors:
29         Kaiyu <kaiyux.li@intel.com>
30
31 -->
32
33
34 <html>
35 <head>
36 <title>FileSystemManager_removeStorageStateChangeListener_with_para_invalid</title>
37 <script type="text/javascript" src="support/unitcommon.js"></script>
38 <script src="support/filesystem_common.js"></script>
39 </head>
40 <body>
41 <div id="log"></div>
42 <script>
43 //==== TEST: FileSystemManager_removeStorageStateChangeListener_with_para_invalid
44 //==== LABEL Check if FileSystemManager::removeStorageStateChangeListener() method throws NotFoundError when given invalid watchId
45 //==== PRIORITY P2
46 //==== SPEC Tizen Web API:IO:Filesystem:FileSystemManager:removeStorageStateChangeListener M
47 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
48 //==== TEST_CRITERIA
49
50 test(function () {
51     var watchID;
52     assert_throws(NOT_FOUND_EXCEPTION, function () {
53         tizen.filesystem.removeStorageStateChangeListener(watchID);
54     });
55 }, document.title);
56
57 </script>
58 </body>
59 </html>