Bug 1352035 - Removed test case for preview-panel. r=Honza
authorLocke Chen <locke12456@gmail.com>
Fri, 31 Mar 2017 12:26:28 +0800
changeset 350953 d5c4cf3eeb84a8a2351e64ddfc7ee35d3b91cdfd
parent 350952 cad113686216874df6a5fa3158baccf289025bd4
child 350954 9cb3f1aee96782a74e4fe8119da8930eda19142a
push id31596
push userkwierso@gmail.com
push dateMon, 03 Apr 2017 21:43:13 +0000
treeherdermozilla-central@2a593ea93f66 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersHonza
bugs1352035
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1352035 - Removed test case for preview-panel. r=Honza MozReview-Commit-ID: HhpCnxuRiBI
devtools/client/netmonitor/test/browser.ini
devtools/client/netmonitor/test/browser_net_html-preview.js
--- a/devtools/client/netmonitor/test/browser.ini
+++ b/devtools/client/netmonitor/test/browser.ini
@@ -101,17 +101,16 @@ skip-if = (os == 'linux' && bits == 32 &
 [browser_net_header-docs.js]
 skip-if = (os == 'linux' && debug && bits == 32) # Bug 1321434
 [browser_net_filter-01.js]
 skip-if = (os == 'linux' && debug && bits == 32) # Bug 1303439
 [browser_net_filter-02.js]
 [browser_net_filter-03.js]
 [browser_net_filter-04.js]
 [browser_net_footer-summary.js]
-[browser_net_html-preview.js]
 [browser_net_icon-preview.js]
 [browser_net_image-tooltip.js]
 [browser_net_json-b64.js]
 [browser_net_json-null.js]
 [browser_net_json-long.js]
 [browser_net_json-malformed.js]
 [browser_net_json_custom_mime.js]
 [browser_net_json_text_mime.js]
deleted file mode 100644
--- a/devtools/client/netmonitor/test/browser_net_html-preview.js
+++ /dev/null
@@ -1,65 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
-   http://creativecommons.org/publicdomain/zero/1.0/ */
-
-"use strict";
-
-/**
- * Tests if html responses show and properly populate a "Preview" tab.
- */
-
-add_task(function* () {
-  let { tab, monitor } = yield initNetMonitor(CONTENT_TYPE_URL);
-  info("Starting test... ");
-
-  let { document, gStore, windowRequire } = monitor.panelWin;
-  let Actions = windowRequire("devtools/client/netmonitor/src/actions/index");
-
-  gStore.dispatch(Actions.batchEnable(false));
-
-  let wait = waitForNetworkEvents(monitor, 6);
-  yield ContentTask.spawn(tab.linkedBrowser, {}, function* () {
-    content.wrappedJSObject.performRequests();
-  });
-  yield wait;
-
-  EventUtils.sendMouseEvent({ type: "click" },
-    document.querySelector(".network-details-panel-toggle"));
-
-  ok(document.querySelector("#headers-tab[aria-selected=true]"),
-    "The headers tab in the details panel should be selected.");
-  ok(!document.querySelector("#preview-tab"),
-    "The preview tab should be hidden for non html responses.");
-  ok(!document.querySelector("#preview-panel"),
-    "The preview panel is hidden for non html responses.");
-
-  EventUtils.sendMouseEvent({ type: "mousedown" },
-    document.querySelectorAll(".request-list-item")[4]);
-  document.querySelector("#preview-tab").click();
-
-  ok(document.querySelector("#preview-tab[aria-selected=true]"),
-    "The preview tab in the details panel should be selected.");
-  ok(document.querySelector("#preview-panel"),
-    "The preview panel should be visible now.");
-
-  let iframe = document.querySelector("#preview-panel iframe");
-  yield once(iframe, "DOMContentLoaded");
-
-  ok(iframe,
-    "There should be a response preview iframe available.");
-  ok(iframe.contentDocument,
-    "The iframe's content document should be available.");
-  is(iframe.contentDocument.querySelector("blink").textContent, "Not Found",
-    "The iframe's content document should be loaded and correct.");
-
-  EventUtils.sendMouseEvent({ type: "mousedown" },
-    document.querySelectorAll(".request-list-item")[5]);
-
-  ok(document.querySelector("#headers-tab[aria-selected=true]"),
-    "The headers tab in the details panel should be selected again.");
-  ok(!document.querySelector("#preview-tab"),
-    "The preview tab should be hidden again for non html responses.");
-  ok(!document.querySelector("#preview-panel"),
-    "The preview panel is hidden again for non html responses.");
-
-  yield teardown(monitor);
-});