Bug 1518613 - [release 118] [sources] add a test for original sources appearing in the sources tree (#7653). r=dwalsh
authorJason Laster <jlaster@mozilla.com>
Tue, 08 Jan 2019 15:45:42 -0500
changeset 510275 41fb2e562f99f5bb884ba41ed97fbcd37f0d8a48
parent 510274 0603911f1f47cbf9580a4012d44093c5e9307456
child 510276 b9db02b31ccb269829b030ea3e4e37c3c75cec1f
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdwalsh
bugs1518613
milestone66.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 1518613 - [release 118] [sources] add a test for original sources appearing in the sources tree (#7653). r=dwalsh
devtools/client/debugger/new/test/mochitest/browser_dbg-sourcemaps.js
--- a/devtools/client/debugger/new/test/mochitest/browser_dbg-sourcemaps.js
+++ b/devtools/client/debugger/new/test/mochitest/browser_dbg-sourcemaps.js
@@ -43,16 +43,20 @@ add_task(async function() {
   const {
     selectors: { getBreakpoint, getBreakpointCount },
     getState
   } = dbg;
 
   ok(true, "Original sources exist");
   const bundleSrc = findSource(dbg, "bundle.js");
 
+  // Check that the original sources appear in the source tree
+  await clickElement(dbg, "sourceDirectoryLabel", 3);
+  await assertSourceCount(dbg, 8);
+
   await selectSource(dbg, bundleSrc);
 
   await clickGutter(dbg, 13);
   await waitForDispatch(dbg, "ADD_BREAKPOINT");
   assertEditorBreakpoint(dbg, 13, true);
 
   await clickGutter(dbg, 13);
   await waitForDispatch(dbg, "REMOVE_BREAKPOINT");