forked from VoliJS/NestedTypes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.perf.html
More file actions
49 lines (44 loc) · 1.33 KB
/
tests.perf.html
File metadata and controls
49 lines (44 loc) · 1.33 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
<html>
<head>
<meta charset="utf-8"/>
<title>Models Tests</title>
<link rel="stylesheet" href="lib/test/mocha.css"/>
</head>
<body>
<div id="mocha"></div>
<script src="lib/requirejs/require.js"></script>
<script type="text/javascript">
require.config( {
paths : {
'underscore' : 'lib/underscore',
'backbone' : 'lib/backbone',
'jquery' : 'lib/jquery',
'mocha' : 'lib/test/mocha',
'chai' : 'lib/test/chai',
'sinon' : 'lib/test/sinon',
'sinon-chai' : 'lib/test/sinon-chai',
'chai-backbone' : 'lib/test/chai-backbone'
},
shim : {
'sinon' : {
exports : 'sinon'
}
}
} );
require( [ 'require', 'sinon', 'chai', 'sinon-chai', 'chai-backbone', 'mocha' ],
function( require, sinon, chai, sinonChai, chaiBackbone ){
// Chai
chai.should();
chai.use( sinonChai );
chai.use( chaiBackbone );
/*globals mocha */
mocha.setup( 'bdd' );
var search = window.location.search;
require( [ 'performance' ], function(){
mocha.run();
} );
}
);
</script>
</body>
</html>