Add rotation support for non-jp2 images
[bookreader.git] / BookReaderIA / test / unit / JSLocate.js
1 // Tests for BookReaderJSLocate.php
2
3 // Depends on common.js
4
5 module("JSLocate");
6
7 // $$$ locate will fail when called from the same domain since the browser will not honour the
8 //     redirect to the datanode
9
10 asyncTest("JSLocate for notesonsubmarine00grea", function() {
11     expect(1);
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');
15             start();
16         }
17     );
18 });
19
20 asyncTest("JSLocate for photographingclo00carprich", function() {
21     expect(1);
22     $.getScript( jsLocateURL('photographingclo00carprich'),
23         function(data, textStatus) {
24             equals(window.br.bookTitle, 'Photographing clouds from an airplane',  'Title of book');
25             start();
26         }
27     );
28 });
29
30 asyncTest("JSLocate for salmoncookbookho00panaiala", function() {
31     expect(1);
32     $.getScript( jsLocateURL('salmoncookbookho00panaiala'),
33         function(data, textStatus) {
34             equals(window.br.numLeafs, 40,  'Number of pages');
35             start();
36         }
37     );
38 });