| author | hamidouk |
| Tue, 15 Nov 2011 14:34:38 +0100 | |
| branch | lazyload-js |
| changeset 245 | 30873147b8c7 |
| parent 234 | 43b198dc932d |
| 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 --> |
| 245 | 5 |
<script src="../src/js/libs/lazyload-min.js"></script> |
6 |
<script type="text/javascript"> |
|
7 |
LazyLoad.css(["http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css","../src/css/LdtPlayer.css", |
|
8 |
"qunit.css"]); |
|
9 |
|
|
10 |
LazyLoad.js([ "../res/js/jquery.min.js", |
|
11 |
"../res/js/jquery.tools.min.js", |
|
12 |
"../res/js/jquery-ui.min.js", |
|
13 |
"../build/LdtPlayer-release.js", |
|
14 |
"mockSerializer.js", |
|
15 |
"mockTweetSerializer.js", |
|
16 |
"qunit.js", |
|
17 |
"sinon.js", |
|
18 |
"sinon-ie.js", |
|
19 |
"sinon-qunit.js", |
|
20 |
"tests/dataloader.js", |
|
21 |
"tests/serializer.js", |
|
22 |
"tests/serializers/mockSerializer.js", |
|
23 |
"tests/serializers/mockTweetSerializer.js", |
|
24 |
"tests/serializers/JSONSerializer.js", |
|
25 |
"tests/serializerFactory.js", |
|
26 |
"tests/widget.js", |
|
27 |
"tests/widgets/playerWidget.js", |
|
28 |
"tests/widgets/annotationsWidget.js", |
|
29 |
"tests/widgets/segmentsWidget.js", |
|
30 |
"tests/layout.js", |
|
31 |
"tests/init.js", |
|
32 |
"tests/widgets/tooltipWidget.js", |
|
33 |
"tests/widgets/polemicWidget.js", |
|
34 |
"tests/widgets/sliderWidget.js"], function(){ |
|
| 67 | 35 |
/* only for unit-testing ! */ |
36 |
IriSP.jQuery = jQuery; |
|
37 |
|
|
| 63 | 38 |
test_dataloader(); |
| 57 | 39 |
test_serializer(); |
| 83 | 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 | 43 |
test_serializerFactory(); |
44 |
test_widget(); |
|
45 |
test_player_widget(); |
|
| 83 | 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 | 48 |
test_layout(); |
| 127 | 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 | 51 |
test_polemic_widget(); |
| 226 | 52 |
test_slider_widget(); |
| 57 | 53 |
}); |
| 245 | 54 |
</script> |
55 |
||
56 |
||
57 |
</head> |
|
58 |
<script> |
|
59 |
||
| 57 | 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> |