1 // Tests for BookReaderJSLocate.php
3 // $$$ TODO -- make the test host configurable/automagic
7 testHost = 'http://www-testflip.archive.org';
9 // Set up dummy BookReader class for JSLocate
10 function BookReader() {
13 BookReader.prototype.init = function() {
17 asyncTest("JSLocate for notesonsubmarine00grea", function() {
19 $.getScript(testHost + '/bookreader/BookReaderJSLocate.php?id=amonographonmec00buregoog',
20 function(data, textStatus) {
21 equals(13, window.br.titleLeaf, 'br object should exist with title leaf 13. See https://bugs.launchpad.net/bookreader/+bug/517424');