|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=597809 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 597809</title> |
|
8 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
|
10 </head> |
|
11 <body> |
|
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=597809">Mozilla Bug 597809</a> |
|
13 <p id="display"></p> |
|
14 <pre id="test"> |
|
15 <script type="application/javascript"> |
|
16 |
|
17 /** Test for Bug 597809 **/ |
|
18 |
|
19 SimpleTest.waitForExplicitFinish(); |
|
20 |
|
21 SpecialPowers.addCategoryEntry("JavaScript-global-property", "testSNSM", "@mozilla.org/xmlextras/xmlhttprequest;1", |
|
22 false, true); |
|
23 |
|
24 SimpleTest.executeSoon(function () { |
|
25 ok(window.testSNSM, "testSNSM should return an object"); |
|
26 // The category entry must be removed before finishing the test, |
|
27 // otherwise it will affect all following tests in the test suite. |
|
28 SpecialPowers.deleteCategoryEntry("JavaScript-global-property", "testSNSM", false); |
|
29 SimpleTest.finish(); |
|
30 }); |
|
31 |
|
32 |
|
33 </script> |
|
34 </pre> |
|
35 </body> |
|
36 </html> |