michael@0: const Cc = Components.classes; michael@0: const Ci = Components.interfaces; michael@0: michael@0: function run_test() michael@0: { michael@0: var p = Cc["@mozilla.org/hash-property-bag;1"]. michael@0: createInstance(Ci.nsIWritablePropertyBag2); michael@0: p.setPropertyAsInt64("a", -4000); michael@0: do_check_neq(p.getPropertyAsUint64("a"), -4000); michael@0: }