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

Unified Diff: LayoutTests/imported/web-platform-tests/user-timing/test_user_timing_measure_navigation_timing.html

Issue 1191043004: Import hr-time and user-timing tests, remove redundant webperf copies (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add idlharness result Created 5 years, 6 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
« no previous file with comments | « LayoutTests/imported/web-platform-tests/user-timing/test_user_timing_measure_exceptions.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/imported/web-platform-tests/user-timing/test_user_timing_measure_navigation_timing.html
diff --git a/LayoutTests/http/tests/w3c/webperf/approved/UserTiming/test_user_timing_measure_navigation_timing.htm b/LayoutTests/imported/web-platform-tests/user-timing/test_user_timing_measure_navigation_timing.html
similarity index 95%
rename from LayoutTests/http/tests/w3c/webperf/approved/UserTiming/test_user_timing_measure_navigation_timing.htm
rename to LayoutTests/imported/web-platform-tests/user-timing/test_user_timing_measure_navigation_timing.html
index bc616d2326e5273d54046140f27bd780570275b1..5c3a6d067b4c9cbb6a33b0544789bc5c79cc2e4d 100644
--- a/LayoutTests/http/tests/w3c/webperf/approved/UserTiming/test_user_timing_measure_navigation_timing.htm
+++ b/LayoutTests/imported/web-platform-tests/user-timing/test_user_timing_measure_navigation_timing.html
@@ -5,10 +5,10 @@
<title>window.performance User Timing clearMeasures() method is working properly with navigation timing
attributes</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
- <link rel="help" href="http://127.0.0.1:8000/webperf/specs/UserTiming/#dom-performance-measure"/>
- <script src="/w3c/resources/testharness.js"></script>
- <script src="/w3c/resources/testharnessreport.js"></script>
- <script src="/w3c/webperf/resources/webperftestharness.js"></script>
+ <link rel="help" href="http://www.w3.org/TR/user-timing/#dom-performance-measure"/>
+ <script src="../../../resources/testharness.js"></script>
+ <script src="../../../resources/testharnessreport.js"></script>
+ <script src="resources/webperftestharness.js"></script>
<script type="text/javascript">
// navigation timing attributes
@@ -89,7 +89,7 @@
}
];
- setup({timeout:1000, explicit_done: true});
+ setup({explicit_done: true});
test_namespace();
@@ -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 == " );
+ measureEntryCommand + ".startTime == " + expectedStartTime);
// 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 ~== " + " (up to " + testThreshold + "ms difference allowed)");
+ ".duration ~== " + expectedDuration + " (up to " + testThreshold + "ms difference allowed)");
}
</script>
</head>
« no previous file with comments | « LayoutTests/imported/web-platform-tests/user-timing/test_user_timing_measure_exceptions.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698