unittests/index.html
author hamidouk
Wed, 12 Oct 2011 13:59:15 +0200
branchpopcorn-port
changeset 67 d0c32e1c7401
parent 65 6a8cae20f190
child 75 f5a7299bd0ff
permissions -rw-r--r--
added a line to use jQuery (for testing purposes).
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>
65
6a8cae20f190 Added new unit tests and changes to the data classes.
hamidouk
parents: 63
diff changeset
     4
	<script src="../res/js/jquery.min.js"></script>
63
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
     5
	<script src="../build/LdtPlayer-release.js"></script>
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
     6
	<script src="qunit.js" type="text/javascript"></script>
63
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
     7
	<script src="sinon.js" type="text/javascript"></script>
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
     8
	<script src="sinon-ie.js" type="text/javascript"></script>
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
     9
	<script src="sinon-qunit.js" type="text/javascript"></script>
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    10
	  <link rel="stylesheet" href="qunit.css" type="text/css" media="screen" />
63
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
    11
	<script src="tests/dataloader.js" type="text/javascript"></script>
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    12
	<script src="tests/serializer.js" type="text/javascript"></script>
65
6a8cae20f190 Added new unit tests and changes to the data classes.
hamidouk
parents: 63
diff changeset
    13
	<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
    14
	<script src="tests/serializerFactory.js" type="text/javascript"></script>
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    15
</head>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    16
<script>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    17
 $(document).ready(function(){
67
d0c32e1c7401 added a line to use jQuery (for testing purposes).
hamidouk
parents: 65
diff changeset
    18
		/* only for unit-testing ! */
d0c32e1c7401 added a line to use jQuery (for testing purposes).
hamidouk
parents: 65
diff changeset
    19
		IriSP.jQuery = jQuery;
d0c32e1c7401 added a line to use jQuery (for testing purposes).
hamidouk
parents: 65
diff changeset
    20
		
d0c32e1c7401 added a line to use jQuery (for testing purposes).
hamidouk
parents: 65
diff changeset
    21
		
63
acf10cf0ebd1 added sinon.js mocking library to the project
hamidouk
parents: 57
diff changeset
    22
		test_dataloader();
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    23
		test_serializer();
65
6a8cae20f190 Added new unit tests and changes to the data classes.
hamidouk
parents: 63
diff changeset
    24
		test_JSONSerializer();
6a8cae20f190 Added new unit tests and changes to the data classes.
hamidouk
parents: 63
diff changeset
    25
		test_serializerFactory()
57
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    26
});
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    27
</script>	
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    28
<body>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    29
  <h1 id="qunit-header">Metadataplayer Unit Tests</h1>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    30
 <h2 id="qunit-banner"></h2>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    31
 <div id="qunit-testrunner-toolbar"></div>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    32
 <h2 id="qunit-userAgent"></h2>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    33
 <ol id="qunit-tests"></ol>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    34
 <div id="qunit-fixture">test markup, will be hidden</div>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    35
</body>
eabfc9a2eb35 Added unit testing with QUnit.
hamidouk
parents:
diff changeset
    36
</html>