summaryrefslogtreecommitdiffstats
path: root/dom/cache/test/mochitest/frame.html
blob: 0e6dd35a24b2d4bf22a59cb0642e984ef92249e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<script>
  var context = "Window";
  function ok(a, msg) {
    parent.postMessage({type: "status", status: !!a,
                        msg: a + ": " + msg, context}, "*");
  }

  function is(a, b, msg) {
    parent.postMessage({type: "status", status: a === b,
                        msg: a + " === " + b + ": " + msg, context}, "*");
  }

  function testDone() {
    parent.postMessage({type: "finish", context}, "*");
  }
</script>