dom/indexedDB/test/test_bug847147.html

changeset 2
7e26c7da4463
equal deleted inserted replaced
-1:000000000000 0:e71573e048fb
1 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
5 <!DOCTYPE html>
6 <html>
7 <head>
8 <title>Indexed Database Property Test</title>
9
10 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
11 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
12
13 <script type="text/javascript;version=1.7" src="unit/test_transaction_lifetimes.js"></script>
14 <script type="text/javascript;version=1.7" src="helpers.js"></script>
15
16 <script>
17
18 var win;
19 var r1;
20
21 function e()
22 {
23 win = window.open("data:text/html,<body onload='opener.f()'>1", "_blank", "");
24 }
25
26 function f()
27 {
28 setTimeout(function() {
29 r1 = win.document.documentElement;
30 win.location.replace("data:text/html,<body onload='opener.g()'>2");
31 }, 0);
32 }
33
34 function g()
35 {
36 r1.appendChild(document.createElement("iframe"));
37 setTimeout(function() {
38 win.location = "data:text/html,<body onload='opener.h()'>3";
39 }, 0);
40 }
41
42 function h()
43 {
44 win.close();
45 ok(true, "This test is looking for assertions so this is irrelevant.");
46 SimpleTest.finish();
47 }
48
49 SimpleTest.waitForExplicitFinish();
50
51 </script>
52 </head>
53
54 <body onload="e();">
55 <button onclick="e();">Start test</button>
56 </body>
57 </html>

mercurial