Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
47
gaia/apps/calendar/test/unit/controllers/service_test.js
Executable file
47
gaia/apps/calendar/test/unit/controllers/service_test.js
Executable file
|
|
@ -0,0 +1,47 @@
|
|||
define(function(require) {
|
||||
'use strict';
|
||||
|
||||
var Manager = require('worker/manager');
|
||||
var ServiceController = require('controllers/service');
|
||||
|
||||
suite('Controllers.Service', function() {
|
||||
var subject;
|
||||
|
||||
setup(function() {
|
||||
subject = new ServiceController();
|
||||
});
|
||||
|
||||
test('initialize', function() {
|
||||
assert.instanceOf(subject, Manager);
|
||||
});
|
||||
|
||||
test('#start', function() {
|
||||
subject.start();
|
||||
|
||||
assert.ok(subject._ensureActiveWorker('caldav'));
|
||||
});
|
||||
|
||||
/*
|
||||
// These tests are currently failing and have been temporarily disabled as per
|
||||
// Bug 838993. They should be fixed and re-enabled as soon as possible as per
|
||||
// Bug 840489.
|
||||
test('caldav worker', function(done) {
|
||||
subject.start();
|
||||
|
||||
subject.request('caldav', 'noop', function(data) {
|
||||
done(function() {
|
||||
assert.deepEqual(data, { ready: true });
|
||||
});
|
||||
});
|
||||
});
|
||||
*/
|
||||
|
||||
teardown(function() {
|
||||
subject.workers.forEach(function(worker) {
|
||||
worker.instance.terminate();
|
||||
worker.instance = null;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
Loading…
Reference in a new issue