diff options
Diffstat (limited to 'server/sonar-web/src/test/js')
43 files changed, 125 insertions, 125 deletions
diff --git a/server/sonar-web/src/test/js/api-documentation-spec.js b/server/sonar-web/src/test/js/api-documentation-spec.js index 587bff3a72a..215d5c4e469 100644 --- a/server/sonar-web/src/test/js/api-documentation-spec.js +++ b/server/sonar-web/src/test/js/api-documentation-spec.js @@ -37,7 +37,7 @@ casper.test.begin(testName('Should Show List'), 12, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/api-documentation/app.js'], function (App) { + require(['apps/api-documentation/app'], function (App) { App.start({ el: '#api-documentation' }); }); }); @@ -94,7 +94,7 @@ casper.test.begin(testName('Should Show Actions'), 10, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/api-documentation/app.js'], function (App) { + require(['apps/api-documentation/app'], function (App) { App.start({ el: '#api-documentation' }); }); }); @@ -142,7 +142,7 @@ casper.test.begin(testName('Should Show Example Response'), 1, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/api-documentation/app.js'], function (App) { + require(['apps/api-documentation/app'], function (App) { App.start({ el: '#api-documentation' }); }); }); @@ -182,7 +182,7 @@ casper.test.begin(testName('Web Service Permalink'), 1, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/api-documentation/app.js'], function (App) { + require(['apps/api-documentation/app'], function (App) { App.start({ el: '#api-documentation' }); }); }); @@ -216,7 +216,7 @@ casper.test.begin(testName('Action Permalink'), 1, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/api-documentation/app.js'], function (App) { + require(['apps/api-documentation/app'], function (App) { App.start({ el: '#api-documentation' }); }); }); diff --git a/server/sonar-web/src/test/js/coding-rules-page-active-severity-facet.js b/server/sonar-web/src/test/js/coding-rules-page-active-severity-facet.js index 9651b9da30a..995bcc50e32 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-active-severity-facet.js +++ b/server/sonar-web/src/test/js/coding-rules-page-active-severity-facet.js @@ -42,7 +42,7 @@ casper.test.begin('coding-rules-page-active-severity-facet', 7, function (test) .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-available-since.js b/server/sonar-web/src/test/js/coding-rules-page-available-since.js index 9457b01a4d8..7ebd9ec5e86 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-available-since.js +++ b/server/sonar-web/src/test/js/coding-rules-page-available-since.js @@ -40,7 +40,7 @@ casper.test.begin('coding-rules-page-available-since', 2, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-bulk-change.js b/server/sonar-web/src/test/js/coding-rules-page-bulk-change.js index 1bb77b479fb..a1f358d7de0 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-bulk-change.js +++ b/server/sonar-web/src/test/js/coding-rules-page-bulk-change.js @@ -40,7 +40,7 @@ casper.test.begin(testName('Activate', 'Success'), function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -106,7 +106,7 @@ casper.test.begin(testName('Activate', 'Failed'), function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -170,7 +170,7 @@ casper.test.begin(testName('Filter Profiles by Language'), 4, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -224,7 +224,7 @@ casper.test.begin(testName('Change Selected Profile'), 4, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-facets.js b/server/sonar-web/src/test/js/coding-rules-page-facets.js index e310eff294a..89e9d6335ca 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-facets.js +++ b/server/sonar-web/src/test/js/coding-rules-page-facets.js @@ -52,7 +52,7 @@ casper.test.begin(testName('Characteristic'), 6, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -129,7 +129,7 @@ casper.test.begin(testName('Characteristic', 'Disable'), 6, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -233,7 +233,7 @@ casper.test.begin(testName('Template'), 4, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -302,7 +302,7 @@ casper.test.begin(testName('Language'), function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-header.js b/server/sonar-web/src/test/js/coding-rules-page-header.js index 0cd140a460e..991469ac464 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-header.js +++ b/server/sonar-web/src/test/js/coding-rules-page-header.js @@ -39,7 +39,7 @@ casper.test.begin(testName('Reload'), 2, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -83,7 +83,7 @@ casper.test.begin(testName('New Search'), 3, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -131,7 +131,7 @@ casper.test.begin(testName('Go Back'), 2, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-inheritance-facet.js b/server/sonar-web/src/test/js/coding-rules-page-inheritance-facet.js index c8c03e2d001..f2d0c43907d 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-inheritance-facet.js +++ b/server/sonar-web/src/test/js/coding-rules-page-inheritance-facet.js @@ -45,7 +45,7 @@ casper.test.begin('coding-rules-page-inheritance-facet', 11, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-list-actions.js b/server/sonar-web/src/test/js/coding-rules-page-list-actions.js index fa93ee71fef..8296bf7ddcd 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-list-actions.js +++ b/server/sonar-web/src/test/js/coding-rules-page-list-actions.js @@ -40,7 +40,7 @@ casper.test.begin(testName('Show Activation Details'), 6, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -92,7 +92,7 @@ casper.test.begin(testName('Activate'), 9, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -158,7 +158,7 @@ casper.test.begin(testName('Deactivate'), 6, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-no-available-profiles-for-activation.js b/server/sonar-web/src/test/js/coding-rules-page-no-available-profiles-for-activation.js index 9dce234cda6..207a4a32eb3 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-no-available-profiles-for-activation.js +++ b/server/sonar-web/src/test/js/coding-rules-page-no-available-profiles-for-activation.js @@ -40,7 +40,7 @@ casper.test.begin('coding-rules-page-no-available-profiles-for-activation', 2, f .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-quality-profile-facet.js b/server/sonar-web/src/test/js/coding-rules-page-quality-profile-facet.js index 1abe773522f..22d457d4376 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-quality-profile-facet.js +++ b/server/sonar-web/src/test/js/coding-rules-page-quality-profile-facet.js @@ -42,7 +42,7 @@ casper.test.begin('coding-rules-page-quality-profile-facet', 6, function (test) .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-query-facet.js b/server/sonar-web/src/test/js/coding-rules-page-query-facet.js index de0f78b9b31..13590c3e7e4 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-query-facet.js +++ b/server/sonar-web/src/test/js/coding-rules-page-query-facet.js @@ -39,7 +39,7 @@ casper.test.begin('coding-rules-page-query-facet', 3, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-rule-should-have-permalink.js b/server/sonar-web/src/test/js/coding-rules-page-rule-should-have-permalink.js index 5f09d634260..313b505486f 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-rule-should-have-permalink.js +++ b/server/sonar-web/src/test/js/coding-rules-page-rule-should-have-permalink.js @@ -40,7 +40,7 @@ casper.test.begin('coding-rules-page-rule-permalink', 1, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-should-activate-profile.js b/server/sonar-web/src/test/js/coding-rules-page-should-activate-profile.js index 05883c4974b..d6f2a74939b 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-should-activate-profile.js +++ b/server/sonar-web/src/test/js/coding-rules-page-should-activate-profile.js @@ -41,7 +41,7 @@ casper.test.begin('coding-rules-page-should-activate-profile', 5, function (test .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-should-create-custom-rules.js b/server/sonar-web/src/test/js/coding-rules-page-should-create-custom-rules.js index 0e1bd000778..e3d3e58e74b 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-should-create-custom-rules.js +++ b/server/sonar-web/src/test/js/coding-rules-page-should-create-custom-rules.js @@ -44,7 +44,7 @@ casper.test.begin(testName('Create'), 2, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) @@ -104,7 +104,7 @@ casper.test.begin(testName('Reactivate'), 3, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-should-create-manual-rules.js b/server/sonar-web/src/test/js/coding-rules-page-should-create-manual-rules.js index b57fed7c582..dcb9c458c42 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-should-create-manual-rules.js +++ b/server/sonar-web/src/test/js/coding-rules-page-should-create-manual-rules.js @@ -42,7 +42,7 @@ casper.test.begin(testName('Create'), 3, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) @@ -96,7 +96,7 @@ casper.test.begin(testName('Reactivate'), function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-should-delete-custom-rules.js b/server/sonar-web/src/test/js/coding-rules-page-should-delete-custom-rules.js index 0b2e3c94f7a..c24d8eacd8e 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-should-delete-custom-rules.js +++ b/server/sonar-web/src/test/js/coding-rules-page-should-delete-custom-rules.js @@ -43,7 +43,7 @@ casper.test.begin('coding-rules-page-should-delete-custom-rules', 2, function (t .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-should-delete-manual-rules.js b/server/sonar-web/src/test/js/coding-rules-page-should-delete-manual-rules.js index 6bff769883d..e0d06efcae5 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-should-delete-manual-rules.js +++ b/server/sonar-web/src/test/js/coding-rules-page-should-delete-manual-rules.js @@ -41,7 +41,7 @@ casper.test.begin('coding-rules-page-should-delete-manual-rules', 1, function (t .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-should-show-custom-rules.js b/server/sonar-web/src/test/js/coding-rules-page-should-show-custom-rules.js index 6e5648a4749..248c1eec766 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-should-show-custom-rules.js +++ b/server/sonar-web/src/test/js/coding-rules-page-should-show-custom-rules.js @@ -42,7 +42,7 @@ casper.test.begin('coding-rules-page-should-show-custom-rules', 3, function (tes .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-should-show-deprecated-label.js b/server/sonar-web/src/test/js/coding-rules-page-should-show-deprecated-label.js index 7fa5d1ad3aa..677b93b2a8d 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-should-show-deprecated-label.js +++ b/server/sonar-web/src/test/js/coding-rules-page-should-show-deprecated-label.js @@ -38,7 +38,7 @@ casper.test.begin('coding-rules-page-should-show-deprecated-label', 1, function .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-should-show-details.js b/server/sonar-web/src/test/js/coding-rules-page-should-show-details.js index 7d6b1044400..fd71afeacf8 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-should-show-details.js +++ b/server/sonar-web/src/test/js/coding-rules-page-should-show-details.js @@ -40,7 +40,7 @@ casper.test.begin('coding-rules-page-should-show-details', 20, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-should-show-empty-list.js b/server/sonar-web/src/test/js/coding-rules-page-should-show-empty-list.js index aee19e7d61e..fbc7d271028 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-should-show-empty-list.js +++ b/server/sonar-web/src/test/js/coding-rules-page-should-show-empty-list.js @@ -38,7 +38,7 @@ casper.test.begin('coding-rules-page-should-show-empty-list', 3, function (test) .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-should-show-facets.js b/server/sonar-web/src/test/js/coding-rules-page-should-show-facets.js index 105ae4edeec..c24f6f56f6d 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-should-show-facets.js +++ b/server/sonar-web/src/test/js/coding-rules-page-should-show-facets.js @@ -38,7 +38,7 @@ casper.test.begin('coding-rules-page-should-show-facets', 1, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-should-show-rule-issues.js b/server/sonar-web/src/test/js/coding-rules-page-should-show-rule-issues.js index cb370329372..d41482af0b0 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-should-show-rule-issues.js +++ b/server/sonar-web/src/test/js/coding-rules-page-should-show-rule-issues.js @@ -40,7 +40,7 @@ casper.test.begin('coding-rules-page-should-show-rule-issues', 5, function (test .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-should-show-rule.js b/server/sonar-web/src/test/js/coding-rules-page-should-show-rule.js index 9a2f36edc33..3ae6d7c00b3 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-should-show-rule.js +++ b/server/sonar-web/src/test/js/coding-rules-page-should-show-rule.js @@ -38,7 +38,7 @@ casper.test.begin('coding-rules-page-should-show-rule', 7, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-should-show-rules.js b/server/sonar-web/src/test/js/coding-rules-page-should-show-rules.js index b4935930133..5c21c5612a2 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-should-show-rules.js +++ b/server/sonar-web/src/test/js/coding-rules-page-should-show-rules.js @@ -38,7 +38,7 @@ casper.test.begin('coding-rules-page-should-show-rules', 4, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/coding-rules-page-spec.js b/server/sonar-web/src/test/js/coding-rules-page-spec.js index 37e78197596..64d21655a06 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-spec.js +++ b/server/sonar-web/src/test/js/coding-rules-page-spec.js @@ -40,7 +40,7 @@ casper.test.begin(testName('Move Between Rules From Detailed View'), 3, function .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) @@ -100,7 +100,7 @@ casper.test.begin(testName('Filter Similar Rules'), 3, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/coding-rules/app.js']); + require(['apps/coding-rules/app']); }); }) diff --git a/server/sonar-web/src/test/js/global-issue-filter-widget.js b/server/sonar-web/src/test/js/global-issue-filter-widget.js index 48e79ca87ba..f4d92282615 100644 --- a/server/sonar-web/src/test/js/global-issue-filter-widget.js +++ b/server/sonar-web/src/test/js/global-issue-filter-widget.js @@ -40,7 +40,7 @@ casper.test.begin(testName('Unresolved Issues By Severity'), 13, function (test) .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -99,7 +99,7 @@ casper.test.begin(testName('Red Issues By Severity'), 9, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -153,7 +153,7 @@ casper.test.begin(testName('All Issues By Status'), 9, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -208,7 +208,7 @@ casper.test.begin(testName('Unresolved Issues By Status'), 9, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -262,7 +262,7 @@ casper.test.begin(testName('All Issues By Resolution'), 10, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -318,7 +318,7 @@ casper.test.begin(testName('Unresolved Issues By Resolution'), 5, function (test .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -369,7 +369,7 @@ casper.test.begin(testName('Unresolved Issues By Rule'), 15, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -432,7 +432,7 @@ casper.test.begin(testName('Unresolved Issues By Project'), 15, function (test) .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -495,7 +495,7 @@ casper.test.begin(testName('Unresolved Issues By Assignee'), 15, function (test) .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -558,7 +558,7 @@ casper.test.begin(testName('Unresolved Unassigned Issues By Assignee'), 6, funct .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -612,7 +612,7 @@ casper.test.begin(testName('Unresolved Issues By Reporter'), 12, function (test) .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -672,7 +672,7 @@ casper.test.begin(testName('Unresolved Issues By Language'), 15, function (test) .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -735,7 +735,7 @@ casper.test.begin(testName('Unresolved Issues By Action Plan'), 15, function (te .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -798,7 +798,7 @@ casper.test.begin(testName('Unresolved Unplanned Issues By Action Plan'), 6, fun .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -852,7 +852,7 @@ casper.test.begin(testName('Unresolved Issues By Date'), 18, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -920,7 +920,7 @@ casper.test.begin(testName('Unresolved Issues on a Limited Period By Date'), 12, .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', diff --git a/server/sonar-web/src/test/js/issues-page-should-open-issue-permalink.js b/server/sonar-web/src/test/js/issues-page-should-open-issue-permalink.js index b8983274ffc..e2c6841100b 100644 --- a/server/sonar-web/src/test/js/issues-page-should-open-issue-permalink.js +++ b/server/sonar-web/src/test/js/issues-page-should-open-issue-permalink.js @@ -45,7 +45,7 @@ casper.test.begin('issues-page-should-open-issue-permalink', 3, function (test) .then(function () { casper.evaluate(function () { - require(['/js/issues/app-new.js']); + require(['apps/issues/app-new']); }); }) diff --git a/server/sonar-web/src/test/js/issues-page-spec.js b/server/sonar-web/src/test/js/issues-page-spec.js index 89286655883..f7cb2ea6f74 100644 --- a/server/sonar-web/src/test/js/issues-page-spec.js +++ b/server/sonar-web/src/test/js/issues-page-spec.js @@ -40,7 +40,7 @@ casper.test.begin(testName('Base'), function (test) { .then(function () { casper.evaluate(function () { - require(['/js/issues/app-new.js']); + require(['apps/issues/app-new']); }); }) @@ -104,7 +104,7 @@ casper.test.begin(testName('Issue Box', 'Check Elements'), function (test) { .then(function () { casper.evaluate(function () { - require(['/js/issues/app-new.js']); + require(['apps/issues/app-new']); }); }) @@ -154,7 +154,7 @@ casper.test.begin(testName('Issue Box', 'Tags'), function (test) { .then(function () { casper.evaluate(function () { - require(['/js/issues/app-new.js']); + require(['apps/issues/app-new']); }); }) @@ -205,7 +205,7 @@ casper.test.begin(testName('Issue Box', 'Transitions'), function (test) { .then(function () { casper.evaluate(function () { - require(['/js/issues/app-new.js']); + require(['apps/issues/app-new']); }); }) @@ -247,7 +247,7 @@ casper.test.begin(testName('Issue Box', 'Rule'), function (test) { .then(function () { casper.evaluate(function () { - require(['/js/issues/app-new.js']); + require(['apps/issues/app-new']); }); }) @@ -293,7 +293,7 @@ casper.test.begin(testName('File-Level Issues'), function (test) { .then(function () { casper.evaluate(function () { - require(['/js/issues/app-new.js']); + require(['apps/issues/app-new']); }); }) @@ -332,7 +332,7 @@ casper.test.begin(testName('Severity Facet'), function (test) { .then(function () { casper.evaluate(function () { - require(['/js/issues/app-new.js']); + require(['apps/issues/app-new']); }); }) @@ -372,7 +372,7 @@ casper.test.begin(testName('Bulk Change'), function (test) { .then(function () { casper.evaluate(function () { - require(['/js/issues/app-new.js']); + require(['apps/issues/app-new']); }); }) @@ -411,7 +411,7 @@ casper.test.begin(testName('Filter Similar Issues'), 12, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/issues/app-new.js']); + require(['apps/issues/app-new']); }); }) diff --git a/server/sonar-web/src/test/js/markdown-spec.js b/server/sonar-web/src/test/js/markdown-spec.js index ded3ed6e97d..fa9bedfd530 100644 --- a/server/sonar-web/src/test/js/markdown-spec.js +++ b/server/sonar-web/src/test/js/markdown-spec.js @@ -36,7 +36,7 @@ casper.test.begin(testName(), 8, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/markdown/app.js'], function (App) { + require(['apps/markdown/app'], function (App) { App.start({ el: 'body' }); }); }); diff --git a/server/sonar-web/src/test/js/nav-spec.js b/server/sonar-web/src/test/js/nav-spec.js index f5c21461e27..2300df4053a 100644 --- a/server/sonar-web/src/test/js/nav-spec.js +++ b/server/sonar-web/src/test/js/nav-spec.js @@ -40,7 +40,7 @@ casper.test.begin(testName('Global Spaces'), 8, function (test) { casper.evaluate(function () { window.SS.isUserAdmin = false; window.navbarOptions = new Backbone.Model(); - require(['/js/nav/app.js']); + require(['apps/nav/app']); }); }) @@ -87,7 +87,7 @@ casper.test.begin(testName('Global Dashboards'), 12, function (test) { window.SS.isUserAdmin = false; window.navbarOptions = new Backbone.Model(); - require(['/js/nav/app.js']); + require(['apps/nav/app']); }); }) @@ -141,7 +141,7 @@ casper.test.begin(testName('Global Plugin Pages'), 12, function (test) { window.SS.isUserAdmin = false; window.navbarOptions = new Backbone.Model(); - require(['/js/nav/app.js']); + require(['apps/nav/app']); }); }) @@ -193,7 +193,7 @@ casper.test.begin(testName('Login'), 3, function (test) { window.SS.isUserAdmin = false; window.navbarOptions = new Backbone.Model(); - require(['/js/nav/app.js']); + require(['apps/nav/app']); }); }) @@ -238,7 +238,7 @@ casper.test.begin(testName('Search'), 24, function (test) { window.localStorage.setItem('sonar_recent_history', '[{"key":"localhistoryproject","name":"Local History Project","icon":"trk"}]'); - require(['/js/nav/app.js']); + require(['apps/nav/app']); }); }) @@ -333,7 +333,7 @@ casper.test.begin(testName('Context'), function (test) { window.navbarOptions = new Backbone.Model(); window.navbarOptions.set({ space: 'component', componentKey: 'org.codehaus.sonar-plugins.java:java' }); - require(['/js/nav/app.js']); + require(['apps/nav/app']); }); }) diff --git a/server/sonar-web/src/test/js/project-issue-filter-widget.js b/server/sonar-web/src/test/js/project-issue-filter-widget.js index 0d248807d8b..083065c01e3 100644 --- a/server/sonar-web/src/test/js/project-issue-filter-widget.js +++ b/server/sonar-web/src/test/js/project-issue-filter-widget.js @@ -40,7 +40,7 @@ casper.test.begin(testName('Unresolved Issues By Severity'), 13, function (test) .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -101,7 +101,7 @@ casper.test.begin(testName('Unresolved Issues By Date'), 18, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -171,7 +171,7 @@ casper.test.begin(testName('Unresolved Issues By Severity With Differential Peri .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', @@ -234,7 +234,7 @@ casper.test.begin(testName('Unresolved Issues By Severity With IGNORED Different .then(function () { casper.evaluate(function () { - require(['/js/widgets/issue-filter.js'], function (IssueFilter) { + require(['widgets/issue-filter/widget'], function (IssueFilter) { window.requestMessages().done(function () { new IssueFilter({ el: '#issue-filter-widget', diff --git a/server/sonar-web/src/test/js/quality-gates-spec.js b/server/sonar-web/src/test/js/quality-gates-spec.js index b892b5527a3..ec78d267a17 100644 --- a/server/sonar-web/src/test/js/quality-gates-spec.js +++ b/server/sonar-web/src/test/js/quality-gates-spec.js @@ -39,7 +39,7 @@ casper.test.begin('Quality Gates', function suite (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-gate/app.js']); + require(['apps/quality-gate/app']); }); }) diff --git a/server/sonar-web/src/test/js/quality-profiles.js b/server/sonar-web/src/test/js/quality-profiles.js index 56aa831f751..2200aa97b67 100644 --- a/server/sonar-web/src/test/js/quality-profiles.js +++ b/server/sonar-web/src/test/js/quality-profiles.js @@ -40,7 +40,7 @@ casper.test.begin(testName('Should Show List'), 9, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); }); }) @@ -85,7 +85,7 @@ casper.test.begin(testName('Should Filter List By Language'), 15, function (test .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); }); }) @@ -154,7 +154,7 @@ casper.test.begin(testName('Should Show Details'), 10, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); }); }) @@ -209,7 +209,7 @@ casper.test.begin(testName('Should Show Details', 'Admin'), 10, function (test) .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); }); }) @@ -263,7 +263,7 @@ casper.test.begin(testName('Should Show Inheritance Details'), 10, function (tes .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); }); }) @@ -317,7 +317,7 @@ casper.test.begin(testName('Should Show Selected Projects'), 2, function (test) .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); }); }) @@ -365,7 +365,7 @@ casper.test.begin(testName('Should Move Between Profiles'), 1, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); }); }) @@ -421,7 +421,7 @@ casper.test.begin(testName('Copy Profile'), 5, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -484,7 +484,7 @@ casper.test.begin(testName('Rename Profile'), 2, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -547,7 +547,7 @@ casper.test.begin(testName('Make Profile Default'), 4, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -604,7 +604,7 @@ casper.test.begin(testName('Delete Profile'), 2, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -662,7 +662,7 @@ casper.test.begin(testName('Create Profile'), 2, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -718,7 +718,7 @@ casper.test.begin(testName('Restore Profile'), 2, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -768,7 +768,7 @@ casper.test.begin(testName('Importers'), 6, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -833,7 +833,7 @@ casper.test.begin(testName('Restore Built-in Profiles'), 3, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -893,7 +893,7 @@ casper.test.begin(testName('Change Parent'), 1, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); jQuery.ajaxSetup({ dataType: 'json' }); }); }) @@ -954,7 +954,7 @@ casper.test.begin(testName('Permalink'), 9, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); }); }) @@ -1006,7 +1006,7 @@ casper.test.begin(testName('Changelog'), 22, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); }); }) @@ -1098,7 +1098,7 @@ casper.test.begin(testName('Changelog Permalink'), 2, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); }); }) @@ -1145,7 +1145,7 @@ casper.test.begin(testName('Comparison'), 12, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); }); }) @@ -1204,7 +1204,7 @@ casper.test.begin(testName('Comparison Permalink'), 4, function (test) { .then(function () { casper.evaluate(function () { - require(['/js/quality-profiles/app.js']); + require(['apps/quality-profiles/app']); }); }) diff --git a/server/sonar-web/src/test/js/source-viewer-coverage.js b/server/sonar-web/src/test/js/source-viewer-coverage.js index 264dfae6a5a..9f15220e5bf 100644 --- a/server/sonar-web/src/test/js/source-viewer-coverage.js +++ b/server/sonar-web/src/test/js/source-viewer-coverage.js @@ -44,7 +44,7 @@ casper.test.begin(testName(), 12, function (test) { .then(function () { casper.evaluate(function () { window.file = { uuid: 'uuid', key: 'key' }; - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) diff --git a/server/sonar-web/src/test/js/source-viewer-create-manual-issue.js b/server/sonar-web/src/test/js/source-viewer-create-manual-issue.js index ad382aff6ce..ace652101fd 100644 --- a/server/sonar-web/src/test/js/source-viewer-create-manual-issue.js +++ b/server/sonar-web/src/test/js/source-viewer-create-manual-issue.js @@ -43,7 +43,7 @@ casper.test.begin(testName('source-viewer-create-manual-issue'), function (test) .then(function () { casper.evaluate(function () { - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) diff --git a/server/sonar-web/src/test/js/source-viewer-duplications.js b/server/sonar-web/src/test/js/source-viewer-duplications.js index 809ed6ee6e1..e24fabfca75 100644 --- a/server/sonar-web/src/test/js/source-viewer-duplications.js +++ b/server/sonar-web/src/test/js/source-viewer-duplications.js @@ -42,7 +42,7 @@ casper.test.begin(testName(), 5, function (test) { .then(function () { casper.evaluate(function () { window.file = { uuid: 'uuid', key: 'key' }; - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) @@ -99,7 +99,7 @@ casper.test.begin(testName('In Removed Component'), 2, function (test) { .then(function () { casper.evaluate(function () { window.file = { uuid: 'uuid', key: 'key' }; - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) diff --git a/server/sonar-web/src/test/js/source-viewer-favorite-spec.js b/server/sonar-web/src/test/js/source-viewer-favorite-spec.js index 50f1cb8f9db..3bc39b656ef 100644 --- a/server/sonar-web/src/test/js/source-viewer-favorite-spec.js +++ b/server/sonar-web/src/test/js/source-viewer-favorite-spec.js @@ -41,7 +41,7 @@ casper.test.begin(testName('Mark as Favorite'), function (test) { .then(function () { casper.evaluate(function () { - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) @@ -84,7 +84,7 @@ casper.test.begin(testName('Don\'t Show Favorite If Not Logged In'), function (t .then(function () { casper.evaluate(function () { - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) 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 46a2605277d..29808d1741c 100644 --- a/server/sonar-web/src/test/js/source-viewer-issues.js +++ b/server/sonar-web/src/test/js/source-viewer-issues.js @@ -44,7 +44,7 @@ casper.test.begin(testName(), 16, function (test) { .then(function () { casper.evaluate(function () { window.file = { uuid: 'uuid', key: 'key' }; - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) diff --git a/server/sonar-web/src/test/js/source-viewer-scm.js b/server/sonar-web/src/test/js/source-viewer-scm.js index 047e08a9309..200419bbd9b 100644 --- a/server/sonar-web/src/test/js/source-viewer-scm.js +++ b/server/sonar-web/src/test/js/source-viewer-scm.js @@ -42,7 +42,7 @@ casper.test.begin(testName('SCM'), 4, function (test) { .then(function () { casper.evaluate(function () { window.file = { uuid: 'uuid', key: 'key' }; - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) diff --git a/server/sonar-web/src/test/js/source-viewer-should-not-show-source-if-no-permission.js b/server/sonar-web/src/test/js/source-viewer-should-not-show-source-if-no-permission.js index 5cbec7ccd41..2c7de6dbb0c 100644 --- a/server/sonar-web/src/test/js/source-viewer-should-not-show-source-if-no-permission.js +++ b/server/sonar-web/src/test/js/source-viewer-should-not-show-source-if-no-permission.js @@ -40,7 +40,7 @@ casper.test.begin(testName('source-viewer-should-not-show-source-if-no-permissio .then(function () { casper.evaluate(function () { - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) diff --git a/server/sonar-web/src/test/js/source-viewer-spec.js b/server/sonar-web/src/test/js/source-viewer-spec.js index 17a361e915c..523e08cb3c4 100644 --- a/server/sonar-web/src/test/js/source-viewer-spec.js +++ b/server/sonar-web/src/test/js/source-viewer-spec.js @@ -41,7 +41,7 @@ casper.test.begin(testName('Base'), 14, function (test) { .then(function () { casper.evaluate(function () { window.file = { uuid: 'uuid', key: 'key' }; - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) @@ -92,7 +92,7 @@ casper.test.begin(testName('Decoration'), 8, function (test) { .then(function () { casper.evaluate(function () { window.file = { uuid: 'uuid', key: 'key' }; - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) @@ -148,7 +148,7 @@ casper.test.begin(testName('Test File'), 1, function (test) { .then(function () { casper.evaluate(function () { window.file = { uuid: 'uuid', key: 'key' }; - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) @@ -183,7 +183,7 @@ casper.test.begin(testName('Highlight Usages'), 6, function (test) { .then(function () { casper.evaluate(function () { window.file = { uuid: 'uuid', key: 'key' }; - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) @@ -227,7 +227,7 @@ casper.test.begin(testName('Line Permalink'), 1, function (test) { .then(function () { casper.evaluate(function () { window.file = { uuid: 'uuid', key: 'key' }; - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) @@ -270,7 +270,7 @@ casper.test.begin(testName('Link to Raw'), 1, function (test) { .then(function () { casper.evaluate(function () { window.file = { uuid: 'uuid', key: 'key' }; - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) @@ -316,7 +316,7 @@ casper.test.begin(testName('Details'), 15, function (test) { .then(function () { casper.evaluate(function () { window.file = { uuid: 'uuid', key: 'key' }; - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) @@ -387,7 +387,7 @@ casper.test.begin(testName('Details', 'Tests'), 39, function (test) { .then(function () { casper.evaluate(function () { window.file = { uuid: 'uuid', key: 'key' }; - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) diff --git a/server/sonar-web/src/test/js/workspace.js b/server/sonar-web/src/test/js/workspace.js index 47ce6bd3839..ee2dc2b3aa4 100644 --- a/server/sonar-web/src/test/js/workspace.js +++ b/server/sonar-web/src/test/js/workspace.js @@ -41,7 +41,7 @@ casper.test.begin(testName('Open From Component Viewer'), 8, function (test) { .then(function () { casper.evaluate(function () { window.localStorage.removeItem('sonarqube-workspace'); - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) @@ -103,7 +103,7 @@ casper.test.begin(testName('Load From Local Storage'), 7, function (test) { '[{"uuid":"12345","type":"component","name":"Cache.java","q":"FIL"}]'); window.SS.isUserAdmin = false; window.navbarOptions = new Backbone.Model(); - require(['/js/nav/app.js']); + require(['apps/nav/app']); }); }) @@ -156,7 +156,7 @@ casper.test.begin(testName('Close From Nav'), 2, function (test) { '[{"uuid":"12345","type":"component","name":"Cache.java","q":"FIL"}]'); window.SS.isUserAdmin = false; window.navbarOptions = new Backbone.Model(); - require(['/js/nav/app.js']); + require(['apps/nav/app']); }); }) @@ -198,7 +198,7 @@ casper.test.begin(testName('Minimize'), 2, function (test) { .then(function () { casper.evaluate(function () { window.localStorage.removeItem('sonarqube-workspace'); - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) @@ -246,7 +246,7 @@ casper.test.begin(testName('Full Screen'), 6, function (test) { .then(function () { casper.evaluate(function () { window.localStorage.removeItem('sonarqube-workspace'); - require(['/js/source-viewer/app.js']); + require(['apps/source-viewer/app']); }); }) @@ -302,7 +302,7 @@ casper.test.begin(testName('Rule'), 3, function (test) { '[{"key":"common-java:InsufficientBranchCoverage","type":"rule"}]'); window.SS.isUserAdmin = false; window.navbarOptions = new Backbone.Model(); - require(['/js/nav/app.js']); + require(['apps/nav/app']); }); }) |