unittests/index.html
author hamidouk
Mon, 05 Dec 2011 15:44:18 +0100
branchcap-demo
changeset 408 ed1f164061a7
parent 305 e8d05c3f77ed
child 427 440ffc18f827
permissions -rw-r--r--
a specific template.
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 -->
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
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
     6
	<script src="../res/js/jquery.tools.min.js"></script>
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
     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
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    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" />
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    13
	<!-- -->	
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    14
	
83
1fb63a1a8ac3 various changes to unit tests.
hamidouk
parents: 75
diff changeset
    15
	<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
    16
	<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
    17
  
83
1fb63a1a8ac3 various changes to unit tests.
hamidouk
parents: 75
diff changeset
    18
	<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
    19
	<script src="mockTweetSerializer.js" type="text/javascript"></script>
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    20
	<script src="qunit.js" type="text/javascript"></script>
63
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
    21
	<script src="sinon.js" type="text/javascript"></script>
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
    22
	<script src="sinon-ie.js" type="text/javascript"></script>
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
    23
	<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
    24
	<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
    25
	
5fc357f62af1 added a new mock object for polemic tweet json. also fixed a couple of bugs in
hamidouk
parents: 172
diff changeset
    26
	<!-- tests -->
63
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
    27
	<script src="tests/dataloader.js" type="text/javascript"></script>
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    28
	<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
    29
	<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
    30
	<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
    31
	<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
    32
	<script src="tests/serializerFactory.js" type="text/javascript"></script>
75
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    33
	<script src="tests/widget.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
    34
	<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
    35
	<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
    36
	<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
    37
  <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
    38
	<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
    39
	<script src="tests/widgets/segmentsWidget.js" type="text/javascript"></script>
43b198dc932d reorganized the layout of the test directories to follow the layout the source
hamidouk
parents: 232
diff changeset
    40
	<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
    41
	<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
    42
	<script src="tests/widgets/sliderWidget.js" type="text/javascript"></script>
267
f84013fb19dc added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents: 257
diff changeset
    43
	<script src="tests/widgets/tweetsWidget.js" type="text/javascript"></script>
305
e8d05c3f77ed created an arrow widget.
hamidouk
parents: 283
diff changeset
    44
	<script src="tests/widgets/arrowWidget.js" type="text/javascript"></script>
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    45
</head>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    46
<script>
75
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    47
 $(document).ready(function(){ 
67
d0c32e1c7401 added a line to use jQuery (for testing purposes).
hamidouk
parents: 65
diff changeset
    48
		/* only for unit-testing ! */
d0c32e1c7401 added a line to use jQuery (for testing purposes).
hamidouk
parents: 65
diff changeset
    49
		IriSP.jQuery = jQuery;
283
39e6707ca72b more tests.
hamidouk
parents: 267
diff changeset
    50
		jQuery.fx.off = true;
39e6707ca72b more tests.
hamidouk
parents: 267
diff changeset
    51
    
63
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
    52
		test_dataloader();
252
fd84e0fb26d8 added a function to convert a number of seconds to an hour, minutes, seconds.
hamidouk
parents: 234
diff changeset
    53
		test_serializer();    
83
1fb63a1a8ac3 various changes to unit tests.
hamidouk
parents: 75
diff changeset
    54
		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
    55
		test_mockTweetSerializer();
65
6a8cae20f190 Added new unit tests and changes to the data classes.
hamidouk
parents: 63
diff changeset
    56
		test_JSONSerializer();
75
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    57
		test_serializerFactory();
252
fd84e0fb26d8 added a function to convert a number of seconds to an hour, minutes, seconds.
hamidouk
parents: 234
diff changeset
    58
    test_utils();
75
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    59
		test_widget();
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    60
		test_player_widget();
83
1fb63a1a8ac3 various changes to unit tests.
hamidouk
parents: 75
diff changeset
    61
		test_annotations_widget();
100
dbd302a995f5 added a new widget and the tests which come with it.
hamidouk
parents: 83
diff changeset
    62
		test_segments_widget();
111
df08c7f9535c added a basic layout manager.
hamidouk
parents: 100
diff changeset
    63
		test_layout();
127
3ce493c93d6c added tests for init.js.
hamidouk
parents: 111
diff changeset
    64
		test_init();
172
3ffa0e0c8803 added a "tooltip" widget. Made some changes to the css corresponding to this
hamidouk
parents: 127
diff changeset
    65
		test_tooltip_widget();
186
7a963ec3e09a added tests for the polemicWidget.
hamidouk
parents: 182
diff changeset
    66
		test_polemic_widget();
226
d1f0e604bd06 separated the slider from the playerWidget.
hamidouk
parents: 186
diff changeset
    67
    test_slider_widget();
267
f84013fb19dc added a new widget, to display the contents of tweets in a separate pane.
hamidouk
parents: 257
diff changeset
    68
    test_tweets_widget();
305
e8d05c3f77ed created an arrow widget.
hamidouk
parents: 283
diff changeset
    69
    test_arrow_widget();
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    70
});
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    71
</script>	
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    72
<body>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    73
  <h1 id="qunit-header">Metadataplayer Unit Tests</h1>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    74
 <h2 id="qunit-banner"></h2>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    75
 <div id="qunit-testrunner-toolbar"></div>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    76
 <h2 id="qunit-userAgent"></h2>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    77
 <ol id="qunit-tests"></ol>
75
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    78
 <div id="qunit-fixture" style="position: float;">
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    79
	  <div id='popcorn-div'>Popcorn div</div>
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    80
	  <div id='widget-div'></div>
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    81
 </div>
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    82
</body>
305
e8d05c3f77ed created an arrow widget.
hamidouk
parents: 283
diff changeset
    83
</html>