@@ -457,7 +457,7 @@ describe('onLCP()', async function () {
457
457
assert . equal (
458
458
lcp . attribution . timeToFirstByte +
459
459
lcp . attribution . resourceLoadDelay +
460
- lcp . attribution . resourceLoadTime +
460
+ lcp . attribution . resourceLoadDuration +
461
461
lcp . attribution . elementRenderDelay ,
462
462
lcp . value ,
463
463
) ;
@@ -514,7 +514,7 @@ describe('onLCP()', async function () {
514
514
assert . equal (
515
515
lcp . attribution . timeToFirstByte +
516
516
lcp . attribution . resourceLoadDelay +
517
- lcp . attribution . resourceLoadTime +
517
+ lcp . attribution . resourceLoadDuration +
518
518
lcp . attribution . elementRenderDelay ,
519
519
lcp . value ,
520
520
) ;
@@ -568,7 +568,7 @@ describe('onLCP()', async function () {
568
568
) ;
569
569
570
570
assert . equal (
571
- lcp . attribution . resourceLoadTime ,
571
+ lcp . attribution . resourceLoadDuration ,
572
572
Math . max ( 0 , lcpResEntry . responseEnd - navEntry . activationStart ) -
573
573
Math . max ( 0 , lcpResEntry . requestStart - navEntry . activationStart ) ,
574
574
) ;
@@ -583,7 +583,7 @@ describe('onLCP()', async function () {
583
583
assert . equal (
584
584
lcp . attribution . timeToFirstByte +
585
585
lcp . attribution . resourceLoadDelay +
586
- lcp . attribution . resourceLoadTime +
586
+ lcp . attribution . resourceLoadDuration +
587
587
lcp . attribution . elementRenderDelay ,
588
588
lcp . value ,
589
589
) ;
@@ -614,11 +614,11 @@ describe('onLCP()', async function () {
614
614
assert . equal ( lcp . attribution . url , undefined ) ;
615
615
assert . equal ( lcp . attribution . element , 'html>body>main>h1' ) ;
616
616
assert . equal ( lcp . attribution . resourceLoadDelay , 0 ) ;
617
- assert . equal ( lcp . attribution . resourceLoadTime , 0 ) ;
617
+ assert . equal ( lcp . attribution . resourceLoadDuration , 0 ) ;
618
618
assert . equal (
619
619
lcp . attribution . timeToFirstByte +
620
620
lcp . attribution . resourceLoadDelay +
621
- lcp . attribution . resourceLoadTime +
621
+ lcp . attribution . resourceLoadDuration +
622
622
lcp . attribution . elementRenderDelay ,
623
623
lcp . value ,
624
624
) ;
@@ -664,7 +664,7 @@ describe('onLCP()', async function () {
664
664
assert . equal ( lcp2 . attribution . element , undefined ) ;
665
665
assert . equal ( lcp2 . attribution . timeToFirstByte , 0 ) ;
666
666
assert . equal ( lcp2 . attribution . resourceLoadDelay , 0 ) ;
667
- assert . equal ( lcp2 . attribution . resourceLoadTime , 0 ) ;
667
+ assert . equal ( lcp2 . attribution . resourceLoadDuration , 0 ) ;
668
668
assert . equal ( lcp2 . attribution . elementRenderDelay , lcp2 . value ) ;
669
669
assert . equal ( lcp2 . attribution . navigationEntry , undefined ) ;
670
670
assert . equal ( lcp2 . attribution . lcpResourceEntry , undefined ) ;
0 commit comments