1 // Tests for BookReaderJSLocate.php
3 // Depends on common.js
7 asyncTest("JSLocate for notesonsubmarine00grea", function() {
9 $.getScript( jsLocateURL('notesonsubmarine00grea'),
10 function(data, textStatus) {
11 equals(window.br.titleLeaf, 5, 'Metadata loaded. See https://bugs.launchpad.net/bookreader/+bug/517424. Title leaf');
17 asyncTest("JSLocate for photographingclo00carprich", function() {
19 $.getScript( jsLocateURL('photographingclo00carprich'),
20 function(data, textStatus) {
21 equals(window.br.bookTitle, 'Photographing clouds from an airplane', 'Title of book');
27 asyncTest("JSLocate for salmoncookbookho00panaiala", function() {
29 $.getScript( jsLocateURL('salmoncookbookho00panaiala'),
30 function(data, textStatus) {
31 equals(window.br.numLeafs, 40, 'Number of pages');