Clean up JSLocate test
[bookreader.git] / BookReaderIA / test / unit / JSLocate.js
index 8f9bc3d..2d814bf 100644 (file)
@@ -4,10 +4,7 @@
 
 module("JSLocate");
 
-test("first test within module", function() {
-  ok( true, "all pass" );
-});
-
+testHost = 'http://www-testflip.archive.org';
 
 // Set up dummy BookReader class for JSLocate
 function BookReader() {
@@ -19,7 +16,7 @@ BookReader.prototype.init = function() {
 
 asyncTest("JSLocate for notesonsubmarine00grea", function() {
     expect(1);
-    $.getScript('http://www-testflip.archive.org/bookreader/BookReaderJSLocate.php?id=amonographonmec00buregoog',
+    $.getScript(testHost + '/bookreader/BookReaderJSLocate.php?id=amonographonmec00buregoog',
         function(data, textStatus) {
             equals(13, window.br.titleLeaf, 'br object should exist with title leaf 13. See https://bugs.launchpad.net/bookreader/+bug/517424');
             start();