From 707d3ccd1416be3d5fb1633ed43f9dfaa79b5fea Mon Sep 17 00:00:00 2001 From: William Hesse Date: Tue, 18 Jun 2019 06:59:09 +0000 Subject: [PATCH] [infra] Remove obsolete webdriver/selenium support from testing After this removal, the only thing in tools/testing is the checked-in jsshell (Mozilla command-line JavaScript runner) executable. Discussions for removing that as well have been started. Change-Id: I28505154de9fa7df3a2d5f84f3f778c596f52fcc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106087 Reviewed-by: Bob Nystrom --- tools/testing/__init__.py | 20 - tools/testing/browser_README.txt | 29 -- .../extensions/chrome/ConsoleCollector.crx | Bin 6923 -> 0 bytes .../chrome/ConsoleCollector/background.js | 90 ---- .../chrome/ConsoleCollector/content.js | 19 - .../chrome/ConsoleCollector/manifest.json | 22 - .../extensions/firefox/ConsoleCollector.xpi | Bin 2613 -> 0 bytes .../firefox/ConsoleCollector/Makefile | 2 - .../firefox/ConsoleCollector/chrome.manifest | 2 - .../chrome/content/console.js | 104 ----- .../chrome/content/overlay.xul | 4 - .../firefox/ConsoleCollector/install.rdf | 20 - tools/testing/run_selenium.py | 390 ---------------- tools/testing/webdriver_test_setup.py | 434 ------------------ 14 files changed, 1136 deletions(-) delete mode 100644 tools/testing/__init__.py delete mode 100644 tools/testing/browser_README.txt delete mode 100644 tools/testing/extensions/chrome/ConsoleCollector.crx delete mode 100644 tools/testing/extensions/chrome/ConsoleCollector/background.js delete mode 100644 tools/testing/extensions/chrome/ConsoleCollector/content.js delete mode 100644 tools/testing/extensions/chrome/ConsoleCollector/manifest.json delete mode 100644 tools/testing/extensions/firefox/ConsoleCollector.xpi delete mode 100644 tools/testing/extensions/firefox/ConsoleCollector/Makefile delete mode 100644 tools/testing/extensions/firefox/ConsoleCollector/chrome.manifest delete mode 100644 tools/testing/extensions/firefox/ConsoleCollector/chrome/content/console.js delete mode 100644 tools/testing/extensions/firefox/ConsoleCollector/chrome/content/overlay.xul delete mode 100644 tools/testing/extensions/firefox/ConsoleCollector/install.rdf delete mode 100755 tools/testing/run_selenium.py delete mode 100755 tools/testing/webdriver_test_setup.py diff --git a/tools/testing/__init__.py b/tools/testing/__init__.py deleted file mode 100644 index 4df76e2d64e..00000000000 --- a/tools/testing/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file -# for details. All rights reserved. Use of this source code is governed by a -# BSD-style license that can be found in the LICENSE file. - - -import test_runner -import utils - - -# Constants used for test outcomes -SKIP = 'skip' -FAIL = 'fail' -PASS = 'pass' -OKAY = 'okay' -TIMEOUT = 'timeout' -CRASH = 'crash' -SLOW = 'slow' - -HOST_CPUS = utils.GuessCpus() -USE_DEFAULT_CPUS = -1 diff --git a/tools/testing/browser_README.txt b/tools/testing/browser_README.txt deleted file mode 100644 index 2ec2f3562a8..00000000000 --- a/tools/testing/browser_README.txt +++ /dev/null @@ -1,29 +0,0 @@ -Overview: - These are the instructions to run a wide variety of browser tests using - test.dart or dart/tools/testing/perf_testing/run_perf_tests.py. Currently - the results of run_perf_tests are uploaded to - https://dartperf.googleplex.com/. - -========= General Browser Setup ========== - -See instructions on: -https://code.google.com/p/dart/wiki/BrowserTestSetup - -========= Proceed further only if you also want to run performance tests.====== - -1) Pull down benchmarks from internal repo (Google only): goto/dartbrowsersetup - -2) Create a directory in called appengine-python in third_party. Download the - Linux/Other Platforms .zip file, and place the contents in the directory - you just created. - http://code.google.com/appengine/downloads.html#Google_App_Engine_SDK_for_Python - -3) Run the tests! While standing in dart/tools/testing/perf_testing, run - $> python run_perf_tests.py --forever --verbose - to run all the tests (browser performance, language correctness in the - browser, command line performance, and self-hosted compile time and compiled - code size). - - You can run individual tests by adding the particular option (such as - --language) when running create_graph.py. Type "create_graph.py -h" for a - full list of the options. diff --git a/tools/testing/extensions/chrome/ConsoleCollector.crx b/tools/testing/extensions/chrome/ConsoleCollector.crx deleted file mode 100644 index f853917fb99205656b30d2fccf4afb33ef813e43..0000000000000000000000000000000000000000 GIT binary patch literal 0 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4Mc=KoL<@^Rqe8`{@<7)T7Li zip&E$X7{W(!|eN4RGX@H&&^`?6UCpcwA7V@wT(zNg0;2_ zW>aZM_MykZ4O2;`v-Vx=E77I2B(mqAgFm{2FGmIv-z z@t)Mcj%=|GdyQGV(duM+g-;VF=YdmWjJK6;W{_V?Lg8uId9iu%;T=`9{>8LwPiNY~ z;2XAxGJrYI=OWR3amn(D>*(0PUBPOGjOpS>UWq)SB0+cGEy%07mXvsMuDj>Q}7XEM!UVV&z~J)-l*u_U%~MciQsM5LR-%RWc+$B43BxGF!t@Uh!x3_&r`brLFUwg}Qjl+$TL=eA2iy z)}Uz%PqAWUffuLltdi7RvR$>QGF+OSB`P3Fequ}q3HFh!!T(xYx*u^AX|qlhm(?ot zSdl}WGolK7b11&UIDNSl*U~~a4+h4ApnuCQg7i}Z06i}NIU&2NJxPY?e@W&S`}i5U zH+B3B-Hk~9$RKp!Z}P{_z`Z8-Gcbtp|0;iLd35}5?Cxj$-l6}Df6cN7|Boy1Z~b6m R-fbV4{$c6etYzKZ{TJRrTqytm diff --git a/tools/testing/extensions/firefox/ConsoleCollector/Makefile b/tools/testing/extensions/firefox/ConsoleCollector/Makefile deleted file mode 100644 index f6c8610e16d..00000000000 --- a/tools/testing/extensions/firefox/ConsoleCollector/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -../ConsoleCollector.xpi: chrome.manifest install.rdf chrome/content/console.js chrome/content/overlay.xul - zip -r ../ConsoleCollector.xpi chrome.manifest install.rdf chrome/content/console.js chrome/content/overlay.xul diff --git a/tools/testing/extensions/firefox/ConsoleCollector/chrome.manifest b/tools/testing/extensions/firefox/ConsoleCollector/chrome.manifest deleted file mode 100644 index 5425ba6bc8b..00000000000 --- a/tools/testing/extensions/firefox/ConsoleCollector/chrome.manifest +++ /dev/null @@ -1,2 +0,0 @@ -content ConsoleCollector chrome/content/ -overlay chrome://browser/content/browser.xul chrome://ConsoleCollector/content/overlay.xul diff --git a/tools/testing/extensions/firefox/ConsoleCollector/chrome/content/console.js b/tools/testing/extensions/firefox/ConsoleCollector/chrome/content/console.js deleted file mode 100644 index af46de469f1..00000000000 --- a/tools/testing/extensions/firefox/ConsoleCollector/chrome/content/console.js +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -// This Firefox add-on exposes the Javascript console contents to Javascript -// running in the browser. Once this is installed there will be a new -// window.ConsoleCollector object with read() and clear() functions. - -var ConsoleCollector = {}; - -(function() { - // An array for collecting the messages. - var messages = []; - - // Add a console message to the collection. - this.add = function(message) { - messages.push(message); - }; - - // Read the message collection. As a side effect we clear the message list. - this.read = function(type) { - var rtn = []; - for (var i = 0; i < messages.length; i++) { - var message = messages[i]; - if (message.errorMessage) { - rtn.push({ 'time' : message.timeStamp, - 'source' : message.sourceName, - 'line': message.lineNumber, - 'column': message.columnNumber, - 'category': message.category, - 'message' : message.errorMessage }); - } - } - messages = []; - return rtn; - }; - - // Clear the message list. - this.clear = function() { - messages = []; - }; -}).apply(ConsoleCollector); - -// A Console Listener. -// See https://developer.mozilla.org/en-US/docs/Console_service for -// details. -(function() { - - var consoleService; - - var consoleListener = { - observe: function(e) { - try { - var message = e.QueryInterface(Components.interfaces.nsIScriptError); - ConsoleCollector.add(message); - } catch (exception) { - ConsoleCollector.add(e); - } - }, - - QueryInterface: function (iid) { - if (!iid.equals(Components.interfaces.nsIConsoleListener) && - !iid.equals(Components.interfaces.nsISupports)) { - throw Components.results.NS_ERROR_NO_INTERFACE; - } - return this; - } - }; - - // Start collecting console messages. - function initialize(event) { - consoleService = Components.classes['@mozilla.org/consoleservice;1'] - .getService(Components.interfaces.nsIConsoleService); - if (consoleService) { - consoleService.registerListener(consoleListener); - } - // Add the handler for hooking in to each page's DOM. This handler - // is for each "gBrowser", representing a tab/window. - window.getBrowser().addEventListener("load", onPageLoad, true); - } - - // Stop collecting console messages. - function shutdown(event) { - window.getBrowser().removeEventListener("load", onPageLoad); - consoleService.unregisterListener(consoleListener); - ConsoleCollector.clear(); - } - - // Hook the ConsoleCollector into the DOM as window.ConsoleCollector. - var onPageLoad = function(e) { - var win = e.originalTarget.defaultView; - if (win) { - win.wrappedJSObject.ConsoleCollector = ConsoleCollector; - } - }; - - // Add the handlers to initialize the add-on and shut it down. - // These handlers are for the application as a whole. - window.addEventListener('load', initialize, false); - window.addEventListener('unload', shutdown, false); -}()); - - - diff --git a/tools/testing/extensions/firefox/ConsoleCollector/chrome/content/overlay.xul b/tools/testing/extensions/firefox/ConsoleCollector/chrome/content/overlay.xul deleted file mode 100644 index 21347fb6239..00000000000 --- a/tools/testing/extensions/firefox/ConsoleCollector/chrome/content/overlay.xul +++ /dev/null @@ -1,4 +0,0 @@ - - -