-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be6b467
commit 7094e4e
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
|
||
}); |