Store test-interval in localStorage
authorjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Oct 2015 00:03:31 +0000 (00:03 +0000)
committerjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Oct 2015 00:03:31 +0000 (00:03 +0000)
https://bugs.webkit.org/show_bug.cgi?id=150055
<rdar://problem/23078879>

Reviewed by Dean Jackson.

* Animometer/runner/resources/animometer.js:
(populateSettings): Keep track of the specified test interval in localStorage
to make it easy to repeat a test suite.

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

PerformanceTests/Animometer/runner/resources/animometer.js
PerformanceTests/ChangeLog

index b893b86..d8b3825 100644 (file)
@@ -67,6 +67,7 @@ function startBenchmark()
             enabledSuites.push(checkbox.suite);
         }
         localStorage.setItem(checkbox.suite.name, +checkbox.checked);
+        localStorage.setItem("test-interval", document.getElementById("test-interval").value);
     }
 
     var enabledSuites = Suites.filter(function (suite, index) { return !suite.disabled && checkboxes[index].checked; });
@@ -133,5 +134,10 @@ function populateSettings() {
         suiteDiv.appendChild(document.createElement("br"));
         suitesDiv.appendChild(suiteDiv);
     });
+
+    var interval = localStorage.getItem("test-interval");
+    if (interval) {
+        document.getElementById("test-interval").value = interval;
+    }
 }
 document.addEventListener("DOMContentLoaded", populateSettings);
\ No newline at end of file
index 2da8b13..d6d29fa 100644 (file)
@@ -1,5 +1,17 @@
 2015-10-12  Jon Lee  <jonlee@apple.com>
 
+        Store test-interval in localStorage
+        https://bugs.webkit.org/show_bug.cgi?id=150055
+        <rdar://problem/23078879>
+
+        Reviewed by Dean Jackson.
+
+        * Animometer/runner/resources/animometer.js:
+        (populateSettings): Keep track of the specified test interval in localStorage
+        to make it easy to repeat a test suite.
+
+2015-10-12  Jon Lee  <jonlee@apple.com>
+
         Remove "../tests/" from the URLs of all tests
         https://bugs.webkit.org/show_bug.cgi?id=150054
         <rdar://problem/23078784>