Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-112: Error when running test suite

Mike McGannfe056299c303
diff --git a/test/harness.js b/test/harness.js
index 14181588d..e853f2cb1 100644
--- a/test/harness.js
+++ b/test/harness.js
@@ -14,4 +14,11 @@
* to clean up the mock objects.
*/
JsHamcrest.Integration.JsTestDriver();
-JsMockito.Integration.JsTestDriver();
\ No newline at end of file
+JsMockito.Integration.JsTestDriver();
+
+/**
+ * Required elements that must appear in the document
+ */
+$(function() {
+ $(document.body).append("<div id='map'></div>");
+});
\ No newline at end of file
diff --git a/test/jsTestDriver.conf b/test/jsTestDriver.conf
index cc18689e8..2c9323ec6 100644
--- a/test/jsTestDriver.conf
+++ b/test/jsTestDriver.conf
@@ -1,9 +1,12 @@
server: http://localhost:8811
load:
+ - ../js/ext/jquery/jquery-1.6.4.js
+ - jshamcrest.js
+ - jsmockito-1.0.4.js
+ - harness.js
- ../js/ext/yui/yahoo-min.js
- ../js/ext/yui/event-min.js
- - ../js/ext/jquery/jquery-1.6.4.js
- ../js/ext/jqueryui-1.8.16/jquery-ui.min.js
- ../js/ext/jquery/jquery.mobile-1.0rc2.js
- ../js/ext/yui/combo-event-dragdrop-container-min.js
@@ -28,10 +31,7 @@ load:
- ../js/Worldview.js
- ../js/Worldview/Visual.js
- ../js/Worldview/Visual/*.js
- - jshamcrest.js
- - jsmockito-1.0.4.js
- - harness.js
-
+
test:
- OpenLayers/Tile/*.js
- Worldview/*.js