Skip to content
Snippets Groups Projects
Commit a164d61f authored by Arlo Breault's avatar Arlo Breault Committed by Cecylia Bocovich
Browse files

Remove tests referring to BadgeUI

Since that's been overhauled.  The whole ui.spec.js file probably needs
redoing.
parent 0f33546f
No related branches found
Tags webext-0.0.6
No related merge requests found
/* global expect, it, describe, spyOn, DebugUI, BadgeUI */
/* global expect, it, describe, spyOn, DebugUI */
/* eslint no-redeclare: 0 */
/*
......@@ -30,20 +30,6 @@ describe('UI', function() {
expect(u.$msglog).not.toBeNull();
});
it('is not debug mode when badge exists', function() {
var u;
spyOn(document, 'getElementById').and.callFake(function(id) {
if ('badge' === id) {
return {};
}
return null;
});
u = new BadgeUI();
expect(document.getElementById).toHaveBeenCalled();
expect(document.getElementById.calls.count()).toEqual(1);
expect(u.$badge).not.toBeNull();
});
it('sets status message when in debug mode', function() {
var u;
u = new DebugUI();
......@@ -66,16 +52,6 @@ describe('UI', function() {
expect(u.$msglog.className).toEqual('');
});
it('sets badge css correctly for non-debug mode', function() {
var u;
u = new BadgeUI();
u.$badge = {};
u.setActive(true);
expect(u.$badge.className).toEqual('active');
u.setActive(false);
expect(u.$badge.className).toEqual('');
});
it('logs to the textarea correctly when debug mode', function() {
var u;
u = new DebugUI();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment