Bug 553597 - Add a mochitest. r=bzbarsky

This commit is contained in:
Blake Kaplan 2010-06-08 09:13:11 -07:00
parent 62c84f09e1
commit 8a79fe9040

View File

@ -23,6 +23,7 @@ is(typeof new XPCNativeWrapper(location), "object", "XPCNativeWrapper(location)
is(typeof new XPCNativeWrapper(XMLHttpRequest), "function", "XPCNativeWrapper(XMLHttpRequest) is a function")
is(typeof new XPCNativeWrapper(location).wrappedJSObject, "object", "XPCNativeWrapper(location).wrappedJSObject is an object")
is(typeof new XPCNativeWrapper(XMLHttpRequest).wrappedJSObject, "function", "XPCNativeWrapper(XMLHttpRequest).wrappedJSObject is a function")
ok("a".replace("a", new XPCNativeWrapper(location)).indexOf("mochi.test") >= 0, "XPCNativeWrappers can be used as the replacement value for .replace");
</script>
</pre>