forked from Khan/khan-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (53 loc) · 1.95 KB
/
index.html
File metadata and controls
56 lines (53 loc) · 1.95 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Utility Test Suite</title>
<!-- Include dependencies -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>
var Khan = {
query: {},
scriptWait: function(){},
// This is a random number pulled out of my 32-bit pseudo-random hat so that tests are always the same
randomSeed: 0x4e27b400
};
var KhanUtil = Khan.Util = {
random: function() {
// Robert Jenkins' 32 bit integer hash function.
var seed = Khan.randomSeed;
seed = ( ( seed + 0x7ed55d16 ) + ( seed << 12 ) ) & 0xffffffff;
seed = ( ( seed ^ 0xc761c23c ) ^ ( seed >>> 19 ) ) & 0xffffffff;
seed = ( ( seed + 0x165667b1 ) + ( seed << 5 ) ) & 0xffffffff;
seed = ( ( seed + 0xd3a2646c ) ^ ( seed << 9 ) ) & 0xffffffff;
seed = ( ( seed + 0xfd7046c5 ) + ( seed << 3 ) ) & 0xffffffff;
seed = ( ( seed ^ 0xb55a4f09 ) ^ ( seed >>> 16 ) ) & 0xffffffff;
return ( Khan.randomSeed = ( seed & 0xfffffff ) ) / 0x10000000;
}
};
</script>
<script src="../underscore.js"></script>
<!-- Include QUnit -->
<link rel="stylesheet" href="../../test/qunit/qunit/qunit.css" type="text/css" media="screen">
<script src="../../test/qunit/qunit/qunit.js"></script>
<!-- Include utility files and tests. -->
<script src="../math.js"></script>
<script src="math.js"></script>
<script src="../expressions.js"></script>
<script src="expressions.js"></script>
<script src="../polynomials.js"></script>
<script src="polynomials.js"></script>
<script src="../calculus.js"></script>
<script src="calculus.js"></script>
<script src="../tmpl.js"></script>
<script src="tmpl.js"></script>
</head>
<body>
<h1 id="qunit-header">Utility 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</div>
</body>
</html>