forked from andrewplummer/Sugar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
underscore.html
66 lines (64 loc) · 2.57 KB
/
underscore.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html>
<head>
<title>Sugar Core Tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="stylesheets/custom.css" type="text/css" />
<link rel="stylesheet" href="stylesheets/tooltip.css" type="text/css" />
<!-- jquery -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
<!-- test suite -->
<script type="text/javascript" src="javascripts/setup.js"></script>
<script type="text/javascript" src="javascripts/date_helper.js"></script>
<script type="text/javascript" src="javascripts/object_helper.js"></script>
<script type="text/javascript" src="javascripts/environment.js"></script>
<script type="text/javascript" src="javascripts/suite.js"></script>
<script type="text/javascript" src="javascripts/tooltip.js"></script>
<!-- sugar -->
<script type="text/javascript" src="../lib/core.js"></script>
<!--<script type="text/javascript" src="../release/sugar-edge.min.js"></script>-->
<!-- underscore -->
<script type="text/javascript" src="environments/underscore/underscore.js"></script>
<script type="text/javascript" src="environments/underscore/adapter.js"></script>
<!-- sugar -->
<script type="text/javascript">
registerEnvironment('underscore', [
{
name: 'underscore',
path: 'environments/underscore/tests/',
tests: [
//'arrays.js',
//'chaining.js',
//'collections.js',
'functions.js',
//'objects.js',
//'utility.js'
]
}
]);
</script>
</head>
<body>
<div class="underscore-test" style="display:none;">
<h1 id="qunit-header">Underscore Test Suite</h1>
<h2 id="qunit-banner"></h2>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<br />
<h1 class="qunit-header">Underscore Speed Suite</h1>
<p>
A representative sample of the functions are benchmarked here, to provide
a sense of how fast they might run in different browsers.
Each iteration runs on an array of 1000 elements.<br /><br />
For example, the 'intersect' test measures the number of times you can
find the intersection of two thousand-element arrays in one second.
</p>
</div>
<a id="chart_link" target="_blank"><img id="chart_image"></a>
<script type="text/html" id="template">
<%
if (data) { data += 12345; }; %>
<li><%= data %></li>
</script>
</body>
</html>