Refactored test suite to allow async tests (use stop() before starting an async reque...
[jquery.git] / build.xml
index 4aa5007..0a01b5a 100644 (file)
--- a/build.xml
+++ b/build.xml
     <target name="test" depends="jquery">
         <echo message="Building Test Suite" />
         <delete dir="${TEST_DIR}" />
-        <mkdir dir="${TEST_DIR}/js" />\r
-       <copy todir="${TEST_DIR}" file="${BUILD_DIR}/test/index.html" />
-        <copy todir="${TEST_DIR}/js">
-            <fileset dir="${BUILD_DIR}/test/js">
-                <include name="**/*.js"/>
-            </fileset>
-        </copy>
-
+       <mkdir dir="${TEST_DIR}/data" />\r
+        <copy todir="${TEST_DIR}/data">\r
+               <fileset dir="${BUILD_DIR}/test/data/" />\r
+       </copy>\r
         <java jar="${JAR}" fork="true">
             <arg value="${BUILD_DIR}/test/test.js" />
             <arg value="${JQ}" />
@@ -81,6 +77,7 @@
         <echo message="Building Documentation" />
         <delete dir="${DOCS_DIR}" />
         <mkdir dir="${DOCS_DIR}/data" />
+       <copy todir="${DOCS_DIR}" file="${BUILD_DIR}/docs/.htaccess" />
         <mkdir dir="${DOCS_DIR}/js" />
         <copy todir="${DOCS_DIR}/js" >
             <fileset dir="${BUILD_DIR}/docs/js">