Bug 1013518 - separate devtools css linting from general browser linting, r=jryans
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 17 Sep 2015 14:15:05 +0100
changeset 295595 c4fc1b25416c12d215f9a530c41cf87923575d95
parent 295594 7dc9037bae6b68f77c58430c6e078cf332fb3caa
child 295596 b7653b40dc277caba39c41d1bd6644fcc27a9341
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjryans
bugs1013518
milestone43.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 1013518 - separate devtools css linting from general browser linting, r=jryans
browser/base/content/test/general/browser_parsable_css.js
--- a/browser/base/content/test/general/browser_parsable_css.js
+++ b/browser/base/content/test/general/browser_parsable_css.js
@@ -109,16 +109,22 @@ add_task(function checkAllTheCSS() {
   let windowUtils = iframe.contentWindow.QueryInterface(Ci.nsIInterfaceRequestor)
                                         .getInterface(Ci.nsIDOMWindowUtils);
   let innerWindowID = windowUtils.currentInnerWindowID;
   let outerWindowID = windowUtils.outerWindowID;
 
   // We build a list of promises that get resolved when their respective
   // files have loaded and produced no errors.
   let allPromises = [];
+
+  // filter out either the devtools paths or the non-devtools paths:
+  let isDevtools = SimpleTest.harnessParameters.subsuite == "devtools";
+  let devtoolsPathBits = ["webide", "devtools"];
+  uris = uris.filter(uri => isDevtools == devtoolsPathBits.some(path => uri.spec.includes(path)));
+
   for (let uri of uris) {
     let linkEl = doc.createElement("link");
     linkEl.setAttribute("rel", "stylesheet");
     let promiseForThisSpec = Promise.defer();
     let onLoad = (e) => {
       promiseForThisSpec.resolve();
       linkEl.removeEventListener("load", onLoad);
       linkEl.removeEventListener("error", onError);