projects
/
bookreader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
589b566
)
Update unit tests
author
Michael Ang
<mang@archive.org>
Mon, 23 May 2011 17:14:14 +0000
(17:14 +0000)
committer
Michael Ang
<mang@archive.org>
Mon, 23 May 2011 17:14:14 +0000
(17:14 +0000)
BookReaderIA/test/unit/Images.js
patch
|
blob
|
history
diff --git
a/BookReaderIA/test/unit/Images.js
b/BookReaderIA/test/unit/Images.js
index
0a2919c
..
14fb114
100644
(file)
--- a/
BookReaderIA/test/unit/Images.js
+++ b/
BookReaderIA/test/unit/Images.js
@@
-157,7
+157,7
@@
asyncTest("Load tiff image from zip", function() {
var img = new Image();
$(img).bind( 'load error', function(eventObj) {
equals(eventObj.type, 'load', 'Load image (' + pageURI + '). Event handler called');
var img = new Image();
$(img).bind( 'load error', function(eventObj) {
equals(eventObj.type, 'load', 'Load image (' + pageURI + '). Event handler called');
- equals(this.width, 70
2
, 'Image width');
+ equals(this.width, 70
1
, 'Image width');
start();
})
.attr('src', pageURI);
start();
})
.attr('src', pageURI);
@@
-179,7
+179,7
@@
asyncTest('Load jpg image from tar file - https://bugs.launchpad.net/bookreader/
var img = new Image();
$(img).bind( 'load error', function(eventObj) {
equals(eventObj.type, 'load', 'Load image (' + pageURI + '). Event handler called');
var img = new Image();
$(img).bind( 'load error', function(eventObj) {
equals(eventObj.type, 'load', 'Load image (' + pageURI + '). Event handler called');
- equals(this.width, 24
4
, 'Image width');
+ equals(this.width, 24
3
, 'Image width');
start();
})
.attr('src', pageURI);
start();
})
.attr('src', pageURI);