Bug 580128. Update mochi tests to the new wrappers. r=mrbkap@gmail.com
authorAndreas Gal <gal@mozilla.com>
Sun, 10 Oct 2010 15:41:14 -0700
changeset 55652 8c493a26e35b35c6ef3ad0d2749462a0e2c760b4
parent 55651 3321d11bdcb3eda8427765191c5f80fc9cd346b2
child 55653 f2125076baa8e3dc7c1180301a96e7e941380baa
push id16269
push userjst@mozilla.com
push dateThu, 14 Oct 2010 01:40:35 +0000
treeherdermozilla-central@29c228a4d7eb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs580128
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 580128. Update mochi tests to the new wrappers. r=mrbkap@gmail.com
js/src/xpconnect/tests/mochitest/test_bug553407.html
--- a/js/src/xpconnect/tests/mochitest/test_bug553407.html
+++ b/js/src/xpconnect/tests/mochitest/test_bug553407.html
@@ -16,16 +16,17 @@ https://bugzilla.mozilla.org/show_bug.cg
   
 </div>
 <pre id="test">
 <script type="application/javascript">
 
 /** Test for Bug 553407 **/
 is(typeof new XPCNativeWrapper(location), "object", "XPCNativeWrapper(location) is an object")
 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")
+// We no longer support .wrappedJSObject on NW since for same-origin there is no wrapper in between.
+// 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>
 </body>
 </html>