зеркало из https://github.com/mozilla/gecko-dev.git
Bug 580128. Remove .wrappedJSObject gets that don't work with the new wrappers. r=mrbkap@gmail.com
This commit is contained in:
Родитель
814da522b1
Коммит
1866028dc8
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче