Added support for events, made window.location Async (and based upon XHR), added...
[jquery.git] / build / runtest / test.js
index 1bc9ac1..00b85e4 100644 (file)
@@ -1,18 +1,21 @@
 // Init
 load("build/runtest/env.js");
-window.location = "test/index.html";
-
-// Load the test runner
-load("dist/jquery.js","build/runtest/testrunner.js");
 
-// Load the tests
-load(
-       "src/jquery/coreTest.js",
-       "src/selector/selectorTest.js",
-       "src/event/eventTest.js",
-       "src/fx/fxTest.js"
-       //"src/ajax/ajaxTest.js"
-);
+window.location = "test/index.html";
 
-// Display the results
-results();
+window.onload = function(){
+    // Load the test runner
+    load("dist/jquery.js","build/runtest/testrunner.js");
+    
+    // Load the tests
+    load(
+        "src/jquery/coreTest.js",
+        "src/selector/selectorTest.js",
+        "src/event/eventTest.js",
+        "src/fx/fxTest.js"
+        //"src/ajax/ajaxTest.js"
+    );
+    
+    // Display the results
+    results();
+};
\ No newline at end of file