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