dom/tests/mochitest/general/test_windowProperties.html

branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
equal deleted inserted replaced
-1:000000000000 0:4320c4f36fc2
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Test that all window properties are accessible to nonprivileged code</title>
5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css">
7 </head>
8
9 <body id="body">
10
11 <script type="application/javascript">
12 var lastProp;
13 try {
14 var propVals = [];
15 for (var prop in window) {
16 lastProp = prop;
17 propVals.push(window[prop]);
18 }
19 ok(true, "Read all " + propVals.length + " window properties");
20 } catch (ex) {
21 ok(false, "Exception occurred reading window." + lastProp);
22 }
23 </script>
24
25 <p id="display"></p>
26
27 </body>
28 </html>

mercurial