Skip to content

Commit

Permalink
Tests: Another test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicjansma committed Oct 3, 2024
1 parent b831bca commit e30f6c4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tests/page-templates/20-painttiming/05-lcp-early.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@
};
}

BOOMR_test.fireMockPerformanceObserverEvent("largest-contentful-paint",
[
generateLCP("img_id1"),
generateLCP("img_id2")
]
);

// simulate delayed config
setTimeout(function() {
BOOMR_test.init({
Expand All @@ -59,7 +52,15 @@
enabled: true
}
});

BOOMR_test.fireMockPerformanceObserverEvent("largest-contentful-paint",
[
generateLCP("img_id1"),
generateLCP("img_id2")
]
);
}, 200);

</script>
<img src="/delay?delay=3000&amp;file=/assets/img.jpg&amp;id=1000" style="width:101px;"/>
<%= footer %>

0 comments on commit e30f6c4

Please sign in to comment.