3
3
exports [` getAssertionReport works (multiple failing) 1` ] = `
4
4
"X difference at cumulative-layout-shift audit.details.items.length
5
5
expected: []
6
- found: [{ \\" cumulativeLayoutShiftMainFrame\\ " :0.13570762803819444 ,\\" newEngineResult\\ " :{\\" cumulativeLayoutShift\\ " :0.13570762803819444 ,\\" cumulativeLayoutShiftMainFrame\\ " :0.13570762803819444 },\\" newEngineResultDiffered\\ " :false } ]
6
+ found: [{ \\" cumulativeLayoutShiftMainFrame\\ " :0.09957584751767748 ,\\" newEngineResult\\ " :{\\" cumulativeLayoutShift\\ " :0.09957584751767748 ,\\" cumulativeLayoutShiftMainFrame\\ " :0.09957584751767748 },\\" newEngineResultDiffered\\ " :false } ]
7
7
8
8
9
9
X difference at cumulative-layout-shift audit.details.blah
@@ -15,11 +15,11 @@ exports[`getAssertionReport works (multiple failing) 1`] = `
15
15
\\" id\\ " : \\" cumulative-layout-shift\\ " ,
16
16
\\" title\\ " : \\" Cumulative Layout Shift\\ " ,
17
17
\\" description\\ " : \\" Cumulative Layout Shift measures the movement of visible elements within the viewport. [Learn more about the Cumulative Layout Shift metric](https://web.dev/articles/cls).\\ " ,
18
- \\" score\\ " : 0.8 ,
18
+ \\" score\\ " : 0.9 ,
19
19
\\" scoreDisplayMode\\ " : \\" numeric\\ " ,
20
- \\" numericValue\\ " : 0.13570762803819444 ,
20
+ \\" numericValue\\ " : 0.09957584751767748 ,
21
21
\\" numericUnit\\ " : \\" unitless\\ " ,
22
- \\" displayValue\\ " : \\" 0.136 \\ " ,
22
+ \\" displayValue\\ " : \\" 0.1 \\ " ,
23
23
\\" scoringOptions\\ " : {
24
24
\\" p10\\ " : 0.1 ,
25
25
\\" median\\ " : 0.25
@@ -28,10 +28,10 @@ exports[`getAssertionReport works (multiple failing) 1`] = `
28
28
\\" type\\ " : \\" debugdata\\ " ,
29
29
\\" items\\ " : [
30
30
{
31
- \\" cumulativeLayoutShiftMainFrame\\ " : 0.13570762803819444 ,
31
+ \\" cumulativeLayoutShiftMainFrame\\ " : 0.09957584751767748 ,
32
32
\\" newEngineResult\\ " : {
33
- \\" cumulativeLayoutShift\\ " : 0.13570762803819444 ,
34
- \\" cumulativeLayoutShiftMainFrame\\ " : 0.13570762803819444
33
+ \\" cumulativeLayoutShift\\ " : 0.09957584751767748 ,
34
+ \\" cumulativeLayoutShiftMainFrame\\ " : 0.09957584751767748
35
35
},
36
36
\\" newEngineResultDiffered\\ " : false
37
37
}
@@ -43,18 +43,18 @@ exports[`getAssertionReport works (multiple failing) 1`] = `
43
43
exports [` getAssertionReport works (trivial failing) 1` ] = `
44
44
"X difference at cumulative-layout-shift audit.details.items.length
45
45
expected: []
46
- found: [{ \\" cumulativeLayoutShiftMainFrame\\ " :0.13570762803819444 ,\\" newEngineResult\\ " :{\\" cumulativeLayoutShift\\ " :0.13570762803819444 ,\\" cumulativeLayoutShiftMainFrame\\ " :0.13570762803819444 },\\" newEngineResultDiffered\\ " :false } ]
46
+ found: [{ \\" cumulativeLayoutShiftMainFrame\\ " :0.09957584751767748 ,\\" newEngineResult\\ " :{\\" cumulativeLayoutShift\\ " :0.09957584751767748 ,\\" cumulativeLayoutShiftMainFrame\\ " :0.09957584751767748 },\\" newEngineResultDiffered\\ " :false } ]
47
47
48
48
found result:
49
49
{
50
50
\\" id\\ " : \\" cumulative-layout-shift\\ " ,
51
51
\\" title\\ " : \\" Cumulative Layout Shift\\ " ,
52
52
\\" description\\ " : \\" Cumulative Layout Shift measures the movement of visible elements within the viewport. [Learn more about the Cumulative Layout Shift metric](https://web.dev/articles/cls).\\ " ,
53
- \\" score\\ " : 0.8 ,
53
+ \\" score\\ " : 0.9 ,
54
54
\\" scoreDisplayMode\\ " : \\" numeric\\ " ,
55
- \\" numericValue\\ " : 0.13570762803819444 ,
55
+ \\" numericValue\\ " : 0.09957584751767748 ,
56
56
\\" numericUnit\\ " : \\" unitless\\ " ,
57
- \\" displayValue\\ " : \\" 0.136 \\ " ,
57
+ \\" displayValue\\ " : \\" 0.1 \\ " ,
58
58
\\" scoringOptions\\ " : {
59
59
\\" p10\\ " : 0.1 ,
60
60
\\" median\\ " : 0.25
@@ -63,10 +63,10 @@ exports[`getAssertionReport works (trivial failing) 1`] = `
63
63
\\" type\\ " : \\" debugdata\\ " ,
64
64
\\" items\\ " : [
65
65
{
66
- \\" cumulativeLayoutShiftMainFrame\\ " : 0.13570762803819444 ,
66
+ \\" cumulativeLayoutShiftMainFrame\\ " : 0.09957584751767748 ,
67
67
\\" newEngineResult\\ " : {
68
- \\" cumulativeLayoutShift\\ " : 0.13570762803819444 ,
69
- \\" cumulativeLayoutShiftMainFrame\\ " : 0.13570762803819444
68
+ \\" cumulativeLayoutShift\\ " : 0.09957584751767748 ,
69
+ \\" cumulativeLayoutShiftMainFrame\\ " : 0.09957584751767748
70
70
},
71
71
\\" newEngineResultDiffered\\ " : false
72
72
}
0 commit comments