|
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> |