| author | hamidouk |
| Fri, 27 Jan 2012 17:10:33 +0100 | |
| branch | popcorn-port |
| changeset 739 | d28b9acfc445 |
| parent 530 | 3cc4a789dae7 |
| 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> |
|
|
257
d62fe14973a9
added jquery plugin to simulate jquery ui interactions.
hamidouk
parents:
252
diff
changeset
|
8 |
|
|
d62fe14973a9
added jquery plugin to simulate jquery ui interactions.
hamidouk
parents:
252
diff
changeset
|
9 |
<!-- used by the jquery team to simulate events --> |
|
d62fe14973a9
added jquery plugin to simulate jquery ui interactions.
hamidouk
parents:
252
diff
changeset
|
10 |
<script src="jquery.simulate.js"></script> |
|
d62fe14973a9
added jquery plugin to simulate jquery ui interactions.
hamidouk
parents:
252
diff
changeset
|
11 |
|
| 75 | 12 |
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css" type="text/css" media="screen" /> |
13 |
<!-- --> |
|
14 |
||
| 83 | 15 |
<script src="../build/LdtPlayer-release.js" type="text/javascript"></script> |
| 503 | 16 |
<script src="../src/js/libs/popcorn.js" type="text/javascript"></script> |
17 |
<script src="../src/js/libs/popcorn.code.js" type="text/javascript"></script> |
|
18 |
<script src="../src/js/libs/popcorn.youtube.js" type="text/javascript"></script> |
|
19 |
<script src="../src/js/libs/raphael.js" type="text/javascript"></script> |
|
| 530 | 20 |
<script src="../src/js/libs/jquery.sparkline.js" type="text/javascript"></script> |
21 |
<script src="../src/js/libs/underscore.js" type="text/javascript"></script> |
|
|
232
cf3fffbb2cb0
forgot to reference the player's stylesheet in the unit tests.
hamidouk
parents:
226
diff
changeset
|
22 |
<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
|
23 |
|
| 83 | 24 |
<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
|
25 |
<script src="mockTweetSerializer.js" type="text/javascript"></script> |
| 57 | 26 |
<script src="qunit.js" type="text/javascript"></script> |
| 63 | 27 |
<script src="sinon.js" type="text/javascript"></script> |
28 |
<script src="sinon-ie.js" type="text/javascript"></script> |
|
29 |
<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
|
30 |
<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
|
31 |
|
|
5fc357f62af1
added a new mock object for polemic tweet json. also fixed a couple of bugs in
hamidouk
parents:
172
diff
changeset
|
32 |
<!-- tests --> |
| 63 | 33 |
<script src="tests/dataloader.js" type="text/javascript"></script> |
| 57 | 34 |
<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
|
35 |
<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
|
36 |
<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
|
37 |
<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
|
38 |
<script src="tests/serializerFactory.js" type="text/javascript"></script> |
| 75 | 39 |
<script src="tests/widget.js" type="text/javascript"></script> |
| 461 | 40 |
<script src="tests/module.js" type="text/javascript"></script> |
|
252
fd84e0fb26d8
added a function to convert a number of seconds to an hour, minutes, seconds.
hamidouk
parents:
234
diff
changeset
|
41 |
<script src="tests/utils.js" type="text/javascript"></script> |
|
fd84e0fb26d8
added a function to convert a number of seconds to an hour, minutes, seconds.
hamidouk
parents:
234
diff
changeset
|
42 |
<script src="tests/layout.js" type="text/javascript"></script> |
|
fd84e0fb26d8
added a function to convert a number of seconds to an hour, minutes, seconds.
hamidouk
parents:
234
diff
changeset
|
43 |
<script src="tests/init.js" type="text/javascript"></script> |
|
fd84e0fb26d8
added a function to convert a number of seconds to an hour, minutes, seconds.
hamidouk
parents:
234
diff
changeset
|
44 |
<script src="tests/widgets/playerWidget.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
|
45 |
<script src="tests/widgets/annotationsWidget.js" type="text/javascript"></script> |
| 432 | 46 |
<script src="tests/widgets/segmentsWidget.js" type="text/javascript"></script> |
| 428 | 47 |
<script src="tests/widgets/tooltipWidget.js" type="text/javascript"></script> |
48 |
<script src="tests/widgets/polemicWidget.js" type="text/javascript"></script> |
|
49 |
<script src="tests/widgets/sliderWidget.js" type="text/javascript"></script> |
|
| 432 | 50 |
<script src="tests/widgets/tweetsWidget.js" type="text/javascript"></script> |
| 530 | 51 |
<script src="tests/widgets/arrowWidget.js" type="text/javascript"></script> |
52 |
<script src="tests/widgets/sparklineWidget.js" type="text/javascript"></script> |
|
53 |
||
| 57 | 54 |
</head> |
55 |
<script> |
|
| 75 | 56 |
$(document).ready(function(){ |
| 67 | 57 |
/* only for unit-testing ! */ |
| 530 | 58 |
IriSP.underscore = _; |
59 |
IriSP.jQuery = jQuery; |
|
| 283 | 60 |
jQuery.fx.off = true; |
61 |
|
|
| 63 | 62 |
test_dataloader(); |
|
252
fd84e0fb26d8
added a function to convert a number of seconds to an hour, minutes, seconds.
hamidouk
parents:
234
diff
changeset
|
63 |
test_serializer(); |
| 83 | 64 |
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
|
65 |
test_mockTweetSerializer(); |
|
65
6a8cae20f190
Added new unit tests and changes to the data classes.
hamidouk
parents:
63
diff
changeset
|
66 |
test_JSONSerializer(); |
| 75 | 67 |
test_serializerFactory(); |
|
252
fd84e0fb26d8
added a function to convert a number of seconds to an hour, minutes, seconds.
hamidouk
parents:
234
diff
changeset
|
68 |
test_utils(); |
| 75 | 69 |
test_widget(); |
| 461 | 70 |
test_module(); |
| 75 | 71 |
test_player_widget(); |
| 83 | 72 |
test_annotations_widget(); |
| 428 | 73 |
// test_segments_widget(); |
| 111 | 74 |
test_layout(); |
| 127 | 75 |
test_init(); |
|
172
3ffa0e0c8803
added a "tooltip" widget. Made some changes to the css corresponding to this
hamidouk
parents:
127
diff
changeset
|
76 |
test_tooltip_widget(); |
| 186 | 77 |
test_polemic_widget(); |
| 226 | 78 |
test_slider_widget(); |
| 428 | 79 |
// test_tweets_widget(); |
| 530 | 80 |
test_arrow_widget(); |
81 |
test_sparkline_widget(); |
|
| 57 | 82 |
}); |
83 |
</script> |
|
84 |
<body> |
|
| 428 | 85 |
<h1 id="qunit-header">Metadataplayer Unit Tests</h1> |
| 57 | 86 |
<h2 id="qunit-banner"></h2> |
87 |
<div id="qunit-testrunner-toolbar"></div> |
|
88 |
<h2 id="qunit-userAgent"></h2> |
|
89 |
<ol id="qunit-tests"></ol> |
|
| 75 | 90 |
<div id="qunit-fixture" style="position: float;"> |
| 428 | 91 |
<video id='popcorn-div' style="display:;width:300px" controls preload="auto"> |
92 |
<source id='mp4' src="../test/trailer.mp4" type='video/mp4; codecs="avc1, mp4a"'> |
|
93 |
<source id='ogv' src="../test/trailer.ogv" type='video/ogg; codecs="theora, vorbis"'> |
|
94 |
<source id='webm' src="../test/trailer.webm" type='video/webm; codecs="vp8, vorbis"'> |
|
95 |
<p>Your user agent does not support the HTML5 Video element.</p> |
|
96 |
</video> |
|
97 |
||
98 |
<div id='widget-div'></div> |
|
| 75 | 99 |
</div> |
| 57 | 100 |
</body> |
| 305 | 101 |
</html> |