Perf dashboard's cycler page should use v3 UI
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Dec 2015 07:15:21 +0000 (07:15 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Dec 2015 07:15:21 +0000 (07:15 +0000)
https://bugs.webkit.org/show_bug.cgi?id=152324

Reviewed by Chris Dumez.

Use the v3 UI in cycler.html after r194130.

* public/cycler.html:
* public/v3/index.html: Removed the reference to a non-existent platform-selector.js.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@194133 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Websites/perf.webkit.org/ChangeLog
Websites/perf.webkit.org/public/cycler.html
Websites/perf.webkit.org/public/v3/index.html

index ee96043..074abfa 100644 (file)
@@ -1,5 +1,17 @@
 2015-12-15  Ryosuke Niwa  <rniwa@webkit.org>
 
+        Perf dashboard's cycler page should use v3 UI
+        https://bugs.webkit.org/show_bug.cgi?id=152324
+
+        Reviewed by Chris Dumez.
+
+        Use the v3 UI in cycler.html after r194130.
+
+        * public/cycler.html:
+        * public/v3/index.html: Removed the reference to a non-existent platform-selector.js.
+
+2015-12-15  Ryosuke Niwa  <rniwa@webkit.org>
+
         Add v3 UI to perf dashboard
         https://bugs.webkit.org/show_bug.cgi?id=152311
 
index 4649d74..11de22b 100644 (file)
@@ -27,10 +27,9 @@ request.onreadystatechange = function () {
     var dashboards = [];
     for (var dashboardName in manifest.dashboards)
         dashboards.push(dashboardName);
-    dashboards = dashboards.sort();
 
     for (var dashboardName of dashboards)
-        urls.push('/v2/#/dashboard/' + dashboardName);
+        urls.push('/v3/#/dashboard/' + dashboardName);
 
     loadURLAt(0);
 }
@@ -40,14 +39,10 @@ function loadURLAt(i) {
     var newIframe = document.createElement('iframe');
     document.body.appendChild(newIframe);
     newIframe.src = urls[i];
-    newIframe.onload = showNewFrameIfLoaded.bind(window, i, newIframe);
+    newIframe.onload = showNewFrame.bind(window, i, newIframe);
 }
 
-function showNewFrameIfLoaded(i, iframe) {
-    var doc = iframe.contentDocument;
-    if ((!doc.querySelector('.chart') && !doc.querySelector('.failure')) || doc.querySelector('.progress'))
-        return setTimeout(showNewFrameIfLoaded.bind(window, i, iframe), 500);
-
+function showNewFrame(i, iframe) {
     if (oldIframe)
         document.body.removeChild(oldIframe);
     oldIframe = iframe;
index 045b5c3..3297eb6 100644 (file)
@@ -64,7 +64,6 @@ Run tools/bundle-v3-scripts to speed up the load time for production.`);
         <script src="components/time-series-chart.js"></script>
         <script src="components/interactive-time-series-chart.js"></script>
         <script src="components/chart-status-view.js"></script>
-        <script src="components/platform-selector.js"></script>
         <script src="components/pane-selector.js"></script>
         <script src="pages/page.js"></script>
         <script src="pages/page-router.js"></script>