зеркало из https://github.com/mozilla/pjs.git
Revert unintended changes.
This commit is contained in:
Родитель
df600b811f
Коммит
9acf13d5aa
|
@ -23,12 +23,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=500931
|
||||||
|
|
||||||
/** Test for Bug 533596 **/
|
/** Test for Bug 533596 **/
|
||||||
|
|
||||||
function test() {
|
|
||||||
var utils = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
|
||||||
.getInterface(Components.interfaces.nsIDOMWindowUtils);
|
|
||||||
is(utils.getClassName(this), "Proxy", "this gets properly wrapped");
|
|
||||||
}
|
|
||||||
|
|
||||||
function go() {
|
function go() {
|
||||||
var win = $('ifr').contentWindow;
|
var win = $('ifr').contentWindow;
|
||||||
var utils = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
var utils = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
||||||
|
@ -40,12 +34,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=500931
|
||||||
is(win.location.href, "http://example.org/tests/js/src/xpconnect/tests/mochitest/chrome_wrappers_helper.html",
|
is(win.location.href, "http://example.org/tests/js/src/xpconnect/tests/mochitest/chrome_wrappers_helper.html",
|
||||||
"can still get strings out");
|
"can still get strings out");
|
||||||
|
|
||||||
{
|
|
||||||
let local = test;
|
|
||||||
eval();
|
|
||||||
local();
|
|
||||||
}
|
|
||||||
|
|
||||||
var unsafeWin = win.wrappedJSObject;
|
var unsafeWin = win.wrappedJSObject;
|
||||||
is(utils.getClassName(unsafeWin), "Proxy", "can get a Proxy");
|
is(utils.getClassName(unsafeWin), "Proxy", "can get a Proxy");
|
||||||
is(utils.getClassName(unsafeWin.location), "Proxy", "deep wrapping works");
|
is(utils.getClassName(unsafeWin.location), "Proxy", "deep wrapping works");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче