-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-async-loading.html
52 lines (46 loc) · 1.56 KB
/
test-async-loading.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Modulus Tests</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="test/vendor/jasmine.css">
</head>
<body>
<h1>
Runtime Modulus Tests - Async Loading
</h1>
<h3>
These tests test the AMD/non-built modulus functionality. (runtime only, no node.js build process)
</h3>
<p>
Modules are defined by calling the modulus function. <br/>
e.g. <br/>
m(function moduleName(dep1, dep2){...});
</p>
<p>
If you are testing on a slow connection, you will see errors, as jasmine only waits 1 second for the test to complete. <br/>
You can view the <a href="?slow">slow version of the test here. </a>
</p>
<div id="log"></div>
<!-- testing library -->
<script src="test/vendor/jasmine.js"></script>
<script src="test/vendor/jasmine-html.js"></script>
<!-- your source libs here -->
<script src="src/modulus/modulus.js"></script>
<!--<script src="test/buildtime-project3/js/base/global.js"></script>-->
<!--<script src="test/buildtime-project3/js/page/pageOne.js"></script>-->
<!-- need jquery on the page so we can provide asyncFileUpload -->
<script src="test/async-loading/vendor/jquery-1.10.2.min.js"></script>
<!-- your specs -->
<script src="test/async-loading/async-loading-spec.js"></script>
<!-- start the tests -->
<script>
var env = jasmine.getEnv();
env.addReporter(new jasmine.HtmlReporter());
env.execute();
</script>
</body>
</html>