summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/general/test_windowProperties.html
blob: 3fe4c9ee9e63cd3f020ca1ee2cb8cc503115562a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE HTML>
<html>
<head>
  <title>Test that all window properties are accessible to nonprivileged code</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css">
</head>

<body id="body">

<script type="application/javascript">
var lastProp;
try {
  var propVals = [];
  for (var prop in window) {
    lastProp = prop;
    propVals.push(window[prop]);
  }
  ok(true, "Read all " + propVals.length + " window properties");
} catch (ex) {
  ok(false, "Exception occurred reading window." + lastProp); 
}
</script>

<p id="display"></p>

</body>
</html>