Bug 580128. Remove .wrappedJSObject gets that don't work with the new wrappers. r=mrbkap@gmail.com

This commit is contained in:
Johnny Stenback 2010-10-10 15:48:39 -07:00
parent dd9636fcf2
commit e9755cda81
3 changed files with 5 additions and 6 deletions

View File

@ -34,8 +34,7 @@ function test()
window_B.close();
var doc = window_C.gBrowser.getBrowserForTab(window_C.gBrowser.tabs[0])
.docShell.contentViewer.DOMDocument.wrappedJSObject;
var elems = document.documentElement.childNodes;
.docShell.contentViewer.DOMDocument;
var calls = doc.defaultView.test_panels();
window_C.close();
finish();

View File

@ -59,7 +59,7 @@ function test() {
// add text data
let textbox = this.contentDocument.getElementById("textbox");
textbox.wrappedJSObject.value = value3;
textbox.value = value3;
// duplicate the tab
let duplicateTab = ss.duplicateTab(window, tab2);
@ -71,7 +71,7 @@ function test() {
ok(ss.getTabValue(duplicateTab, key2) == value2 && this.currentURI.spec == testURL,
"correctly duplicated the tab's state");
let textbox = this.contentDocument.getElementById("textbox");
is(textbox.wrappedJSObject.value, value3, "also duplicated text data");
is(textbox.value, value3, "also duplicated text data");
// clean up
tabbrowser.removeTab(duplicateTab);

View File

@ -80,7 +80,7 @@ function test() {
// mark the window with some unique data to be restored later on
ss.setWindowValue(newWin, uniqueKey, uniqueValue);
let textbox = newWin.content.document.getElementById("textbox");
textbox.wrappedJSObject.value = uniqueText;
textbox.value = uniqueText;
newWin.close();
@ -108,7 +108,7 @@ function test() {
"The window correctly restored the URL");
let textbox = newWin2.content.document.getElementById("textbox");
is(textbox.wrappedJSObject.value, uniqueText,
is(textbox.value, uniqueText,
"The window correctly restored the form");
is(ss.getWindowValue(newWin2, uniqueKey), uniqueValue,
"The window correctly restored the data associated with it");