mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1892231: Add some extra checks in the pageload event test. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D209804
This commit is contained in:
parent
2eabcf1774
commit
d9b219eca2
@ -34,6 +34,16 @@ add_task(async function () {
|
||||
30,
|
||||
"Should have at least 30 page load events"
|
||||
);
|
||||
|
||||
// Ensure the events in the pageload ping are reasonable.
|
||||
record.forEach(entry => {
|
||||
Assert.equal(entry.name, "page_load");
|
||||
Assert.greater(parseInt(entry.extra.load_time), 0);
|
||||
Assert.ok(
|
||||
entry.extra.using_webdriver,
|
||||
"Webdriver field should be set to true."
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
// Perform page load 30 times to trigger the ping being sent
|
||||
|
Loading…
Reference in New Issue
Block a user