aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/test/helpers/test-page.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-07-03 12:06:54 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-07-03 12:53:27 +0200
commit8d9953d57840d24a7d99d6f263837eaf9ef6addf (patch)
treea896b6e129bbc65a35d3173b2baec710eb72a851 /server/sonar-web/test/helpers/test-page.js
parent854f1e5cd9acdad37fc041f7966aa85f39c8523f (diff)
downloadsonarqube-8d9953d57840d24a7d99d6f263837eaf9ef6addf.tar.gz
sonarqube-8d9953d57840d24a7d99d6f263837eaf9ef6addf.zip
migrate update center web tests
Diffstat (limited to 'server/sonar-web/test/helpers/test-page.js')
-rw-r--r--server/sonar-web/test/helpers/test-page.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/test/helpers/test-page.js b/server/sonar-web/test/helpers/test-page.js
index cab78072a2a..cb7e770c89e 100644
--- a/server/sonar-web/test/helpers/test-page.js
+++ b/server/sonar-web/test/helpers/test-page.js
@@ -135,14 +135,14 @@ define(function (require) {
});
};
- Command.prototype.startApp = function (app) {
+ Command.prototype.startApp = function (app, options) {
return new this.constructor(this, function () {
return this.parent
- .execute(function (app) {
+ .execute(function (app, options) {
require(['apps/' + app + '/app'], function (App) {
- App.start({ el: '#content' });
+ App.start(_.extend({ el: '#content' }, options));
});
- }, [app])
+ }, [app, options])
.sleep(1000);
});
};