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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
     1
<html>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
     2
<head>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
     3
	<title>Unit Tests</title>
75
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
     4
	<!-- the following libs are included only for unit testing -->
245
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
     5
	<script src="../src/js/libs/lazyload-min.js"></script>
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
     6
  <script type="text/javascript">
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
     7
    LazyLoad.css(["http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css","../src/css/LdtPlayer.css",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
     8
    "qunit.css"]);
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
     9
    
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    10
    LazyLoad.js([	"../res/js/jquery.min.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    11
                  "../res/js/jquery.tools.min.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    12
                  "../res/js/jquery-ui.min.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    13
                  "../build/LdtPlayer-release.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    14
                  "mockSerializer.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    15
                  "mockTweetSerializer.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    16
                  "qunit.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    17
                  "sinon.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    18
                  "sinon-ie.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    19
                  "sinon-qunit.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    20
                  "tests/dataloader.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    21
                  "tests/serializer.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    22
                  "tests/serializers/mockSerializer.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    23
                  "tests/serializers/mockTweetSerializer.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    24
                  "tests/serializers/JSONSerializer.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    25
                  "tests/serializerFactory.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    26
                  "tests/widget.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    27
                  "tests/widgets/playerWidget.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    28
                  "tests/widgets/annotationsWidget.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    29
                  "tests/widgets/segmentsWidget.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    30
                  "tests/layout.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    31
                  "tests/init.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    32
                  "tests/widgets/tooltipWidget.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    33
                  "tests/widgets/polemicWidget.js",
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    34
                  "tests/widgets/sliderWidget.js"], function(){ 
67
d0c32e1c7401 added a line to use jQuery (for testing purposes).
hamidouk
parents: 65
diff changeset
    35
		/* only for unit-testing ! */
d0c32e1c7401 added a line to use jQuery (for testing purposes).
hamidouk
parents: 65
diff changeset
    36
		IriSP.jQuery = jQuery;
d0c32e1c7401 added a line to use jQuery (for testing purposes).
hamidouk
parents: 65
diff changeset
    37
		
63
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
    38
		test_dataloader();
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    39
		test_serializer();
83
1fb63a1a8ac3 various changes to unit tests.
hamidouk
parents: 75
diff changeset
    40
		test_mockSerializer();
182
5fc357f62af1 added a new mock object for polemic tweet json. also fixed a couple of bugs in
hamidouk
parents: 172
diff changeset
    41
		test_mockTweetSerializer();
65
6a8cae20f190 Added new unit tests and changes to the data classes.
hamidouk
parents: 63
diff changeset
    42
		test_JSONSerializer();
75
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    43
		test_serializerFactory();
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    44
		test_widget();
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    45
		test_player_widget();
83
1fb63a1a8ac3 various changes to unit tests.
hamidouk
parents: 75
diff changeset
    46
		test_annotations_widget();
100
dbd302a995f5 added a new widget and the tests which come with it.
hamidouk
parents: 83
diff changeset
    47
		test_segments_widget();
111
df08c7f9535c added a basic layout manager.
hamidouk
parents: 100
diff changeset
    48
		test_layout();
127
3ce493c93d6c added tests for init.js.
hamidouk
parents: 111
diff changeset
    49
		test_init();
172
3ffa0e0c8803 added a "tooltip" widget. Made some changes to the css corresponding to this
hamidouk
parents: 127
diff changeset
    50
		test_tooltip_widget();
186
7a963ec3e09a added tests for the polemicWidget.
hamidouk
parents: 182
diff changeset
    51
		test_polemic_widget();
226
d1f0e604bd06 separated the slider from the playerWidget.
hamidouk
parents: 186
diff changeset
    52
    test_slider_widget();
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    53
});
245
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    54
  </script>
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    55
  
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    56
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    57
</head>
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    58
<script>
30873147b8c7 converted the unit tests to use lazyload.js
hamidouk
parents: 234
diff changeset
    59
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    60
</script>	
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    61
<body>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    62
  <h1 id="qunit-header">Metadataplayer Unit Tests</h1>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    63
 <h2 id="qunit-banner"></h2>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    64
 <div id="qunit-testrunner-toolbar"></div>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    65
 <h2 id="qunit-userAgent"></h2>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    66
 <ol id="qunit-tests"></ol>
75
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    67
 <div id="qunit-fixture" style="position: float;">
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    68
	  <div id='popcorn-div'>Popcorn div</div>
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    69
	  <div id='widget-div'></div>
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    70
 </div>
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    71
</body>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    72
</html>