unittests/index.html
author hamidouk
Thu, 10 Nov 2011 15:06:22 +0100
branchpopcorn-port
changeset 226 d1f0e604bd06
parent 186 7a963ec3e09a
child 232 cf3fffbb2cb0
permissions -rw-r--r--
separated the slider from the playerWidget.
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>
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
     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" />
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
     9
	<!-- -->	
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    10
	
83
1fb63a1a8ac3 various changes to unit tests.
hamidouk
parents: 75
diff changeset
    11
	<script src="../build/LdtPlayer-release.js" type="text/javascript"></script>
1fb63a1a8ac3 various changes to unit tests.
hamidouk
parents: 75
diff changeset
    12
	<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
    13
	<script src="mockTweetSerializer.js" type="text/javascript"></script>
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    14
	<script src="qunit.js" type="text/javascript"></script>
63
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
    15
	<script src="sinon.js" type="text/javascript"></script>
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
    16
	<script src="sinon-ie.js" type="text/javascript"></script>
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
    17
	<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
    18
	<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
    19
	
5fc357f62af1 added a new mock object for polemic tweet json. also fixed a couple of bugs in
hamidouk
parents: 172
diff changeset
    20
	<!-- tests -->
63
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
    21
	<script src="tests/dataloader.js" type="text/javascript"></script>
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    22
	<script src="tests/serializer.js" type="text/javascript"></script>
83
1fb63a1a8ac3 various changes to unit tests.
hamidouk
parents: 75
diff changeset
    23
	<script src="tests/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
    24
	<script src="tests/mockTweetSerializer.js" type="text/javascript"></script>
65
6a8cae20f190 Added new unit tests and changes to the data classes.
hamidouk
parents: 63
diff changeset
    25
	<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
    26
	<script src="tests/serializerFactory.js" type="text/javascript"></script>
75
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    27
	<script src="tests/widget.js" type="text/javascript"></script>
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    28
	<script src="tests/playerWidget.js" type="text/javascript"></script>
83
1fb63a1a8ac3 various changes to unit tests.
hamidouk
parents: 75
diff changeset
    29
	<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
    30
	<script src="tests/segmentsWidget.js" type="text/javascript"></script>
111
df08c7f9535c added a basic layout manager.
hamidouk
parents: 100
diff changeset
    31
	<script src="tests/layout.js" type="text/javascript"></script>
127
3ce493c93d6c added tests for init.js.
hamidouk
parents: 111
diff changeset
    32
	<script src="tests/init.js" type="text/javascript"></script>
172
3ffa0e0c8803 added a "tooltip" widget. Made some changes to the css corresponding to this
hamidouk
parents: 127
diff changeset
    33
	<script src="tests/tooltipWidget.js" type="text/javascript"></script>
186
7a963ec3e09a added tests for the polemicWidget.
hamidouk
parents: 182
diff changeset
    34
	<script src="tests/polemicWidget.js" type="text/javascript"></script>
226
d1f0e604bd06 separated the slider from the playerWidget.
hamidouk
parents: 186
diff changeset
    35
	<script src="tests/sliderWidget.js" type="text/javascript"></script>
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    36
</head>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    37
<script>
75
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    38
 $(document).ready(function(){ 
67
d0c32e1c7401 added a line to use jQuery (for testing purposes).
hamidouk
parents: 65
diff changeset
    39
		/* only for unit-testing ! */
d0c32e1c7401 added a line to use jQuery (for testing purposes).
hamidouk
parents: 65
diff changeset
    40
		IriSP.jQuery = jQuery;
d0c32e1c7401 added a line to use jQuery (for testing purposes).
hamidouk
parents: 65
diff changeset
    41
		
63
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
    42
		test_dataloader();
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    43
		test_serializer();
83
1fb63a1a8ac3 various changes to unit tests.
hamidouk
parents: 75
diff changeset
    44
		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
    45
		test_mockTweetSerializer();
65
6a8cae20f190 Added new unit tests and changes to the data classes.
hamidouk
parents: 63
diff changeset
    46
		test_JSONSerializer();
75
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    47
		test_serializerFactory();
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    48
		test_widget();
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    49
		test_player_widget();
83
1fb63a1a8ac3 various changes to unit tests.
hamidouk
parents: 75
diff changeset
    50
		test_annotations_widget();
100
dbd302a995f5 added a new widget and the tests which come with it.
hamidouk
parents: 83
diff changeset
    51
		test_segments_widget();
111
df08c7f9535c added a basic layout manager.
hamidouk
parents: 100
diff changeset
    52
		test_layout();
127
3ce493c93d6c added tests for init.js.
hamidouk
parents: 111
diff changeset
    53
		test_init();
172
3ffa0e0c8803 added a "tooltip" widget. Made some changes to the css corresponding to this
hamidouk
parents: 127
diff changeset
    54
		test_tooltip_widget();
186
7a963ec3e09a added tests for the polemicWidget.
hamidouk
parents: 182
diff changeset
    55
		test_polemic_widget();
226
d1f0e604bd06 separated the slider from the playerWidget.
hamidouk
parents: 186
diff changeset
    56
    test_slider_widget();
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    57
});
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    58
</script>	
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    59
<body>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    60
  <h1 id="qunit-header">Metadataplayer Unit Tests</h1>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    61
 <h2 id="qunit-banner"></h2>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    62
 <div id="qunit-testrunner-toolbar"></div>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    63
 <h2 id="qunit-userAgent"></h2>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    64
 <ol id="qunit-tests"></ol>
75
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    65
 <div id="qunit-fixture" style="position: float;">
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    66
	  <div id='popcorn-div'>Popcorn div</div>
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    67
	  <div id='widget-div'></div>
f5a7299bd0ff changes to the unit tests.
hamidouk
parents: 67
diff changeset
    68
 </div>
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    69
</body>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    70
</html>