Revert the change made in r162216 as it broke the benchmark on shipping Safari.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Feb 2014 07:00:45 +0000 (07:00 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Feb 2014 07:00:45 +0000 (07:00 +0000)
* DoYouEvenBench/resources/benchmark-runner.js:

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

PerformanceTests/ChangeLog
PerformanceTests/DoYouEvenBench/resources/benchmark-runner.js

index 278612f..a0956b8 100644 (file)
@@ -1,5 +1,11 @@
 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
         https://bugs.webkit.org/show_bug.cgi?id=128227
 
index 131bf9a..6c1148b 100644 (file)
@@ -163,18 +163,13 @@ BenchmarkState.prototype.isFirstTest = function () {
     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;
 }