| 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>
|
|
|