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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/hr-time/basic.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/imported/web-platform-tests/hr-time/basic.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/hr-time/basic.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/hr-time/basic.html
deleted file mode 100644
index fe8a7e74932512da5a608d276c81ebcea5d3f650..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/hr-time/basic.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta charset="utf-8" />
-<title>window.performance.now exists</title>
-<link rel="author" title="W3C" href="http://www.w3.org/" />
-<link rel="help" href="http://www.w3.org/TR/hr-time/#sec-extenstions-performance-interface"/>
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-<script>
-test(function() {
- assert_equals(typeof window.performance, "object");
-}, "window.performance is defined", {assert: "The window.performance attribute provides a hosting area for performance related attributes."});
-
-test(function() {
- assert_not_equals(window.performance.now, undefined, 'window.performance.now is defined');
-}, "High Resolution Time extension to the Performance interface", {assert: "window.performance.now exists"});
-
-test(function() {
- assert_equals(typeof window.performance.now, "function", "window.performance.now is a function");
-}, "window.performance.now() function", {assert: "window.performance.now is a function"});
-
-test(function() {
- assert_equals(typeof window.performance.now(), "number", "window.performance.now() returns a number");
-}, "window.performance.now() returns a number", {assert: "The now method MUST return a DOMHighResTimeStamp"});
-
-async_test(function() {
- // Check whether the performance.now() method is close to Date() within 30ms (due to inaccuracies)
- var initial_hrt = performance.now();
- var initial_date = Date.now();
- setTimeout(this.step_func(function() {
- var final_hrt = performance.now();
- var final_date = Date.now();
- assert_approx_equals(final_hrt - initial_hrt, final_date - initial_date, 30, 'High resolution time value increased by approximately the same amount as time from date object');
- this.done();
- }), 2000);
-}, 'High resolution time has approximately the right relative magnitude');
-</script>
-</head>
-<body>
-<h1>Description</h1>
-<p>This test validates that window.performance.now() exist and is a function.</p>
-
-<div id="log"></div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698