This commit is contained in:
Blake Kaplan 2010-10-12 17:44:34 -07:00
Родитель df600b811f
Коммит 9acf13d5aa
1 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -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");