Bug 1450284 - rename script spec to thread.js; r=jdescottes
authoryulia <ystartsev@mozilla.com>
Mon, 13 May 2019 13:56:18 +0000
changeset 532442 7e6b874b870a9ff00815ff655d1309e86c5df654
parent 532441 dd5b92f8983514052be15d7f88a3dd0cfec9b892
child 532443 edd79d65116b36e10075a90726bb657f93daf26c
push id11268
push usercsabou@mozilla.com
push dateTue, 14 May 2019 15:24:22 +0000
treeherdermozilla-beta@5fb7fcd568d6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes
bugs1450284
milestone68.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 1450284 - rename script spec to thread.js; r=jdescottes Rather straighforward -- as per jryans recommendation, I have renamed the file to reflect our naming conventions. Differential Revision: https://phabricator.services.mozilla.com/D28641
devtools/server/actors/thread.js
devtools/shared/specs/index.js
devtools/shared/specs/moz.build
devtools/shared/specs/script.js
devtools/shared/specs/thread.js
--- a/devtools/server/actors/thread.js
+++ b/devtools/server/actors/thread.js
@@ -8,17 +8,17 @@
 
 const Services = require("Services");
 const { Cr, Ci } = require("chrome");
 const { ActorPool } = require("devtools/server/actors/common");
 const { createValueGrip } = require("devtools/server/actors/object/utils");
 const { ActorClassWithSpec, Actor } = require("devtools/shared/protocol");
 const DevToolsUtils = require("devtools/shared/DevToolsUtils");
 const { assert, dumpn } = DevToolsUtils;
-const { threadSpec } = require("devtools/shared/specs/script");
+const { threadSpec } = require("devtools/shared/specs/thread");
 const {
   getAvailableEventBreakpoints,
 } = require("devtools/server/actors/utils/event-breakpoints");
 
 loader.lazyRequireGetter(this, "EnvironmentActor", "devtools/server/actors/environment", true);
 loader.lazyRequireGetter(this, "BreakpointActorMap", "devtools/server/actors/utils/breakpoint-actor-map", true);
 loader.lazyRequireGetter(this, "PauseScopedObjectActor", "devtools/server/actors/pause-scoped", true);
 loader.lazyRequireGetter(this, "EventLoopStack", "devtools/server/actors/utils/event-loop", true);
--- a/devtools/shared/specs/index.js
+++ b/devtools/shared/specs/index.js
@@ -166,22 +166,16 @@ const Types = exports.__TypesForTests = 
     spec: "devtools/shared/specs/reflow",
     front: "devtools/shared/fronts/reflow",
   },
   {
     types: ["screenshot"],
     spec: "devtools/shared/specs/screenshot",
     front: "devtools/shared/fronts/screenshot",
   },
-  /* Script and source have old fashion client and no front */
-  {
-    types: ["context"],
-    spec: "devtools/shared/specs/script",
-    front: null,
-  },
   {
     types: ["source"],
     spec: "devtools/shared/specs/source",
     front: "devtools/shared/fronts/source",
   },
   {
     types: ["cookies", "localStorage", "sessionStorage", "Cache", "indexedDB", "storage"],
     spec: "devtools/shared/specs/storage",
@@ -253,16 +247,22 @@ const Types = exports.__TypesForTests = 
     spec: "devtools/shared/specs/targets/webextension",
     front: null,
   },
   {
     types: ["workerTarget"],
     spec: "devtools/shared/specs/targets/worker",
     front: "devtools/shared/fronts/targets/worker",
   },
+  /* Thread has an old fashion client and no front */
+  {
+    types: ["context"],
+    spec: "devtools/shared/specs/thread",
+    front: null,
+  },
   {
     types: ["console"],
     spec: "devtools/shared/specs/webconsole",
     front: "devtools/shared/fronts/webconsole",
   },
   {
     types: ["pushSubscription"],
     spec: "devtools/shared/specs/worker/push-subscription",
--- a/devtools/shared/specs/moz.build
+++ b/devtools/shared/specs/moz.build
@@ -36,19 +36,19 @@ DevToolsModules(
     'performance-recording.js',
     'performance.js',
     'preference.js',
     'promises.js',
     'property-iterator.js',
     'reflow.js',
     'root.js',
     'screenshot.js',
-    'script.js',
     'source.js',
     'storage.js',
     'string.js',
     'styles.js',
     'stylesheets.js',
     'symbol-iterator.js',
     'symbol.js',
+    'thread.js',
     'timeline.js',
     'webconsole.js',
 )
rename from devtools/shared/specs/script.js
rename to devtools/shared/specs/thread.js