@@ -81,7 +81,7 @@ describe('Sources Tab', function() {
8181 } ) ;
8282
8383 it ( 'hits two breakpoints that are set and activated separately' , async function ( ) {
84- const { target , frontend} = getBrowserAndPages ( ) ;
84+ const { frontend} = getBrowserAndPages ( ) ;
8585 const fileName = 'add.wasm' ;
8686
8787 await step ( 'navigate to a page and open the Sources tab' , async ( ) => {
@@ -93,7 +93,7 @@ describe('Sources Tab', function() {
9393 } ) ;
9494
9595 await step ( 'reload the page' , async ( ) => {
96- await reloadPageAndWaitForSourceFile ( target , fileName ) ;
96+ await reloadPageAndWaitForSourceFile ( fileName ) ;
9797 } ) ;
9898
9999 await waitForFunction ( async ( ) => await isBreakpointSet ( '0x027' ) ) ;
@@ -113,7 +113,7 @@ describe('Sources Tab', function() {
113113 } ) ;
114114
115115 await step ( 'reload the page' , async ( ) => {
116- await reloadPageAndWaitForSourceFile ( target , fileName ) ;
116+ await reloadPageAndWaitForSourceFile ( fileName ) ;
117117 } ) ;
118118
119119 await waitForFunction ( async ( ) => ! ( await isBreakpointSet ( '0x027' ) ) ) ;
@@ -124,7 +124,7 @@ describe('Sources Tab', function() {
124124 } ) ;
125125
126126 await step ( 'reload the page' , async ( ) => {
127- await reloadPageAndWaitForSourceFile ( target , fileName ) ;
127+ await reloadPageAndWaitForSourceFile ( fileName ) ;
128128 } ) ;
129129
130130 await waitForFunction ( async ( ) => await isBreakpointSet ( '0x028' ) ) ;
@@ -136,7 +136,6 @@ describe('Sources Tab', function() {
136136 } ) ;
137137
138138 it ( 'shows variable value in popover' , async function ( ) {
139- const { target} = getBrowserAndPages ( ) ;
140139 const fileName = 'add.wasm' ;
141140
142141 await step ( 'navigate to a page and open the Sources tab' , async ( ) => {
@@ -148,7 +147,7 @@ describe('Sources Tab', function() {
148147 } ) ;
149148
150149 await step ( 'reload the page' , async ( ) => {
151- await reloadPageAndWaitForSourceFile ( target , fileName ) ;
150+ await reloadPageAndWaitForSourceFile ( fileName ) ;
152151 } ) ;
153152
154153 await step ( 'hover over the $var0 in line No.0x023' , async ( ) => {
@@ -183,7 +182,7 @@ describe('Sources Tab', function() {
183182 } ) ;
184183
185184 it ( 'is able to step with state' , async ( ) => {
186- const { target , frontend} = getBrowserAndPages ( ) ;
185+ const { frontend} = getBrowserAndPages ( ) ;
187186 const fileName = 'stepping-with-state.wasm' ;
188187
189188 await step ( 'navigate to a page and open the Sources tab' , async ( ) => {
@@ -195,7 +194,7 @@ describe('Sources Tab', function() {
195194 } ) ;
196195
197196 await step ( 'reload the page' , async ( ) => {
198- await reloadPageAndWaitForSourceFile ( target , fileName ) ;
197+ await reloadPageAndWaitForSourceFile ( fileName ) ;
199198 } ) ;
200199
201200 await waitForFunction ( async ( ) => await isBreakpointSet ( '0x060' ) ) ;
@@ -233,7 +232,7 @@ describe('Sources Tab', function() {
233232 } ) ;
234233
235234 await step ( 'reload the page' , async ( ) => {
236- await reloadPageAndWaitForSourceFile ( target , fileName ) ;
235+ await reloadPageAndWaitForSourceFile ( fileName ) ;
237236 } ) ;
238237
239238 await waitForFunction ( async ( ) => await isBreakpointSet ( '0x048' ) ) ;
@@ -266,7 +265,7 @@ describe('Sources Tab', function() {
266265
267266 it ( 'is able to step with state in multi-threaded code in main thread' , async ( ) => {
268267 await enableExperiment ( 'instrumentation-breakpoints' ) ;
269- const { target , frontend} = getBrowserAndPages ( ) ;
268+ const { frontend} = getBrowserAndPages ( ) ;
270269 // enableExperiment() reloads the devtools page, so we need to reinstall the listener on the new window.
271270 await installEventListener ( frontend , DEBUGGER_PAUSED_EVENT ) ;
272271 const fileName = 'stepping-with-state.wasm' ;
@@ -304,7 +303,7 @@ describe('Sources Tab', function() {
304303 } ) ;
305304
306305 await step ( 'reload the page' , async ( ) => {
307- await reloadPageAndWaitForSourceFile ( target , fileName ) ;
306+ await reloadPageAndWaitForSourceFile ( fileName ) ;
308307 } ) ;
309308
310309 await waitForFunction ( async ( ) => await isBreakpointSet ( '0x060' ) ) ;
@@ -342,7 +341,7 @@ describe('Sources Tab', function() {
342341 } ) ;
343342
344343 await step ( 'reload the page' , async ( ) => {
345- await reloadPageAndWaitForSourceFile ( target , fileName ) ;
344+ await reloadPageAndWaitForSourceFile ( fileName ) ;
346345 } ) ;
347346
348347 await waitForFunction ( async ( ) => await isBreakpointSet ( '0x048' ) ) ;
@@ -387,7 +386,7 @@ describe('Sources Tab', function() {
387386
388387 it ( 'is able to step with state in multi-threaded code in worker thread' , async ( ) => {
389388 await enableExperiment ( 'instrumentation-breakpoints' ) ;
390- const { target , frontend} = getBrowserAndPages ( ) ;
389+ const { frontend} = getBrowserAndPages ( ) ;
391390 // enableExperiment() reloads the devtools page, so we need to reinstall the listener on the new window.
392391 await installEventListener ( frontend , DEBUGGER_PAUSED_EVENT ) ;
393392 const fileName = 'stepping-with-state.wasm' ;
@@ -416,7 +415,7 @@ describe('Sources Tab', function() {
416415 } ) ;
417416
418417 await step ( 'reload the page' , async ( ) => {
419- await reloadPageAndWaitForSourceFile ( target , fileName ) ;
418+ await reloadPageAndWaitForSourceFile ( fileName ) ;
420419 } ) ;
421420
422421 await waitForFunction ( async ( ) => await isBreakpointSet ( '0x06d' ) ) ;
@@ -458,7 +457,7 @@ describe('Sources Tab', function() {
458457 } ) ;
459458
460459 await step ( 'reload the page' , async ( ) => {
461- await reloadPageAndWaitForSourceFile ( target , fileName ) ;
460+ await reloadPageAndWaitForSourceFile ( fileName ) ;
462461 } ) ;
463462
464463 await waitForFunction ( async ( ) => await isBreakpointSet ( '0x050' ) ) ;
0 commit comments