summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/bugs/iframe_bug430276-2.html
blob: 0d495cc9790d1692efa88bbabeadd9250fb4b15e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
  <title></title>
  <script type="application/javascript">
  new XMLHttpRequest();
  function runTest() {
    document.open();
    var succeeded = true;
    try {
      new XMLHttpRequest();
    } catch(e) {
      succeeded = false;
    }
    window.parent.ok(succeeded, "Creating XMLHttpRequest failed!");
    window.parent.SimpleTest.finish();
    document.close();
  }
  </script>
</head>
<body onload="runTest()">
</body>
</html>