Changeset 221039 in webkit


Ignore:
Timestamp:
Aug 22, 2017 1:42:23 PM (7 years ago)
Author:
rniwa@webkit.org
Message:

Speedometer 2.0: Add button to select and unselect all tests to InteractiveRunner.html
https://bugs.webkit.org/show_bug.cgi?id=175816

Reviewed by Saam Barati.

Added buttons to select and unselect all subtests to aid debugging.

  • Speedometer/InteractiveRunner.html:

(createUIForSuites):

Location:
trunk/PerformanceTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerformanceTests/ChangeLog

    r220950 r221039  
     12017-08-22  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Speedometer 2.0: Add button to select and unselect all tests to InteractiveRunner.html
     4        https://bugs.webkit.org/show_bug.cgi?id=175816
     5
     6        Reviewed by Saam Barati.
     7
     8        Added buttons to select and unselect all subtests to aid debugging.
     9
     10        * Speedometer/InteractiveRunner.html:
     11        (createUIForSuites):
     12
    1132017-08-18  Ryosuke Niwa  <rniwa@webkit.org>
    214
  • trunk/PerformanceTests/Speedometer/InteractiveRunner.html

    r217121 r221039  
    7070    button.id = 'runSuites';
    7171    button.onclick = onrun;
     72    control.appendChild(button);
     73
     74    var button = document.createElement('button');
     75    button.textContent = 'Select all';
     76    button.onclick = function () {
     77        for (var suiteIndex = 0; suiteIndex < suites.length; suiteIndex++) {
     78            suites[suiteIndex].disabled = false;
     79            checkboxes[suiteIndex].checked = true;
     80        }
     81    };
     82    control.appendChild(button);
     83
     84    var button = document.createElement('button');
     85    button.textContent = 'Unselect all';
     86    button.onclick = function () {
     87        for (var suiteIndex = 0; suiteIndex < suites.length; suiteIndex++) {
     88            suites[suiteIndex].disabled = true;
     89            checkboxes[suiteIndex].checked = false;
     90        }
     91
     92    };
    7293    control.appendChild(button);
    7394
Note: See TracChangeset for help on using the changeset viewer.