File: test17_run.html

package info (click to toggle)
libjs-jstorage 0.3.1-1.3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 324 kB
  • sloc: javascript: 706; makefile: 13; xml: 8
file content (36 lines) | stat: -rw-r--r-- 778 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html>
<head>
    <script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js"></script>
    <script src="../jstorage.js"></script>
    <script>

        function runTest(){

            if($.jStorage.get("delkey") != "delval"){
                return false;
            }

            if($.jStorage.get("nodelkey") != "nodelval"){
                return false;
            }
            
            $.jStorage.deleteKey("delkey");

            if($.jStorage.get("delkey")){
                return false;
            }

            if($.jStorage.get("nodelkey") != "nodelval"){
                return false;
            }

            return true;
        }
        parent.testReady(runTest());
    </script>
</head>
<body>

</body>
</html>