+2014-02-04 Ryosuke Niwa <rniwa@webkit.org>
+
+ Revert the change made in r162216 as it broke the benchmark on shipping Safari.
+
+ * DoYouEvenBench/resources/benchmark-runner.js:
+
2014-02-04 Ryosuke Niwa <rniwa@webkit.org>
DoYouEvenBench: Update Ember.js test case
return !this._testIndex;
}
-BenchmarkState._containingDirectory = (function () {
- var src = document.currentScript.src;
- return src.substring(0, src.lastIndexOf('/')) + '/';
-})();
-
BenchmarkState.prototype.prepareCurrentSuite = function (runner, frame) {
var suite = this.currentSuite();
var promise = new SimplePromise;
frame.onload = function () {
suite.prepare(runner, frame.contentWindow, frame.contentDocument).then(function (result) { promise.resolve(result); });
}
- frame.src = BenchmarkState._containingDirectory + suite.url;
+ frame.src = 'resources/' + suite.url;
return promise;
}