Bug 843829 - Fix incorrect test. r=mrbkap

This wasn't actually testing anything, because |is| is defined in the scope of
the content, so by passing the objects as arguments, we end up re-wrapping them
in the content scope, where the distinction between waived and non-waived
objects doesn't exist.

We're actually just about to remove this test in the next patch, but I wanted
to make it correct first. :-)
This commit is contained in:
Bobby Holley 2013-04-03 11:41:23 -07:00
parent 1f82d91ffb
commit 5acffc4e54

View File

@ -44,7 +44,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=821850
is(bound.objectField.bar.a, 1, "Field Xrays work on objects");
is(bound.contentField.foo, 10, "Field Xrays work on content objects");
var hole = bound.contentField.rabbit.hole;
is(hole.win, window, "We gain back Xray vision when hitting a native object");
ok(hole.win === window, "We gain back Xray vision when hitting a native object");
ok(Cu.isXrayWrapper(hole.win), "Really is Xray");
// This gets invoked by an event handler.