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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/script-tests/webtiming-navigate-within-document.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . 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/fast/dom/script-tests/webtiming-navigate-within-document.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/script-tests/webtiming-navigate-within-document.js b/third_party/WebKit/LayoutTests/fast/dom/script-tests/webtiming-navigate-within-document.js
deleted file mode 100644
index 57fab9802f312c5e8fea6ef003fb7561e6b49af4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/script-tests/webtiming-navigate-within-document.js
+++ /dev/null
@@ -1,36 +0,0 @@
-description("This test checks that navigating within the document does not reset Web Timing numbers.");
-
-window.performance = window.performance || {};
-var timing = performance.timing || {};
-
-function checkTimingNotChanged()
-{
- var properties = getAllPropertyNames(timing);
- for (var i = 0; i < properties.length; ++i) {
- var property = properties[i];
- if (timing[property] === initialTiming[property])
- testPassed(property + " is unchanged.");
- else
- testFailed(property + " changed.");
- }
- finishJSTest();
-}
-
-var initialTiming = {};
-function saveTimingAfterLoad()
-{
- for (var property in timing) {
- initialTiming[property] = timing[property];
- }
- window.location.href = "#1";
- setTimeout("checkTimingNotChanged()", 0);
-}
-
-function loadHandler()
-{
- window.removeEventListener("load", loadHandler);
- setTimeout("saveTimingAfterLoad()", 0);
-}
-window.addEventListener("load", loadHandler, false);
-
-jsTestIsAsync = true;

Powered by Google App Engine
This is Rietveld 408576698