unittests/index.html
author hamidouk
Tue, 15 Nov 2011 14:34:38 +0100
branchlazyload-js
changeset 245 30873147b8c7
parent 234 43b198dc932d
permissions -rw-r--r--
converted the unit tests to use lazyload.js

<html>
<head>
	<title>Unit Tests</title>
	<!-- the following libs are included only for unit testing -->
	<script src="../src/js/libs/lazyload-min.js"></script>
  <script type="text/javascript">
    LazyLoad.css(["http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css","../src/css/LdtPlayer.css",
    "qunit.css"]);
    
    LazyLoad.js([	"../res/js/jquery.min.js",
                  "../res/js/jquery.tools.min.js",
                  "../res/js/jquery-ui.min.js",
                  "../build/LdtPlayer-release.js",
                  "mockSerializer.js",
                  "mockTweetSerializer.js",
                  "qunit.js",
                  "sinon.js",
                  "sinon-ie.js",
                  "sinon-qunit.js",
                  "tests/dataloader.js",
                  "tests/serializer.js",
                  "tests/serializers/mockSerializer.js",
                  "tests/serializers/mockTweetSerializer.js",
                  "tests/serializers/JSONSerializer.js",
                  "tests/serializerFactory.js",
                  "tests/widget.js",
                  "tests/widgets/playerWidget.js",
                  "tests/widgets/annotationsWidget.js",
                  "tests/widgets/segmentsWidget.js",
                  "tests/layout.js",
                  "tests/init.js",
                  "tests/widgets/tooltipWidget.js",
                  "tests/widgets/polemicWidget.js",
                  "tests/widgets/sliderWidget.js"], function(){ 
		/* only for unit-testing ! */
		IriSP.jQuery = jQuery;
		
		test_dataloader();
		test_serializer();
		test_mockSerializer();
		test_mockTweetSerializer();
		test_JSONSerializer();
		test_serializerFactory();
		test_widget();
		test_player_widget();
		test_annotations_widget();
		test_segments_widget();
		test_layout();
		test_init();
		test_tooltip_widget();
		test_polemic_widget();
    test_slider_widget();
});
  </script>
  

</head>
<script>

</script>	
<body>
  <h1 id="qunit-header">Metadataplayer Unit Tests</h1>
 <h2 id="qunit-banner"></h2>
 <div id="qunit-testrunner-toolbar"></div>
 <h2 id="qunit-userAgent"></h2>
 <ol id="qunit-tests"></ol>
 <div id="qunit-fixture" style="position: float;">
	  <div id='popcorn-div'>Popcorn div</div>
	  <div id='widget-div'></div>
 </div>
</body>
</html>