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

Unified Diff: webkit/data/test_shell/js/timers.html

Issue 401923005: webkit: Remove all files from test_shell/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « webkit/data/test_shell/index.html ('k') | webkit/data/test_shell/sort/sort.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/data/test_shell/js/timers.html
diff --git a/webkit/data/test_shell/js/timers.html b/webkit/data/test_shell/js/timers.html
deleted file mode 100644
index 2841e2f2d45fb22f98963ea16342ffc692d5eb41..0000000000000000000000000000000000000000
--- a/webkit/data/test_shell/js/timers.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<html>
-<head>
-<script language="javascript">
-var last = new Date(); // The last time we sampled the timer
-var total_value = 0; // The sum of the intervals measured
-var total_count = 0; // The count of the intervals measured
-var last_interval = 1;
-function fire() {
-
- var current = new Date();
- var ms = current - last;
-
- total_value += ms;
- total_count++;
-
- // Display the interval output.
- var output = document.getElementById('output');
- output.innerHTML = ms + "ms";
-
- // Display the average output.
- var average = document.getElementById('average');
- average.innerHTML = total_value / total_count + "ms";
-
- // Get the new interval from the input.
- var input = document.getElementById('input');
-
- // If the interval has changed, reset our averages.
- if (input.value != last_interval) {
- total_value = 0;
- total_count = 0;
- }
- last_interval = input.value;
-
- last = new Date();
- setTimeout(fire, last_interval);
-}
-</script>
-</head>
-
-<body onload='setTimeout("fire()", 1)'>
-
-<h1>Test JS setTimeout() speed</h1>
-
-This page tests the frequency of setTimeout() in the browser.
-Javascript applications use setTimeout() as a mechanism to 'yield'
-to the browser so that the browser can repaint. Most browsers
-implement a 15ms setTimeout() minimum. Use this to page to measure
-setTimeout() lag and discover your browser's minimum interval.<P>
-
-<hr>
-
-Desired ms to delay: <input id="input" type="text" value="1"><P>
-
-Measured delay:<br>
-<ul>
-instance: <div id="output"></div>
-average: <div id="average"></div>
-</ul>
-
-</body>
-</html>
« no previous file with comments | « webkit/data/test_shell/index.html ('k') | webkit/data/test_shell/sort/sort.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698