mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
0c47a62798
--HG-- rename : browser/devtools/inspector/test/browser_inspector_bug_817558_delete_node.js => browser/devtools/inspector/test/browser_inspector_delete-selected-node-01.js rename : browser/devtools/inspector/test/browser_inspector_bug_848731_reset_selection_on_delete.js => browser/devtools/inspector/test/browser_inspector_delete-selected-node-02.js rename : browser/devtools/inspector/test/browser_inspector_destroyselection.js => browser/devtools/inspector/test/browser_inspector_delete-selected-node-03.js rename : browser/devtools/inspector/test/browser_inspector_bug_840156_destroy_after_navigation.js => browser/devtools/inspector/test/browser_inspector_destroy-after-navigation.js rename : browser/devtools/inspector/test/browser_inspector_cmd_inspect.js => browser/devtools/inspector/test/browser_inspector_gcli-inspect-command.js rename : browser/devtools/inspector/test/browser_inspector_basic_highlighter.js => browser/devtools/inspector/test/browser_inspector_highlighter-01.js rename : browser/devtools/inspector/test/browser_inspector_highlighter.js => browser/devtools/inspector/test/browser_inspector_highlighter-02.js rename : browser/devtools/inspector/test/browser_inspector_bug_674871.js => browser/devtools/inspector/test/browser_inspector_highlighter-03.js rename : browser/devtools/inspector/test/browser_inspector_bug_958456_highlight_comments.js => browser/devtools/inspector/test/browser_inspector_highlighter-comments.js rename : browser/devtools/inspector/test/browser_inspector_iframeTest.js => browser/devtools/inspector/test/browser_inspector_highlighter-iframes.js rename : browser/devtools/inspector/test/browser_inspector_bug_699308_iframe_navigation.js => browser/devtools/inspector/test/browser_inspector_iframe-navigation.js rename : browser/devtools/inspector/test/browser_inspector_bug_665880.js => browser/devtools/inspector/test/browser_inspector_inspect-object-element.js rename : browser/devtools/inspector/test/browser_inspector_bug_672902_keyboard_shortcuts.js => browser/devtools/inspector/test/browser_inspector_keyboard-shortcuts.js rename : browser/devtools/inspector/test/browser_inspector_bug_962478_picker_stops_on_destroy.js => browser/devtools/inspector/test/browser_inspector_picker-stop-on-destroy.js rename : browser/devtools/inspector/test/browser_inspector_bug_961771_picker_stops_on_tool_select.js => browser/devtools/inspector/test/browser_inspector_picker-stop-on-tool-change.js rename : browser/devtools/inspector/test/browser_inspector_pseudoclass_lock.js => browser/devtools/inspector/test/browser_inspector_pseudoclass-lock.js rename : browser/devtools/inspector/test/browser_inspector_pseudoClass_menu.js => browser/devtools/inspector/test/browser_inspector_pseudoclass-menu.js rename : browser/devtools/inspector/test/browser_inspector_dead_node_exception.js => browser/devtools/inspector/test/browser_inspector_remove-iframe-during-load.js rename : browser/devtools/inspector/test/browser_inspector_bug_650804_search.js => browser/devtools/inspector/test/browser_inspector_search-01.js rename : browser/devtools/inspector/test/browser_inspector_bug_831693_combinator_suggestions.js => browser/devtools/inspector/test/browser_inspector_search-02.js rename : browser/devtools/inspector/test/browser_inspector_bug_831693_input_suggestion.js => browser/devtools/inspector/test/browser_inspector_search-03.js rename : browser/devtools/inspector/test/browser_inspector_bug_831693_searchbox_panel_navigation.js => browser/devtools/inspector/test/browser_inspector_search-navigation.js rename : browser/devtools/inspector/test/browser_inspector_select_last_selected.js => browser/devtools/inspector/test/browser_inspector_select-last-selected.js rename : browser/devtools/inspector/test/browser_inspector_bug_958169_switch_to_inspector_on_pick.js => browser/devtools/inspector/test/browser_inspector_switch-to-inspector-on-pick.js rename : browser/devtools/inspector/test/browser_inspector_bug_922125_destroy_on_navigate.js => browser/devtools/inspector/test/browser_inspector_update-on-navigation.js rename : browser/devtools/inspector/test/browser_inspector_breadcrumbs.html => browser/devtools/inspector/test/doc_inspector_breadcrumbs.html rename : browser/devtools/inspector/test/browser_inspector_destroyselection.html => browser/devtools/inspector/test/doc_inspector_delete-selected-node-01.html rename : browser/devtools/inspector/test/browser_inspector_bug_848731_reset_selection_on_delete.html => browser/devtools/inspector/test/doc_inspector_delete-selected-node-02.html rename : browser/devtools/inspector/test/browser_inspector_cmd_inspect.html => browser/devtools/inspector/test/doc_inspector_gcli-inspect-command.html rename : browser/devtools/inspector/test/browser_inspector_bug_958456_highlight_comments.html => browser/devtools/inspector/test/doc_inspector_highlighter-comments.html rename : browser/devtools/inspector/test/browser_inspector_highlighter.html => browser/devtools/inspector/test/doc_inspector_highlighter.html rename : browser/devtools/inspector/test/browser_inspector_infobar.html => browser/devtools/inspector/test/doc_inspector_infobar.html rename : browser/devtools/inspector/test/browser_inspector_menu.html => browser/devtools/inspector/test/doc_inspector_menu.html rename : browser/devtools/inspector/test/browser_inspector_dead_node_exception.html => browser/devtools/inspector/test/doc_inspector_remove-iframe-during-load.html rename : browser/devtools/inspector/test/browser_inspector_bug_831693_search_suggestions.html => browser/devtools/inspector/test/doc_inspector_search-suggestions.html rename : browser/devtools/inspector/test/browser_inspector_bug_650804_search.html => browser/devtools/inspector/test/doc_inspector_search.html rename : browser/devtools/inspector/test/browser_inspector_select_last_selected.html => browser/devtools/inspector/test/doc_inspector_select-last-selected-01.html rename : browser/devtools/inspector/test/browser_inspector_select_last_selected2.html => browser/devtools/inspector/test/doc_inspector_select-last-selected-02.html
41 lines
1.4 KiB
JavaScript
41 lines
1.4 KiB
JavaScript
/* vim: set ts=2 et sw=2 tw=80: */
|
|
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
"use strict";
|
|
|
|
// Testing that the inspector doesn't go blank when navigating to a page that
|
|
// deletes an iframe while loading.
|
|
|
|
const TEST_URL = TEST_URL_ROOT + "doc_inspector_remove-iframe-during-load.html";
|
|
|
|
let test = asyncTest(function* () {
|
|
let { inspector, toolbox } = yield openInspectorForURL("about:blank");
|
|
|
|
yield selectNode("body", inspector);
|
|
|
|
let loaded = once(gBrowser.selectedBrowser, "load", true);
|
|
content.location = TEST_URL;
|
|
|
|
info("Waiting for test page to load.");
|
|
yield loaded;
|
|
|
|
// The content doc contains a script that creates an iframe and deletes
|
|
// it immediately after. This is what used to make the inspector go
|
|
// blank when navigating to that page.
|
|
info("Creating and removing an iframe.");
|
|
var iframe = content.document.createElement("iframe");
|
|
content.document.body.appendChild(iframe);
|
|
iframe.remove();
|
|
|
|
ok(!getNode("iframe", {expectNoMatch: true}), "Iframe has been removed.");
|
|
|
|
info("Waiting for markup-view to load.");
|
|
yield inspector.once("markuploaded");
|
|
|
|
// Assert that the markup-view is displayed and works
|
|
ok(!getNode("iframe", {expectNoMatch: true}), "Iframe has been removed.");
|
|
is(getNode("#yay").textContent, "load", "Load event fired.");
|
|
|
|
yield selectNode("#yay", inspector);
|
|
});
|