зеркало из https://github.com/mozilla/gecko-dev.git
Bug 658738 - browser_inspector_iframeTest.js cleanup
--HG-- extra : rebase_source : 78326a6f8794354e1aba9be4c178f2f66da438e0
This commit is contained in:
Родитель
44d05bd047
Коммит
3126abe3cf
|
@ -124,27 +124,25 @@ function performTestComparisons2()
|
||||||
is(InspectorUI.selection, div2, "selection matches div2 node");
|
is(InspectorUI.selection, div2, "selection matches div2 node");
|
||||||
is(InspectorUI.highlighter.highlitNode, div2, "highlighter matches selection");
|
is(InspectorUI.highlighter.highlitNode, div2, "highlighter matches selection");
|
||||||
|
|
||||||
finishUp();
|
|
||||||
}
|
|
||||||
|
|
||||||
function finishUp() {
|
|
||||||
InspectorUI.closeInspectorUI(true);
|
|
||||||
|
|
||||||
doc = div1 = div2 = iframe1 = iframe2 = highlighterFrame = null;
|
|
||||||
gBrowser.removeCurrentTab();
|
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
function test()
|
function test() {
|
||||||
{
|
|
||||||
waitForExplicitFinish();
|
waitForExplicitFinish();
|
||||||
|
|
||||||
gBrowser.selectedTab = gBrowser.addTab();
|
gBrowser.selectedTab = gBrowser.addTab();
|
||||||
gBrowser.selectedBrowser.addEventListener("load", function() {
|
gBrowser.selectedBrowser.addEventListener("load", function() {
|
||||||
gBrowser.selectedBrowser.removeEventListener("load", arguments.callee, true);
|
gBrowser.selectedBrowser.removeEventListener("load", arguments.callee, true);
|
||||||
doc = content.document;
|
doc = content.document;
|
||||||
waitForFocus(createDocument, content);
|
gBrowser.selectedBrowser.focus();
|
||||||
|
createDocument();
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
content.location = "data:text/html,iframe tests for inspector";
|
content.location = "data:text/html,iframe tests for inspector";
|
||||||
|
|
||||||
|
registerCleanupFunction(function () {
|
||||||
|
InspectorUI.closeInspectorUI(true);
|
||||||
|
gBrowser.removeCurrentTab();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче