Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1354)

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/user-timing/test_user_timing_measure_navigation_timing.html

Issue 2668783003: Import wpt@767dc2a4f049c761bd146d61de2ea860a895a624 (Closed)
Patch Set: Update test expectations and baselines. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/user-timing/test_user_timing_measure_navigation_timing.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/user-timing/test_user_timing_measure_navigation_timing.html b/third_party/WebKit/LayoutTests/external/wpt/user-timing/test_user_timing_measure_navigation_timing.html
index d29f4e5e6d8bb99823b69fe6f81146d5c7e9697e..1ef93b95e574696b16e50d45e9b4d3b18b90d4de 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/user-timing/test_user_timing_measure_navigation_timing.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/user-timing/test_user_timing_measure_navigation_timing.html
@@ -11,30 +11,6 @@
<script src="resources/webperftestharness.js"></script>
<script type="text/javascript">
- // navigation timing attributes
- var timingAttributes = [
- 'connectEnd',
- 'connectStart',
- 'domComplete',
- 'domContentLoadedEventEnd',
- 'domContentLoadedEventStart',
- 'domInteractive',
- 'domLoading',
- 'domainLookupEnd',
- 'domainLookupStart',
- 'fetchStart',
- 'loadEventEnd',
- 'loadEventStart',
- 'navigationStart',
- 'redirectEnd',
- 'redirectStart',
- 'requestStart',
- 'responseEnd',
- 'responseStart',
- 'unloadEventEnd',
- 'unloadEventStart'
- ];
-
// test data
var startMarkName = "mark_start";
var startMarkValue;
@@ -96,13 +72,7 @@
function onload_test()
{
// test for existance of User Timing and Performance Timeline interface
- if (window.performance.mark == undefined ||
- window.performance.clearMarks == undefined ||
- window.performance.measure == undefined ||
- window.performance.clearMeasures == undefined ||
- window.performance.getEntriesByName == undefined ||
- window.performance.getEntriesByType == undefined ||
- window.performance.getEntries == undefined)
+ if (!has_required_interfaces())
{
test_true(false,
"The User Timing and Performance Timeline interfaces, which are required for this test, " +
@@ -206,7 +176,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 is aproximately correct (up to " + testThreshold + "ms difference allowed)");
+ ".duration is approximately correct (up to " + testThreshold + "ms difference allowed)");
}
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698