mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
upgraded rsvp.js, small bug fixes
This commit is contained in:
parent
8bc693b2ce
commit
f525d86fb1
20 changed files with 2488 additions and 1370 deletions
|
@ -23,7 +23,7 @@ asyncTest("Get book URL from bookPath", 1, function() {
|
|||
var opended = Book.open('/demo/moby-dick/');
|
||||
|
||||
opended.then(function(){
|
||||
equal( Book.bookUrl, location.href.replace("tests/", '') + "/demo/moby-dick/", "bookUrl is correctly resolved" );
|
||||
equal( Book.bookUrl, location.href.replace("tests/", '') + "demo/moby-dick/", "bookUrl is correctly resolved" );
|
||||
start();
|
||||
});
|
||||
|
||||
|
@ -35,7 +35,7 @@ asyncTest("Get book URL from ../bookPath", 1, function() {
|
|||
var Book = ePub();
|
||||
var opended = Book.open('../demo/moby-dick/');
|
||||
opended.then(function(){
|
||||
equal( Book.bookUrl, location.href.replace("tests/", '') + "/demo/moby-dick/", "bookUrl with ../ is correctly resolved" );
|
||||
equal( Book.bookUrl, "/demo/moby-dick/", "bookUrl with ../ is correctly resolved" );
|
||||
start();
|
||||
});
|
||||
|
||||
|
@ -73,6 +73,7 @@ asyncTest("Get Contents from Uncompressed Epub", 5, function() {
|
|||
|
||||
Book.ready.all.then(function(){
|
||||
ok( true, "Book is all ready" );
|
||||
|
||||
equal( Book.cover, Book.settings.contentsPath + "images/9780316000000.jpg", "Cover url is set");
|
||||
start();
|
||||
});
|
||||
|
@ -117,7 +118,7 @@ asyncTest("Get Contents from Restored Epub", 7, function() {
|
|||
|
||||
var Book = ePub('../demo/moby-dick/', { restore: true });
|
||||
|
||||
equal( Book.settings.contentsPath, location.href.replace("tests/", '') + "/demo/moby-dick/OPS/", "contentsPath was restored");
|
||||
equal( Book.settings.contentsPath, "/demo/moby-dick/OPS/", "contentsPath was restored");
|
||||
|
||||
Book.getMetadata().then(function(meta){
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue