@@ -36,17 +36,17 @@ describeWithMockConnection('ChildTargetManager', () => {
3636 it ( 'adds subtargets' , async ( ) => {
3737 const target = createTarget ( ) ;
3838 const childTargetManager = new SDK . ChildTargetManager . ChildTargetManager ( target ) ;
39- assert . strictEqual ( childTargetManager . childTargets ( ) . length , 0 ) ;
39+ assert . lengthOf ( childTargetManager . childTargets ( ) , 0 ) ;
4040 await childTargetManager . attachedToTarget (
4141 { sessionId : createSessionId ( ) , targetInfo : createTargetInfo ( TARGET_ID ) , waitingForDebugger : false } ) ;
42- assert . strictEqual ( childTargetManager . childTargets ( ) . length , 1 ) ;
42+ assert . lengthOf ( childTargetManager . childTargets ( ) , 1 ) ;
4343 assert . strictEqual ( childTargetManager . childTargets ( ) [ 0 ] . id ( ) , TARGET_ID ) ;
4444 } ) ;
4545
4646 it ( 'sets subtarget type' , async ( ) => {
4747 const target = createTarget ( ) ;
4848 const childTargetManager = new SDK . ChildTargetManager . ChildTargetManager ( target ) ;
49- assert . strictEqual ( childTargetManager . childTargets ( ) . length , 0 ) ;
49+ assert . lengthOf ( childTargetManager . childTargets ( ) , 0 ) ;
5050 for ( const [ protocolType , sdkType ] of [
5151 [ 'iframe' , SDK . Target . Type . FRAME ] ,
5252 [ 'webview' , SDK . Target . Type . FRAME ] ,
@@ -73,7 +73,7 @@ describeWithMockConnection('ChildTargetManager', () => {
7373 it ( 'sets subtarget to frame for devtools scheme if type is other' , async ( ) => {
7474 const target = createTarget ( ) ;
7575 const childTargetManager = new SDK . ChildTargetManager . ChildTargetManager ( target ) ;
76- assert . strictEqual ( childTargetManager . childTargets ( ) . length , 0 ) ;
76+ assert . lengthOf ( childTargetManager . childTargets ( ) , 0 ) ;
7777 await childTargetManager . attachedToTarget ( {
7878 sessionId : createSessionId ( ) ,
7979 targetInfo : createTargetInfo ( undefined , 'other' , 'devtools://foo/bar' ) ,
@@ -94,7 +94,7 @@ describeWithMockConnection('ChildTargetManager', () => {
9494 it ( 'sets subtarget to frame for chrome://print/ if type is other' , async ( ) => {
9595 const target = createTarget ( ) ;
9696 const childTargetManager = new SDK . ChildTargetManager . ChildTargetManager ( target ) ;
97- assert . strictEqual ( childTargetManager . childTargets ( ) . length , 0 ) ;
97+ assert . lengthOf ( childTargetManager . childTargets ( ) , 0 ) ;
9898 await childTargetManager . attachedToTarget ( {
9999 sessionId : createSessionId ( ) ,
100100 targetInfo : createTargetInfo ( undefined , 'other' , 'chrome://print/' ) ,
@@ -107,7 +107,7 @@ describeWithMockConnection('ChildTargetManager', () => {
107107 it ( 'sets subtarget to frame for chrome://file-manager/ if type is other' , async ( ) => {
108108 const target = createTarget ( ) ;
109109 const childTargetManager = new SDK . ChildTargetManager . ChildTargetManager ( target ) ;
110- assert . strictEqual ( childTargetManager . childTargets ( ) . length , 0 ) ;
110+ assert . lengthOf ( childTargetManager . childTargets ( ) , 0 ) ;
111111 await childTargetManager . attachedToTarget ( {
112112 sessionId : createSessionId ( ) ,
113113 targetInfo : createTargetInfo ( undefined , 'other' , 'chrome://file-manager/?%7B%22allowedPaths%22:%22anyPathOrUrl' ) ,
@@ -120,7 +120,7 @@ describeWithMockConnection('ChildTargetManager', () => {
120120 it ( 'sets subtarget to frame for sidebar URLs if type is other' , async ( ) => {
121121 const target = createTarget ( ) ;
122122 const childTargetManager = new SDK . ChildTargetManager . ChildTargetManager ( target ) ;
123- assert . strictEqual ( childTargetManager . childTargets ( ) . length , 0 ) ;
123+ assert . lengthOf ( childTargetManager . childTargets ( ) , 0 ) ;
124124 await childTargetManager . attachedToTarget ( {
125125 sessionId : createSessionId ( ) ,
126126 targetInfo : createTargetInfo ( undefined , 'other' , 'chrome://read-later.top-chrome/' ) ,
@@ -141,7 +141,7 @@ describeWithMockConnection('ChildTargetManager', () => {
141141 it ( 'sets worker target name to the target title' , async ( ) => {
142142 const target = createTarget ( ) ;
143143 const childTargetManager = new SDK . ChildTargetManager . ChildTargetManager ( target ) ;
144- assert . strictEqual ( childTargetManager . childTargets ( ) . length , 0 ) ;
144+ assert . lengthOf ( childTargetManager . childTargets ( ) , 0 ) ;
145145 await childTargetManager . attachedToTarget ( {
146146 sessionId : createSessionId ( ) ,
147147 targetInfo : createTargetInfo ( undefined , 'worker' , 'http://example.com/worker.js' , TITLE ) ,
@@ -153,7 +153,7 @@ describeWithMockConnection('ChildTargetManager', () => {
153153 it ( 'sets non-frame target name to the last path component if present' , async ( ) => {
154154 const target = createTarget ( ) ;
155155 const childTargetManager = new SDK . ChildTargetManager . ChildTargetManager ( target ) ;
156- assert . strictEqual ( childTargetManager . childTargets ( ) . length , 0 ) ;
156+ assert . lengthOf ( childTargetManager . childTargets ( ) , 0 ) ;
157157 await childTargetManager . attachedToTarget ( {
158158 sessionId : createSessionId ( ) ,
159159 targetInfo : createTargetInfo ( undefined , 'service_worker' , 'http://example.org/service_worker.html' , TITLE ) ,
@@ -171,7 +171,7 @@ describeWithMockConnection('ChildTargetManager', () => {
171171 it ( 'sets non-frame target a numbered name if it cannot use URL path' , async ( ) => {
172172 const target = createTarget ( ) ;
173173 const childTargetManager = new SDK . ChildTargetManager . ChildTargetManager ( target ) ;
174- assert . strictEqual ( childTargetManager . childTargets ( ) . length , 0 ) ;
174+ assert . lengthOf ( childTargetManager . childTargets ( ) , 0 ) ;
175175 await childTargetManager . attachedToTarget ( {
176176 sessionId : createSessionId ( ) ,
177177 targetInfo : createTargetInfo ( undefined , 'page' , 'data:text/html,<!doctype html>' ) ,
0 commit comments