Skip to content

Commit

Permalink
Add new test specs
Browse files Browse the repository at this point in the history
  • Loading branch information
micjamking committed Feb 21, 2016
1 parent be6b467 commit 7094e4e
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/devtools-spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
describe('DevTools Extension setup test', function (){
var app;

beforeAll(function(){
app = window.app;
});

it('should creates Author Settings panel', function(){
expect(app).toBeDefined();
expect(chrome.devtools).toBeDefined();
});

it('should load theme CSS file', function(){
expect(app).toBeDefined();
expect(chrome.storage).toBeDefined();
});

});
42 changes: 42 additions & 0 deletions test/panel-spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
describe('DevTools Author Settings panel spec', function (){
var panel;

beforeAll(function(){
panel = window.panel;
});

it('should get theme.json via XHR', function(){
expect(panel).toBeDefined();
});

it('sets devtools-theme to storage', function(){
expect(app).toBeDefined();
expect(chrome.storage).toBeDefined();
});

it('gets devtools-theme from storage', function(){
expect(app).toBeDefined();
expect(chrome.storage).toBeDefined();
});

it('sets devtools-fontFamily to storage', function(){
expect(app).toBeDefined();
expect(chrome.storage).toBeDefined();
});

it('gets devtools-fontFamily from storage', function(){
expect(app).toBeDefined();
expect(chrome.storage).toBeDefined();
});

it('sets devtools-fontSize to storage', function(){
expect(app).toBeDefined();
expect(chrome.storage).toBeDefined();
});

it('gets devtools-fontSize from storage', function(){
expect(app).toBeDefined();
expect(chrome.storage).toBeDefined();
});

});

0 comments on commit 7094e4e

Please sign in to comment.