diff options
Diffstat (limited to 'server/sonar-web/src/test/js/source-viewer-issues.js')
-rw-r--r-- | server/sonar-web/src/test/js/source-viewer-issues.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/server/sonar-web/src/test/js/source-viewer-issues.js b/server/sonar-web/src/test/js/source-viewer-issues.js index 7fca895a9ba..105d7751d4a 100644 --- a/server/sonar-web/src/test/js/source-viewer-issues.js +++ b/server/sonar-web/src/test/js/source-viewer-issues.js @@ -30,7 +30,7 @@ lib.configureCasper(); casper.test.begin(testName(), 16, function (test) { casper - .start(lib.buildUrl('source-viewer'), function () { + .start(lib.buildUrl('base'), function () { lib.setDefaultViewport(); @@ -43,8 +43,10 @@ casper.test.begin(testName(), 16, function (test) { .then(function () { casper.evaluate(function () { - window.file = { uuid: 'uuid', key: 'key' }; - require(['apps/source-viewer/app']); + var file = { uuid: 'uuid', key: 'key' }; + require(['apps/source-viewer/app'], function (App) { + App.start({ el: '#content', file: file }); + }); jQuery.ajaxSetup({ dataType: 'json' }); }); }) |