4 https://bugzilla.mozilla.org/show_bug.cgi?id=384632
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"/>
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=384632">Mozilla Bug
384632</a>
14 <div id=
"content" style=
"display: none">
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);
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");