| author | hamidouk |
| Fri, 21 Oct 2011 11:21:35 +0200 | |
| branch | popcorn-port |
| changeset 111 | df08c7f9535c |
| parent 100 | dbd302a995f5 |
| child 127 | 3ce493c93d6c |
| 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> |
12 |
<script src="mockSerializer.js" type="text/javascript"></script> |
|
| 57 | 13 |
<script src="qunit.js" type="text/javascript"></script> |
| 63 | 14 |
<script src="sinon.js" type="text/javascript"></script> |
15 |
<script src="sinon-ie.js" type="text/javascript"></script> |
|
16 |
<script src="sinon-qunit.js" type="text/javascript"></script> |
|
| 57 | 17 |
<link rel="stylesheet" href="qunit.css" type="text/css" media="screen" /> |
| 63 | 18 |
<script src="tests/dataloader.js" type="text/javascript"></script> |
| 57 | 19 |
<script src="tests/serializer.js" type="text/javascript"></script> |
| 83 | 20 |
<script src="tests/mockSerializer.js" type="text/javascript"></script> |
|
65
6a8cae20f190
Added new unit tests and changes to the data classes.
hamidouk
parents:
63
diff
changeset
|
21 |
<script src="tests/JSONSerializer.js" type="text/javascript"></script> |
|
6a8cae20f190
Added new unit tests and changes to the data classes.
hamidouk
parents:
63
diff
changeset
|
22 |
<script src="tests/serializerFactory.js" type="text/javascript"></script> |
| 75 | 23 |
<script src="tests/widget.js" type="text/javascript"></script> |
24 |
<script src="tests/playerWidget.js" type="text/javascript"></script> |
|
| 83 | 25 |
<script src="tests/annotationsWidget.js" type="text/javascript"></script> |
|
100
dbd302a995f5
added a new widget and the tests which come with it.
hamidouk
parents:
83
diff
changeset
|
26 |
<script src="tests/segmentsWidget.js" type="text/javascript"></script> |
| 111 | 27 |
<script src="tests/layout.js" type="text/javascript"></script> |
| 57 | 28 |
</head> |
29 |
<script> |
|
| 75 | 30 |
$(document).ready(function(){ |
| 67 | 31 |
/* only for unit-testing ! */ |
32 |
IriSP.jQuery = jQuery; |
|
33 |
|
|
| 63 | 34 |
test_dataloader(); |
| 57 | 35 |
test_serializer(); |
| 83 | 36 |
test_mockSerializer(); |
|
65
6a8cae20f190
Added new unit tests and changes to the data classes.
hamidouk
parents:
63
diff
changeset
|
37 |
test_JSONSerializer(); |
| 75 | 38 |
test_serializerFactory(); |
39 |
test_widget(); |
|
40 |
test_player_widget(); |
|
| 83 | 41 |
test_annotations_widget(); |
|
100
dbd302a995f5
added a new widget and the tests which come with it.
hamidouk
parents:
83
diff
changeset
|
42 |
test_segments_widget(); |
| 111 | 43 |
test_layout(); |
| 57 | 44 |
}); |
45 |
</script> |
|
46 |
<body> |
|
47 |
<h1 id="qunit-header">Metadataplayer Unit Tests</h1> |
|
48 |
<h2 id="qunit-banner"></h2> |
|
49 |
<div id="qunit-testrunner-toolbar"></div> |
|
50 |
<h2 id="qunit-userAgent"></h2> |
|
51 |
<ol id="qunit-tests"></ol> |
|
| 75 | 52 |
<div id="qunit-fixture" style="position: float;"> |
53 |
<div id='popcorn-div'>Popcorn div</div> |
|
54 |
<div id='widget-div'></div> |
|
55 |
</div> |
|
| 57 | 56 |
</body> |
57 |
</html> |