From: rniwa@webkit.org Date: Thu, 8 Oct 2015 02:06:40 +0000 (+0000) Subject: Add a page that cycles through v2 dashboards X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=fe6928d207fd19f93abb90258d0783c82434e049 Add a page that cycles through v2 dashboards https://bugs.webkit.org/show_bug.cgi?id=149907 Reviewed by Chris Dumez. Add cycler.html that goes through each dashboard on v2 UI. This allows the dashboards to be cycled through on a TV screen. * public/cycler.html: Added. (loadURLAt): Appends a new iframe to load the next URL (i is the index of the dashboard to be shown) at the end of body. We don't immediately show the new iframe since it might take a while to load. (showNewFrameIfLoaded): Remove the current iframe and show the next iframe if the next dashboard has finished loading. We can't rely on DOMContentLoaded or load events because we use asynchronous XHR to load each chart's data. Instead, wait until some chart becomes available or fails to load and none of charts are still in progress to be shown. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@190702 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/Websites/perf.webkit.org/ChangeLog b/Websites/perf.webkit.org/ChangeLog index b83147570796..c2970c4d8d73 100644 --- a/Websites/perf.webkit.org/ChangeLog +++ b/Websites/perf.webkit.org/ChangeLog @@ -1,3 +1,22 @@ +2015-10-07 Ryosuke Niwa + + Add a page that cycles through v2 dashboards + https://bugs.webkit.org/show_bug.cgi?id=149907 + + Reviewed by Chris Dumez. + + Add cycler.html that goes through each dashboard on v2 UI. + + This allows the dashboards to be cycled through on a TV screen. + + * public/cycler.html: Added. + (loadURLAt): Appends a new iframe to load the next URL (i is the index of the dashboard to be shown) + at the end of body. We don't immediately show the new iframe since it might take a while to load. + (showNewFrameIfLoaded): Remove the current iframe and show the next iframe if the next dashboard has + finished loading. We can't rely on DOMContentLoaded or load events because we use asynchronous XHR to + load each chart's data. Instead, wait until some chart becomes available or fails to load and none of + charts are still in progress to be shown. + 2015-10-07 Ryosuke Niwa Allow custom revisions to be specified in A/B testing diff --git a/Websites/perf.webkit.org/public/cycler.html b/Websites/perf.webkit.org/public/cycler.html new file mode 100644 index 000000000000..4649d74d3105 --- /dev/null +++ b/Websites/perf.webkit.org/public/cycler.html @@ -0,0 +1,61 @@ + + + + + + + + + +