adding jasmine tests
This commit is contained in:
parent
32edfd4e80
commit
1ae28723eb
19 changed files with 4310 additions and 14 deletions
|
@ -13,6 +13,7 @@
|
|||
- full browser test - IE9 / FF3.6+ / Chrome / Safari / Opera
|
||||
|
||||
Nice 2 have:
|
||||
- remove image inhancement lag when navigating by pre-applying enhancements to other pages
|
||||
- jump to page?
|
||||
- make page draggable with the cursor
|
||||
- enable menu items via config, allow for custom items
|
||||
|
@ -22,7 +23,6 @@
|
|||
- use custom event emitters instead of hacky code
|
||||
- properly bind 'this' so we don't have to keep using 'self'
|
||||
- allow toolbar to be sticky
|
||||
- unit test / integrate with travis CI
|
||||
*/
|
||||
|
||||
var ComicBook = (function ($) {
|
||||
|
@ -218,22 +218,22 @@ var ComicBook = (function ($) {
|
|||
this.controls = controls;
|
||||
};
|
||||
|
||||
ComicBook.prototype.getControl = function(control) {
|
||||
ComicBook.prototype.getControl = function (control) {
|
||||
if (typeof this.controls[control] !== 'object') {
|
||||
throw ComicBookException.UNDEFINED_CONTROL + ' ' + control;
|
||||
}
|
||||
return this.controls[control];
|
||||
};
|
||||
|
||||
ComicBook.prototype.showControl = function(control) {
|
||||
ComicBook.prototype.showControl = function (control) {
|
||||
this.getControl(control).show().addClass('open');
|
||||
};
|
||||
|
||||
ComicBook.prototype.hideControl = function(control) {
|
||||
ComicBook.prototype.hideControl = function (control) {
|
||||
this.getControl(control).removeClass('open').hide();
|
||||
};
|
||||
|
||||
ComicBook.prototype.toggleControl = function(control) {
|
||||
ComicBook.prototype.toggleControl = function (control) {
|
||||
this.getControl(control).toggle().toggleClass('open');
|
||||
};
|
||||
|
||||
|
@ -255,7 +255,7 @@ var ComicBook = (function ($) {
|
|||
*
|
||||
* @return Image
|
||||
*/
|
||||
ComicBook.prototype.getPage = function(i) {
|
||||
ComicBook.prototype.getPage = function (i) {
|
||||
|
||||
if (i < 0 || i > srcs.length-1) {
|
||||
throw ComicBookException.INVALID_PAGE + ' ' + i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue