-
Notifications
You must be signed in to change notification settings - Fork 4
/
select.html
107 lines (82 loc) · 4.45 KB
/
select.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<!-- JSSpec -->
<link rel="stylesheet" type="text/css" href="Runner/Jasmine/jasmine.css" />
<script type="text/javascript" charset="utf-8" src="Runner/Jasmine/jasmine.js"></script>
<script type="text/javascript" charset="utf-8" src="assets/JSSpecHelpers.js"></script>
<script type="text/javascript" charset="utf-8" src="assets/simple_request.js"></script>
<script type="text/javascript" charset="utf-8" src="assets/getgetter.js"></script>
<!-- Specs -->
<script type="text/javascript" charset="utf-8" src="specs/syntax.js"></script>
<script type="text/javascript" charset="utf-8" src="specs/xml.js"></script>
<script type="text/javascript" charset="utf-8" src="specs/engine_bugs.js"></script>
<script type="text/javascript" charset="utf-8" src="specs/select_nth-child.js"></script>
<script type="text/javascript" charset="utf-8" src="specs/select_exhaustive.js"></script>
<script type="text/javascript" charset="utf-8" src="specs/mock_template.js"></script>
<script type="text/javascript" charset="utf-8" src="specs/google_closure.js"></script>
<script type="text/javascript" charset="utf-8" src="specs/prototype.js"></script>
<script type="text/javascript" charset="utf-8" src="specs/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="specs/dojo.js"></script>
<script type="text/javascript" charset="utf-8" src="specs/yui.js"></script>
<!-- Runner -->
<script type="text/javascript" charset="utf-8">
// Specific Mocks
new Mock('Closure', specsGoogleClosure);
new Mock('PrototypeJS', specsPrototype);
new Mock('jQuery', specsJQuery);
new Mock('Dojo', specsDojo);
new Mock('YUI', specsYUI);
new Mock(/Generic.*?\bHTML/, specsMockTemplate);
new Mock('xmlmock1', specsAssetsTemplateXML);
// Specific Bugs
new Mock(/\b(xml|svg|xhtml|html)\b/i, specsSelectorEngineBugs);
new Mock(/\b(xml|svg|xhtml|html)\b/i, specsBrowserBugsFixed);
// Selector Tests
new Mock(/\b(xml|svg|xhtml|html)\b/i, specsSlickDocs);
new Mock(/\b(xml|svg|xhtml|html)\b/i, specsSelectorExhaustive);
new Mock(/\b(xml|svg|xhtml|html)\b/i, specsSelectNthChild);
// XML
new Mock(/\b(xml|svg|xhtml)\b/i, function(specs,context){
Describe('XML',function(){
it['should be XML'] = function(){
value_of(global.isXML(context.document)).should_be_true();
};
});
});
new Mock(/\b(html)\b/i, function(specs,context){
Describe('HTML',function(){
it['should not be XML'] = function(){
value_of(global.isXML(context.document)).should_be_false();
};
});
});
</script>
<title>SlickSpec Select</title></head>
<body><h1 id="slickspec_logo"><a href="../">Slick<strong>Spec</strong></a> </h1>
<p id="copyright"> SlickSpec—Copyright © MooTools 2009—MIT License </p>
<!-- mocks -->
<iframe onload="Mock.register('Generic HTML (standard)',this.contentWindow)" src="mocks/template-standard.html"></iframe>
<iframe onload="Mock.register('Generic HTML (almost-standard)',this.contentWindow)" src="mocks/template-almost.html"></iframe>
<iframe onload="Mock.register('Generic HTML (quirks)',this.contentWindow)" src="mocks/template-quirks.html"></iframe>
<!--[if gt IE 8]><!-->
<iframe onload="Mock.register('Generic XHTML',this.contentWindow)" src="mocks/template.xhtml"></iframe>
<iframe onload="Mock.register('Generic XML',this.contentWindow)" src="mocks/template.xml"></iframe>
<iframe onload="Mock.register('SVG',this.contentWindow)" src="mocks/MooTools_Logo.svg"></iframe>
<!-- <![endif]-->
<!--[if gte IE 8]>
<iframe onload="Mock.register('Generic HTML (IE8 as IE7)',this.contentWindow)" src="mocks/template-ie7.html"></iframe>
<![endif]-->
<script type="text/javascript" charset="utf-8">
new Mock.Request('XML responseXML','mocks/xmlmock1.xml');
new Mock.Request('SVG responseXML','mocks/MooTools_Logo.svg');
</script>
<!-- Framework Mocks -->
<iframe onload="Mock.register('Google Closure',this.contentWindow)" src="mocks/GoogleClosure-query_test.html"></iframe>
<iframe onload="Mock.register('PrototypeJS',this.contentWindow)" src="mocks/Prototype-query_test.html"></iframe>
<iframe onload="Mock.register('jQuery',this.contentWindow)" src="mocks/jQuery-query_test.html"></iframe>
<iframe onload="Mock.register('Dojo',this.contentWindow)" src="mocks/dojo-query_test.html"></iframe>
<iframe onload="Mock.register('YUI',this.contentWindow)" src="mocks/yui-query_test.html"></iframe>
</body>
</html>