Backed out changeset eb85e39d0383 (bug 1368431) for too long line at browser_net_filter-autocomplete.js:10. r=backout
authorSebastian Hengst <archaeopteryx@coole-files.de>
Sat, 10 Jun 2017 14:50:27 +0200
changeset 413866 35bdd25a810319b52365a12da51df0ac2426c6cc
parent 413865 7dc72037b16f9739ea59eb244ef9d898be0eb222
child 413867 806cf3746d111cd359fcea0938959b0582448ad6
push id1490
push usermtabara@mozilla.com
push dateMon, 31 Jul 2017 14:08:16 +0000
treeherdermozilla-release@70e32e6bf15e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs1368431
milestone55.0a1
backs outeb85e39d0383980f7d698e4bb163c14ef322c137
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
Backed out changeset eb85e39d0383 (bug 1368431) for too long line at browser_net_filter-autocomplete.js:10. r=backout
devtools/client/netmonitor/test/browser.ini
devtools/client/netmonitor/test/browser_net_filter-autocomplete.js
--- a/devtools/client/netmonitor/test/browser.ini
+++ b/devtools/client/netmonitor/test/browser.ini
@@ -107,17 +107,16 @@ skip-if = (os == 'linux' && bits == 32 &
 [browser_net_frame.js]
 [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_filter-autocomplete.js]
 [browser_net_filter-flags.js]
 [browser_net_footer-summary.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]
deleted file mode 100644
--- a/devtools/client/netmonitor/test/browser_net_filter-autocomplete.js
+++ /dev/null
@@ -1,91 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
-   http://creativecommons.org/publicdomain/zero/1.0/ */
-
-"use strict";
-
-function testAutocompleteContents(expected, document) {
-  expected.forEach(function (item, i) {
-    is(
-      document
-        .querySelector(`.devtools-autocomplete-listbox .autocomplete-item:nth-child(${i + 1})`)
-        .textContent,
-      item,
-      `${expected[i]} found`
-    );
-  });
-}
-
-add_task(async function () {
-  let { monitor } = await initNetMonitor(FILTERING_URL);
-  let { document, window } = monitor.panelWin;
-
-  info("Starting test... ");
-
-  EventUtils.synthesizeMouseAtCenter(
-    document.querySelector(".devtools-filterinput"), {}, window);
-  // Empty Mouse click should keep autocomplete hidden
-  ok(!document.querySelector(".devtools-autocomplete-popup"),
-    "Autocomplete Popup Created");
-
-  // Typing a char should invoke a autocomplete
-  EventUtils.synthesizeKey("s", {});
-  ok(document.querySelector(".devtools-autocomplete-popup"),
-    "Autocomplete Popup Created");
-  testAutocompleteContents([
-    "scheme:",
-    "set-cookie-domain:",
-    "set-cookie-name:",
-    "set-cookie-value:",
-    "size:",
-    "status-code:",
-  ], document);
-
-  EventUtils.synthesizeKey("c", {});
-  testAutocompleteContents(["scheme:"], document);
-  EventUtils.synthesizeKey("VK_TAB", {});
-  // Tab selection should hide autocomplete
-  ok(!document.querySelector(".devtools-autocomplete-popup"),
-    "Autocomplete Popup Hidden");
-  is(document.querySelector(".devtools-filterinput").value,
-    "scheme:", "Value correctly set after TAB");
-
-  // Space separated tokens
-  EventUtils.synthesizeKey("https ", {});
-  // Adding just a space should keep popup hidden
-  ok(!document.querySelector(".devtools-autocomplete-popup"),
-    "Autocomplete Popup still hidden");
-
-  // The last token where autocomplete is availabe shall generate the popup
-  EventUtils.synthesizeKey("p", {});
-  testAutocompleteContents(["protocol:"], document);
-
-  // The new value of the text box should be previousTokens + latest value selected
-  EventUtils.synthesizeKey("VK_RETURN", {});
-  is(document.querySelector(".devtools-filterinput").value,
-    "scheme:https protocol:", "Tokenized click generates correct value in input box");
-
-  // The negative filter flags
-  EventUtils.synthesizeKey(" -", {});
-  testAutocompleteContents([
-    "-cause:",
-    "-domain:",
-    "-has-response-header:",
-    "-is:",
-    "-larger-than:",
-    "-method:",
-    "-mime-type:",
-    "-protocol:",
-    "-regexp:",
-    "-remote-ip:",
-    "-scheme:",
-    "-set-cookie-domain:",
-    "-set-cookie-name:",
-    "-set-cookie-value:",
-    "-size:",
-    "-status-code:",
-    "-transferred-larger-than:",
-    "-transferred:",
-  ], document);
-
-  await teardown(monitor);
-});