| author | hamidouk |
| Mon, 14 Nov 2011 12:26:17 +0100 | |
| branch | popcorn-port |
| changeset 234 | 43b198dc932d |
| parent 232 | cf3fffbb2cb0 |
| child 241 | e321b1140949 |
| child 245 | 30873147b8c7 |
| child 252 | fd84e0fb26d8 |
| permissions | -rw-r--r-- |
| 57 | 1 |
<html> |
2 |
<head> |
|
3 |
<title>Unit Tests</title> |
|
| 75 | 4 |
<!-- the following libs are included only for unit testing --> |
|
65
6a8cae20f190
Added new unit tests and changes to the data classes.
hamidouk
parents:
63
diff
changeset
|
5 |
<script src="../res/js/jquery.min.js"></script> |
| 75 | 6 |
<script src="../res/js/jquery.tools.min.js"></script> |
7 |
<script src="../res/js/jquery-ui.min.js"></script> |
|
8 |
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css" type="text/css" media="screen" /> |
|
9 |
<!-- --> |
|
10 |
||
| 83 | 11 |
<script src="../build/LdtPlayer-release.js" type="text/javascript"></script> |
|
232
cf3fffbb2cb0
forgot to reference the player's stylesheet in the unit tests.
hamidouk
parents:
226
diff
changeset
|
12 |
<link rel="stylesheet" href="../src/css/LdtPlayer.css" type="text/css" media="screen" /> |
|
cf3fffbb2cb0
forgot to reference the player's stylesheet in the unit tests.
hamidouk
parents:
226
diff
changeset
|
13 |
|
| 83 | 14 |
<script src="mockSerializer.js" type="text/javascript"></script> |
|
182
5fc357f62af1
added a new mock object for polemic tweet json. also fixed a couple of bugs in
hamidouk
parents:
172
diff
changeset
|
15 |
<script src="mockTweetSerializer.js" type="text/javascript"></script> |
| 57 | 16 |
<script src="qunit.js" type="text/javascript"></script> |
| 63 | 17 |
<script src="sinon.js" type="text/javascript"></script> |
18 |
<script src="sinon-ie.js" type="text/javascript"></script> |
|
19 |
<script src="sinon-qunit.js" type="text/javascript"></script> |
|
|
182
5fc357f62af1
added a new mock object for polemic tweet json. also fixed a couple of bugs in
hamidouk
parents:
172
diff
changeset
|
20 |
<link rel="stylesheet" href="qunit.css" type="text/css" media="screen" /> |
|
5fc357f62af1
added a new mock object for polemic tweet json. also fixed a couple of bugs in
hamidouk
parents:
172
diff
changeset
|
21 |
|
|
5fc357f62af1
added a new mock object for polemic tweet json. also fixed a couple of bugs in
hamidouk
parents:
172
diff
changeset
|
22 |
<!-- tests --> |
| 63 | 23 |
<script src="tests/dataloader.js" type="text/javascript"></script> |
| 57 | 24 |
<script src="tests/serializer.js" type="text/javascript"></script> |
|
234
43b198dc932d
reorganized the layout of the test directories to follow the layout the source
hamidouk
parents:
232
diff
changeset
|
25 |
<script src="tests/serializers/mockSerializer.js" type="text/javascript"></script> |
|
43b198dc932d
reorganized the layout of the test directories to follow the layout the source
hamidouk
parents:
232
diff
changeset
|
26 |
<script src="tests/serializers/mockTweetSerializer.js" type="text/javascript"></script> |
|
43b198dc932d
reorganized the layout of the test directories to follow the layout the source
hamidouk
parents:
232
diff
changeset
|
27 |
<script src="tests/serializers/JSONSerializer.js" type="text/javascript"></script> |
|
65
6a8cae20f190
Added new unit tests and changes to the data classes.
hamidouk
parents:
63
diff
changeset
|
28 |
<script src="tests/serializerFactory.js" type="text/javascript"></script> |
| 75 | 29 |
<script src="tests/widget.js" type="text/javascript"></script> |
|
234
43b198dc932d
reorganized the layout of the test directories to follow the layout the source
hamidouk
parents:
232
diff
changeset
|
30 |
<script src="tests/widgets/playerWidget.js" type="text/javascript"></script> |
|
43b198dc932d
reorganized the layout of the test directories to follow the layout the source
hamidouk
parents:
232
diff
changeset
|
31 |
<script src="tests/widgets/annotationsWidget.js" type="text/javascript"></script> |
|
43b198dc932d
reorganized the layout of the test directories to follow the layout the source
hamidouk
parents:
232
diff
changeset
|
32 |
<script src="tests/widgets/segmentsWidget.js" type="text/javascript"></script> |
| 111 | 33 |
<script src="tests/layout.js" type="text/javascript"></script> |
| 127 | 34 |
<script src="tests/init.js" type="text/javascript"></script> |
|
234
43b198dc932d
reorganized the layout of the test directories to follow the layout the source
hamidouk
parents:
232
diff
changeset
|
35 |
<script src="tests/widgets/tooltipWidget.js" type="text/javascript"></script> |
|
43b198dc932d
reorganized the layout of the test directories to follow the layout the source
hamidouk
parents:
232
diff
changeset
|
36 |
<script src="tests/widgets/polemicWidget.js" type="text/javascript"></script> |
|
43b198dc932d
reorganized the layout of the test directories to follow the layout the source
hamidouk
parents:
232
diff
changeset
|
37 |
<script src="tests/widgets/sliderWidget.js" type="text/javascript"></script> |
| 57 | 38 |
</head> |
39 |
<script> |
|
| 75 | 40 |
$(document).ready(function(){ |
| 67 | 41 |
/* only for unit-testing ! */ |
42 |
IriSP.jQuery = jQuery; |
|
43 |
|
|
| 63 | 44 |
test_dataloader(); |
| 57 | 45 |
test_serializer(); |
| 83 | 46 |
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
|
47 |
test_mockTweetSerializer(); |
|
65
6a8cae20f190
Added new unit tests and changes to the data classes.
hamidouk
parents:
63
diff
changeset
|
48 |
test_JSONSerializer(); |
| 75 | 49 |
test_serializerFactory(); |
50 |
test_widget(); |
|
51 |
test_player_widget(); |
|
| 83 | 52 |
test_annotations_widget(); |
|
100
dbd302a995f5
added a new widget and the tests which come with it.
hamidouk
parents:
83
diff
changeset
|
53 |
test_segments_widget(); |
| 111 | 54 |
test_layout(); |
| 127 | 55 |
test_init(); |
|
172
3ffa0e0c8803
added a "tooltip" widget. Made some changes to the css corresponding to this
hamidouk
parents:
127
diff
changeset
|
56 |
test_tooltip_widget(); |
| 186 | 57 |
test_polemic_widget(); |
| 226 | 58 |
test_slider_widget(); |
| 57 | 59 |
}); |
60 |
</script> |
|
61 |
<body> |
|
62 |
<h1 id="qunit-header">Metadataplayer Unit Tests</h1> |
|
63 |
<h2 id="qunit-banner"></h2> |
|
64 |
<div id="qunit-testrunner-toolbar"></div> |
|
65 |
<h2 id="qunit-userAgent"></h2> |
|
66 |
<ol id="qunit-tests"></ol> |
|
| 75 | 67 |
<div id="qunit-fixture" style="position: float;"> |
68 |
<div id='popcorn-div'>Popcorn div</div> |
|
69 |
<div id='widget-div'></div> |
|
70 |
</div> |
|
| 57 | 71 |
</body> |
72 |
</html> |