mirror of
https://github.com/servo/servo.git
synced 2025-09-13 16:38:20 +01:00
Update web-platform-tests to revision 7f2f85a88f434798e9d643427b34b05fab8278c6
This commit is contained in:
parent
6b1a08c051
commit
73bc5cf1b8
180 changed files with 5807 additions and 169 deletions
|
@ -183,7 +183,7 @@
|
|||
// test startTime, allow for an acceptable threshold in the difference between the startTime and the
|
||||
// expected value for the startTime (loadEventStart + markTestDelay)
|
||||
test_true(Math.abs(markEntry.startTime - expectedStartTime) <= testThreshold,
|
||||
markEntryCommand + ".startTime ~== " + expectedStartTime + " (up to " + testThreshold +
|
||||
markEntryCommand + ".startTime is approximately correct (up to " + testThreshold +
|
||||
"ms difference allowed)");
|
||||
|
||||
// verify entryType
|
||||
|
|
|
@ -233,7 +233,7 @@
|
|||
// test startTime; since for a mark, the startTime is always equal to a mark's value or the value of a
|
||||
// navigation timing attribute, the actual startTime should match the expected value exactly
|
||||
test_true(Math.abs(measureEntry.startTime - expectedStartTime) == 0,
|
||||
measureEntryCommand + ".startTime == " + expectedStartTime);
|
||||
measureEntryCommand + ".startTime is correct");
|
||||
|
||||
// test entryType
|
||||
test_true(measureEntry.entryType == "measure", measureEntryCommand + ".entryType == \"measure\"");
|
||||
|
@ -241,7 +241,7 @@
|
|||
// test duration, allow for an acceptable threshold in the difference between the actual duration and the
|
||||
// expected value for the duration
|
||||
test_true(Math.abs(measureEntry.duration - expectedDuration) <= testThreshold, measureEntryCommand +
|
||||
".duration ~== " + expectedDuration + " (up to " + testThreshold + "ms difference allowed)");
|
||||
".duration is approximately correct (up to " + testThreshold + "ms difference allowed)");
|
||||
}
|
||||
|
||||
function test_measure_list(measureEntryList, measureEntryListCommand, measureScenarios)
|
||||
|
|
|
@ -198,7 +198,7 @@
|
|||
// test startTime; since for a mark, the startTime is always equal to a mark's value or the value of a
|
||||
// navigation timing attribute, the actual startTime should match the expected value exactly
|
||||
test_true(Math.abs(measureEntry.startTime - expectedStartTime) == 0,
|
||||
measureEntryCommand + ".startTime == " + expectedStartTime);
|
||||
measureEntryCommand + ".startTime is correct");
|
||||
|
||||
// test entryType
|
||||
test_true(measureEntry.entryType == "measure", measureEntryCommand + ".entryType == \"measure\"");
|
||||
|
@ -206,7 +206,7 @@
|
|||
// test duration, allow for an acceptable threshold in the difference between the actual duration and the
|
||||
// expected value for the duration
|
||||
test_true(Math.abs(measureEntry.duration - expectedDuration) <= testThreshold, measureEntryCommand +
|
||||
".duration ~== " + expectedDuration + " (up to " + testThreshold + "ms difference allowed)");
|
||||
".duration is aproximately correct (up to " + testThreshold + "ms difference allowed)");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue