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 278612f726c2ee1b33c675ebf244ccf7814987c5..a0956b8bf5f3049b15f9aa89e6805fbc79414912 100644 (file)
@@ -1,3 +1,9 @@
+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
index 131bf9ad906b7baf079c8cb9defe21c62cd0ddc4..6c1148bca3fd72dd85b2a1b00b708afbe512f420 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;
 }