REGRESSION(r217118): Speedometer 2.0: Flight.js test is broken
[WebKit-https.git] / Websites / browserbench.org / Speedometer2.0 / resources / benchmark-runner.js
index 36c03c4425a4649789fbb9048b363724d93a93e4..55bd57039d90cbc064dbea578d3969908f70d30e 100644 (file)
@@ -192,6 +192,7 @@ BenchmarkRunner.prototype.step = function (state) {
     }
 
     if (state.isFirstTest()) {
     }
 
     if (state.isFirstTest()) {
+        this._removeFrame();
         this._masuredValuesForCurrentSuite = {};
         var self = this;
         return state.prepareCurrentSuite(this, this._appendFrame()).then(function (prepareReturnValue) {
         this._masuredValuesForCurrentSuite = {};
         var self = this;
         return state.prepareCurrentSuite(this, this._appendFrame()).then(function (prepareReturnValue) {
@@ -251,8 +252,6 @@ BenchmarkRunner.prototype._runTestAndRecordResults = function (state) {
                 self._client.didRunTest(suite, test);
 
             state.next();
                 self._client.didRunTest(suite, test);
 
             state.next();
-            if (state.currentSuite() != suite)
-                self._removeFrame();
             promise.resolve(state);
         });
     }, 0);
             promise.resolve(state);
         });
     }, 0);