Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·67 lines (59 loc) · 3.17 KB
/
Copy pathindex.html
File metadata and controls
executable file
·67 lines (59 loc) · 3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Note to developers: Run the "grunt check" task to run these tests in the
PhantomJS browser. (PhantomJS is based on webkit, so it should behave similar
to safari or chrome.) To run in other browsers, run "grunt" (the default task)
to compile crafty.js, then open this HTML file to run the tests. However,
you may need to change browser security settings:
* To run the tests in firefox: First you need to go to about:config in firefox, and
switch "security.fileuri.strict_origin_policy" to false. [This only changes the
security settings when firefox opens an HTML file saved on your computer; it does
not affect your security when you are browsing the internet.]
* To run the tests in chrome: You need to pass a flag when opening chrome.
For example, in Linux, you would run this command in a Linux terminal:
chromium-browser /path/to/core.html --allow-file-access-from-files
-->
<!-- DEPENDCIES -->
<link rel="stylesheet" href="./lib/qunit.css" type="text/css" media="screen" />
<script type="text/javascript" src="./lib/jquery.min.js"></script>
<script type="text/javascript" src="./lib/qunit.js"></script>
<script type="text/javascript" src="./lib/modernizr-2.7.1.min.js"></script>
<script type="text/javascript" src="./lib/helperFunctions.js"></script>
</head>
<body>
<h1 id="qunit-header">Crafty.js Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">test markup, will be hidden</div>
<!-- CRAFTY.JS -->
<script type="text/javascript" src="../crafty.js"></script>
<script type="text/javascript">
Crafty.init(500,500);
</script>
<!-- COMMON TEST CODE -->
<script type="text/javascript" src="./common.js"></script>
<!-- ALL THE TESTS -->
<script type="text/javascript" src="./color.js"></script>
<script type="text/javascript" src="./core.js"></script>
<script type="text/javascript" src="./2d.js"></script>
<script type="text/javascript" src="./audio.js"></script>
<script type="text/javascript" src="./dom.js"></script>
<script type="text/javascript" src="./events.js"></script>
<script type="text/javascript" src="./isometric.js"></script>
<script type="text/javascript" src="./loader.js"></script>
<script type="text/javascript" src="./math.js"></script>
<script type="text/javascript" src="./stage.js"></script>
<script type="text/javascript" src="./text.js"></script>
<script type="text/javascript" src="./tween.js"></script>
<script type="text/javascript" src="./storage.js"></script>
<script type="text/javascript" src="./model.js"></script>
<script type="text/javascript" src="./time.js"></script>
<script type="text/javascript" src="./animation/sprite-animation.js"></script>
<script type="text/javascript" src="./2D/collision/collision.js"></script>
</body>
</html>