forked from selectize/selectize.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (65 loc) · 1.9 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Selectize.js Tests</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
<link rel="stylesheet" href="../examples/_normalize.css">
<link rel="stylesheet" href="vendor/mocha.css">
<link rel="stylesheet" href="../selectize.css">
<style type="text/css">
#fixture {
background: #fafafa;
padding: 30px;
text-align: center;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
</style>
<!--[if IE 8]><script src="../examples/_es5.js"></script><![endif]-->
<script src="../examples/_jquery.js"></script>
<script src="vendor/syn.js"></script>
<script src="vendor/mocha.js"></script>
<script src="vendor/chai.js"></script>
<script src="/testem.js"></script>
<script src="../selectize.js"></script>
</head>
<body>
<script>
mocha.setup({ui: 'bdd', ignoreLeaks: true});
window.expect = chai.expect;
window.assert = chai.assert;
window.test = null;
window.has_focus = function(elem) {
return !!(elem === document.activeElement);
};
window.setup_test = function(html, options, callback) {
var $select = $(html).appendTo('#fixture').selectize(options);
var instance = $select[0].selectize;
window.test = {
callback: callback,
selectize: instance,
teardown: function() {
$select.remove();
instance.$wrapper.remove();
}
};
return test;
}
</script>
<div id="mocha"></div>
<div id="fixture"></div>
<!-- begin tests -->
<script src="setup.js"></script>
<script src="api.js"></script>
<script src="events.js"></script>
<script src="interaction.js"></script>
<script src="xss.js"></script>
<!-- end tests -->
<script>
if (window.mochaPhantomJS) { mochaPhantomJS.run(); }
else { mocha.run(); }
</script>
</body>
</html>