diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-02-06 16:36:20 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-02-06 16:36:20 (GMT) |
commit | 66dae0ccbc23f4df612711a2e61fadd9b15feb91 (patch) | |
tree | a069ef55f4d97b6419f38d8ce86eb19f5cc1f1e7 /apps/system/test/integration/system_integration.js | |
parent | b5b9e95e2f4c8ab19cef000c82fcfc0625c52666 (diff) |
Diffstat (limited to 'apps/system/test/integration/system_integration.js')
-rw-r--r-- | apps/system/test/integration/system_integration.js | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/apps/system/test/integration/system_integration.js b/apps/system/test/integration/system_integration.js deleted file mode 100644 index 1116e17..0000000 --- a/apps/system/test/integration/system_integration.js +++ /dev/null @@ -1,49 +0,0 @@ -require('/tests/js/app_integration.js'); -require('/tests/js/integration_helper.js'); - -function SystemIntegration() { - AppIntegration.apply(this, arguments); -} - -SystemIntegration.prototype = { - __proto__: AppIntegration.prototype, - - appName: 'System', - - selectors: { - /** notifications */ - notificationsContainer: '#notifications-container' - }, - - /** - * Override base launch method. - * The system app is launched by directly - * going to its url we we determine by getting - * all the apps and finding the 'System' apps origin. - */ - launch: function(callback) { - var self = this; - this.task(function(app, next, done) { - var device = app.device; - yield device.setScriptTimeout(5000); - - yield IntegrationHelper.importScript( - device, - '/tests/atoms/gaia_apps.js', - MochaTask.nodeNext - ); - - var result = yield device.executeAsyncScript( - 'GaiaApps.locateWithName("' + self.appName + '");' - ); - - // locate the origin of the system app. - // We must append the /index.html because of the app:// protocol. - yield device.goUrl(result.origin + '/index.html'); - - // complete the task - done(); - }, callback); - } - -}; |