dom/indexedDB/test/test_bug847147.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/indexedDB/test/test_bug847147.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,57 @@
     1.4 +<!--
     1.5 +  Any copyright is dedicated to the Public Domain.
     1.6 +  http://creativecommons.org/publicdomain/zero/1.0/
     1.7 +-->
     1.8 +<!DOCTYPE html>
     1.9 +<html>
    1.10 +<head>
    1.11 +  <title>Indexed Database Property Test</title>
    1.12 +
    1.13 +  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.14 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    1.15 +
    1.16 +  <script type="text/javascript;version=1.7" src="unit/test_transaction_lifetimes.js"></script>
    1.17 +  <script type="text/javascript;version=1.7" src="helpers.js"></script>
    1.18 +
    1.19 +<script>
    1.20 +
    1.21 +var win;
    1.22 +var r1;
    1.23 +
    1.24 +function e()
    1.25 +{
    1.26 +  win = window.open("data:text/html,<body onload='opener.f()'>1", "_blank", "");
    1.27 +}
    1.28 +
    1.29 +function f()
    1.30 +{
    1.31 +  setTimeout(function() {
    1.32 +    r1 = win.document.documentElement;
    1.33 +    win.location.replace("data:text/html,<body onload='opener.g()'>2");
    1.34 +  }, 0);
    1.35 +}
    1.36 +
    1.37 +function g()
    1.38 +{
    1.39 +  r1.appendChild(document.createElement("iframe"));
    1.40 +  setTimeout(function() {
    1.41 +    win.location = "data:text/html,<body onload='opener.h()'>3";
    1.42 +  }, 0);
    1.43 +}
    1.44 +
    1.45 +function h()
    1.46 +{
    1.47 +  win.close();
    1.48 +  ok(true, "This test is looking for assertions so this is irrelevant.");
    1.49 +  SimpleTest.finish();
    1.50 +}
    1.51 +
    1.52 +SimpleTest.waitForExplicitFinish();
    1.53 +
    1.54 +</script>
    1.55 +</head>
    1.56 +
    1.57 +<body onload="e();">
    1.58 +<button onclick="e();">Start test</button>
    1.59 +</body>
    1.60 +</html>

mercurial