mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Bug 1356652 - Add Speedometer files to the PGO training list; r=ted
MozReview-Commit-ID: 9Ei8p0t1JbB --HG-- extra : rebase_source : 63a169a38ae8f2bd1fcd86245aee7fbb8b139e6b
This commit is contained in:
parent
20e9300ae3
commit
3bc8841ee2
@ -5,6 +5,7 @@
|
||||
|
||||
var list =
|
||||
[
|
||||
"js-input/speedometer/index.html",
|
||||
"blueprint/sample.html",
|
||||
"blueprint/forms.html",
|
||||
"blueprint/grid.html",
|
||||
@ -38,15 +39,19 @@
|
||||
"js-input/sunspider/string-unpack-code.html",
|
||||
"js-input/sunspider/string-validate-input.html"
|
||||
];
|
||||
var interval = 1000;
|
||||
var defaultInterval = 2000;
|
||||
var idx = 0;
|
||||
var w;
|
||||
|
||||
window.onload = function () {
|
||||
w = window.open("about:blank");
|
||||
window.setTimeout(loadURL, interval);
|
||||
window.setTimeout(loadURL, defaultInterval);
|
||||
};
|
||||
function loadURL () {
|
||||
var interval = defaultInterval;
|
||||
if (idx == 0) {
|
||||
interval = 90000;
|
||||
}
|
||||
w.close();
|
||||
w = window.open(list[idx++]);
|
||||
if (idx < list.length) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user