Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / mochitest / test_bug384632.html
blob251ec9b15304428df248d951fdce049bddfc95e1
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=384632
5 -->
6 <head>
7 <title>Test for Bug 384632</title>
8 <script 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=384632">Mozilla Bug 384632</a>
13 <p id="display"></p>
14 <div id="content" style="display: none">
16 </div>
17 <pre id="test">
18 <script type="application/javascript">
20 /** Test for Bug 384632 **/
21 var Cc = SpecialPowers.Cc, Ci = SpecialPowers.Ci;
22 var propBag = Cc["@mozilla.org/hash-property-bag;1"].createInstance(Ci.nsIWritablePropertyBag);
23 var obj = {};
24 propBag.setProperty("foopy", obj);
25 ok(SpecialPowers.unwrap(propBag.getProperty("foopy")) === obj,
26 "nsIVariant works with regular objects");
27 propBag.setProperty("foopy1", external);
28 ok(SpecialPowers.unwrap(propBag.getProperty("foopy1")) === external,
29 "nsIVariant works with bizarre objects");
31 </script>
32 </pre>
33 </body>
34 </html>