unittests/index.html
branchpopcorn-port
changeset 75 f5a7299bd0ff
parent 67 d0c32e1c7401
child 83 1fb63a1a8ac3
--- a/unittests/index.html	Thu Oct 13 17:12:52 2011 +0200
+++ b/unittests/index.html	Thu Oct 13 17:13:44 2011 +0200
@@ -1,7 +1,13 @@
 <html>
 <head>
 	<title>Unit Tests</title>
+	<!-- the following libs are included only for unit testing -->
 	<script src="../res/js/jquery.min.js"></script>
+	<script src="../res/js/jquery.tools.min.js"></script>
+	<script src="../res/js/jquery-ui.min.js"></script>
+	<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css" type="text/css" media="screen" />
+	<!-- -->	
+	
 	<script src="../build/LdtPlayer-release.js"></script>
 	<script src="qunit.js" type="text/javascript"></script>
 	<script src="sinon.js" type="text/javascript"></script>
@@ -12,17 +18,20 @@
 	<script src="tests/serializer.js" type="text/javascript"></script>
 	<script src="tests/JSONSerializer.js" type="text/javascript"></script>
 	<script src="tests/serializerFactory.js" type="text/javascript"></script>
+	<script src="tests/widget.js" type="text/javascript"></script>
+	<script src="tests/playerWidget.js" type="text/javascript"></script>
 </head>
 <script>
- $(document).ready(function(){
+ $(document).ready(function(){ 
 		/* only for unit-testing ! */
 		IriSP.jQuery = jQuery;
 		
-		
 		test_dataloader();
 		test_serializer();
 		test_JSONSerializer();
-		test_serializerFactory()
+		test_serializerFactory();
+		test_widget();
+		test_player_widget();
 });
 </script>	
 <body>
@@ -31,6 +40,9 @@
  <div id="qunit-testrunner-toolbar"></div>
  <h2 id="qunit-userAgent"></h2>
  <ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup, will be hidden</div>
+ <div id="qunit-fixture" style="position: float;">
+	  <div id='popcorn-div'>Popcorn div</div>
+	  <div id='widget-div'></div>
+ </div>
 </body>
 </html>
\ No newline at end of file