THRIFT-1247 JavaScript unit test with phantomjs
update: unit test depends on init, move testcases from test.html to test.js

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1152486 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/js/test/build.xml b/lib/js/test/build.xml
index c052e64..87fb231 100755
--- a/lib/js/test/build.xml
+++ b/lib/js/test/build.xml
@@ -119,7 +119,7 @@
     </exec>
   </target>
 
-  <target name="unittest" description="do unit tests with headless browser phantomjs" depends="phantomjs, jstest" if="phantomjs.present">
+  <target name="unittest" description="do unit tests with headless browser phantomjs" depends="init, phantomjs, jstest" if="phantomjs.present">
     <parallel>
       <exec executable="Xvfb" spawn="true" failonerror="false">
         <arg line=":99" />