diff --git a/app/assets/javascripts/boot.js b/app/assets/javascripts/boot.js index e9a9123a3..47b125211 100755 --- a/app/assets/javascripts/boot.js +++ b/app/assets/javascripts/boot.js @@ -160,12 +160,7 @@ * * Replace the browser window's `onload`, ensure it's called, and then run all of the loaded specs. This includes initializing the `HtmlReporter` instance and then executing the loaded Jasmine environment. All of this will happen after all of the specs are loaded. */ - var currentWindowOnload = window.onload; - - window.onload = function() { - if (currentWindowOnload) { - currentWindowOnload(); - } + window.runJasmine = function() { htmlReporter.initialize(); env.execute(); }; diff --git a/app/assets/javascripts/run-tests.js b/app/assets/javascripts/run-tests.js index d2afed5cd..ad1de1989 100644 --- a/app/assets/javascripts/run-tests.js +++ b/app/assets/javascripts/run-tests.js @@ -1,5 +1,6 @@ // Helper for running tests through Karma. // Hooks into the test view logic for running tests. -TestView = require('views/test'); +require('initialize'); +TestView = require('views/TestView'); TestView.runTests(); \ No newline at end of file diff --git a/app/assets/main.html b/app/assets/main.html index b0fac676c..1aede0254 100644 --- a/app/assets/main.html +++ b/app/assets/main.html @@ -43,135 +43,14 @@ - - - - - - - - - - - - -
- - - - -