1 // Tests for BookReaderJSLocate.php
3 // Depends on common.js
7 // $$$ locate will fail when called from the same domain since the browser will not honour the
8 // redirect to the datanode
10 asyncTest("JSLocate for notesonsubmarine00grea", function() {
12 $.getScript( jsLocateURL('notesonsubmarine00grea'),
13 function(data, textStatus) {
14 equals(window.br.titleLeaf, 5, 'Metadata loaded. See https://bugs.launchpad.net/bookreader/+bug/517424. Title leaf');
20 asyncTest("JSLocate for photographingclo00carprich", function() {
22 $.getScript( jsLocateURL('photographingclo00carprich'),
23 function(data, textStatus) {
24 equals(window.br.bookTitle, 'Photographing clouds from an airplane', 'Title of book');
30 asyncTest("JSLocate for salmoncookbookho00panaiala", function() {
32 $.getScript( jsLocateURL('salmoncookbookho00panaiala'),
33 function(data, textStatus) {
34 equals(window.br.numLeafs, 40, 'Number of pages');