File: test16_run.html

package info (click to toggle)
libjs-jstorage 0.3.1-1.2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 324 kB
  • sloc: javascript: 706; makefile: 13; xml: 8
file content (28 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (6)
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
<!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("ttlkey") != "ttlval"){

                parent.testReady(false);
            }
            
            var interval = setInterval(function(){
                if(!$.jStorage.get("ttlkey")){
                    clearInterval(interval);
                    parent.testReady(true);
                }
            }, 100)
        }
        runTest()
    </script>
</head>
<body>

</body>
</html>