Bug 1515108 - Add DAMP test for project search r=jlast
authorDavid Walsh <dwalsh@mozilla.com>
Wed, 08 May 2019 21:57:04 +0000
changeset 535099 11199ccc5f71dc14c819fa780c1732369972f0d5
parent 535098 a11a1329e0d60e056c2562a06a50253bf90e54b8
child 535100 9f769e825727a431a5412de163382902707a3e1d
push id2082
push userffxbld-merge
push dateMon, 01 Jul 2019 08:34:18 +0000
treeherdermozilla-release@2fb19d0466d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlast
bugs1515108
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 1515108 - Add DAMP test for project search r=jlast Adds test for damp searches Differential Revision: https://phabricator.services.mozilla.com/D30388
testing/talos/talos/tests/devtools/addon/content/tests/debugger/custom.js
--- a/testing/talos/talos/tests/devtools/addon/content/tests/debugger/custom.js
+++ b/testing/talos/talos/tests/devtools/addon/content/tests/debugger/custom.js
@@ -25,16 +25,18 @@ module.exports = async function() {
 
   const toolbox = await openDebuggerAndLog("custom", EXPECTED);
   await reloadDebuggerAndLog("custom", toolbox, EXPECTED);
 
   // these tests are only run on custom.jsdebugger
   await pauseDebuggerAndLog(tab, toolbox, EXPECTED_FUNCTION);
   await stepDebuggerAndLog(tab, toolbox, EXPECTED_FUNCTION);
 
+  await testProjectSearch(tab, toolbox);
+
   await closeToolboxAndLog("custom.jsdebugger", toolbox);
 
   Services.prefs.clearUserPref("devtools.debugger.features.map-scopes");
   await testTeardown();
 };
 
 async function pauseDebuggerAndLog(tab, toolbox, testFunction) {
   dump("Waiting for debugger panel\n");
@@ -88,8 +90,20 @@ async function stepDebuggerAndLog(tab, t
       await step(dbg, stepTest.key);
     }
     test.done();
     await removeBreakpoints(dbg);
     await resume(dbg);
     await garbageCollect();
   }
 }
+
+async function testProjectSearch(tab, toolbox) {
+  const panel = await toolbox.getPanelWhenReady("jsdebugger");
+  const dbg = await createContext(panel);
+  const cx = dbg.selectors.getContext(dbg.getState());
+
+  dump("Executing project search\n");
+  const test = runTest(`custom.jsdebugger.project-search.DAMP`);
+  await dbg.actions.searchSources(cx, "return");
+  test.done();
+  await garbageCollect();
+}