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
36
gaia/apps/system/test/unit/debugging_icon_test.js
Executable file
36
gaia/apps/system/test/unit/debugging_icon_test.js
Executable file
|
|
@ -0,0 +1,36 @@
|
|||
/* global DebuggingIcon */
|
||||
'use strict';
|
||||
|
||||
requireApp('system/js/service.js');
|
||||
requireApp('system/js/base_ui.js');
|
||||
requireApp('system/js/base_icon.js');
|
||||
requireApp('system/js/debugging_icon.js');
|
||||
|
||||
suite('system/DebuggingIcon', function() {
|
||||
var subject, manager;
|
||||
|
||||
setup(function() {
|
||||
manager = {
|
||||
enabled: false
|
||||
};
|
||||
subject = new DebuggingIcon(manager);
|
||||
subject.start();
|
||||
subject.element = document.createElement('div');
|
||||
});
|
||||
|
||||
teardown(function() {
|
||||
subject.stop();
|
||||
});
|
||||
|
||||
test('Debugging is enabled', function() {
|
||||
manager.enabled = true;
|
||||
subject.update();
|
||||
assert.isTrue(subject.isVisible());
|
||||
});
|
||||
|
||||
test('Debugging is disabled', function() {
|
||||
manager.enabled = false;
|
||||
subject.update();
|
||||
assert.isFalse(subject.isVisible());
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue