@@ -113,7 +113,7 @@ func TestLifecycleWaitForNavigation(t *testing.T) {
113
113
tb := newTestBrowser (t , withFileServer ())
114
114
p := tb .NewPage (nil )
115
115
116
- withHomeHandler (t , tb , "wait_for_nav_lifecycle .html" )
116
+ withHomeHandler (t , tb , "lifecycle .html?pingCount=10 " )
117
117
withPingHandler (t , tb , tt .pingSlowness , nil )
118
118
withPingJSHandler (t , tb , tt .pingJSSlow , nil , false )
119
119
@@ -168,7 +168,7 @@ func TestLifecycleWaitForNavigationTimeout(t *testing.T) {
168
168
tb := newTestBrowser (t , withFileServer ())
169
169
p := tb .NewPage (nil )
170
170
171
- withHomeHandler (t , tb , "prolonged_network_idle_10 .html" )
171
+ withHomeHandler (t , tb , "lifecycle_no_ping_js .html" )
172
172
withPingHandler (t , tb , 0 , nil )
173
173
174
174
waitUntil := common .LifecycleEventNetworkIdle
@@ -297,7 +297,7 @@ func TestLifecycleWaitForLoadState(t *testing.T) {
297
297
tb := newTestBrowser (t , withFileServer ())
298
298
p := tb .NewPage (nil )
299
299
300
- withHomeHandler (t , tb , "wait_for_nav_lifecycle .html" )
300
+ withHomeHandler (t , tb , "lifecycle .html?pingCount=10 " )
301
301
withPingHandler (t , tb , tt .pingSlowness , nil )
302
302
withPingJSHandler (t , tb , tt .pingJSSlow , nil , false )
303
303
@@ -391,7 +391,7 @@ func TestLifecycleReload(t *testing.T) {
391
391
tb := newTestBrowser (t , withFileServer ())
392
392
p := tb .NewPage (nil )
393
393
394
- withHomeHandler (t , tb , "reload_lifecycle .html" )
394
+ withHomeHandler (t , tb , "lifecycle .html?pingCount=10 " )
395
395
withPingHandler (t , tb , tt .pingSlowness , nil )
396
396
withPingJSHandler (t , tb , tt .pingJSSlow , nil , false )
397
397
@@ -487,7 +487,7 @@ func TestLifecycleGotoWithSubFrame(t *testing.T) {
487
487
p := tb .NewPage (nil )
488
488
489
489
withHomeHandler (t , tb , "lifecycle_main_frame.html" )
490
- withSubHandler (t , tb , "lifecycle_subframe .html" )
490
+ withSubHandler (t , tb , "lifecycle .html?pingCount=10 " )
491
491
withPingHandler (t , tb , tt .pingSlowness , nil )
492
492
withPingJSHandler (t , tb , tt .pingJSSlow , nil , true )
493
493
@@ -557,7 +557,7 @@ func TestLifecycleGoto(t *testing.T) {
557
557
tb := newTestBrowser (t , withFileServer ())
558
558
p := tb .NewPage (nil )
559
559
560
- withHomeHandler (t , tb , "wait_for_nav_lifecycle .html" )
560
+ withHomeHandler (t , tb , "lifecycle .html?pingCount=10 " )
561
561
withPingHandler (t , tb , tt .pingSlowness , nil )
562
562
withPingJSHandler (t , tb , tt .pingJSSlow , nil , false )
563
563
@@ -610,7 +610,7 @@ func TestLifecycleGotoNetworkIdle(t *testing.T) {
610
610
tb := newTestBrowser (t , withFileServer ())
611
611
p := tb .NewPage (nil )
612
612
613
- withHomeHandler (t , tb , "prolonged_network_idle .html" )
613
+ withHomeHandler (t , tb , "lifecycle .html?pingCount=4 " )
614
614
ch := make (chan bool )
615
615
withPingHandler (t , tb , 50 * time .Millisecond , ch )
616
616
withPingJSHandler (t , tb , false , ch , false )
@@ -632,7 +632,7 @@ func TestLifecycleGotoNetworkIdle(t *testing.T) {
632
632
tb := newTestBrowser (t , withFileServer ())
633
633
p := tb .NewPage (nil )
634
634
635
- withHomeHandler (t , tb , "prolonged_network_idle_10 .html" )
635
+ withHomeHandler (t , tb , "lifecycle_no_ping_js .html" )
636
636
withPingHandler (t , tb , 50 * time .Millisecond , nil )
637
637
638
638
assertHome (t , tb , p , common .LifecycleEventNetworkIdle , func () testPromise {
0 commit comments