Cross Reference: /yui3/src/yui/tests/index-coverage.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html class="foo">
<head>
<title>YUI Seed Tests</title>
</head>
<body class="yui3-skin-sam">
<div id="log"></div>
<div id="tester" style="visibility: hidden;">
<span>test</span>
<span>test</span>
<span>test</span>
</div>
<span id="test"></span>
<iframe name="xframe" id="xframe" src="assets/xframe.html" style="visibility: hidden;"></iframe>
<script>
//Fooling into parsing the Node.js process info
var process = {
versions: {
node: 6
},
platform: 'Win32'
};
var YUI = {};
</script>
<!-- This is the main test file, notice it's using the `yui-base` seed file
without Loader on the page, so Loader is fetched before tests are executed. -->
<script type="text/javascript" src="/build/yui-core/yui-core.js"></script>
<script type="text/javascript" src="/build/get/get.js"></script>
<script type="text/javascript" src="/build/features/features.js"></script>
<script type="text/javascript" src="/build/intl-base/intl-base.js"></script>
<script type="text/javascript" src="/build/yui-log/yui-log.js"></script>
<script type="text/javascript" src="/build/yui-later/yui-later.js"></script>
<!--script type="text/javascript" src="/build/loader/loader.js"></script-->
<script type="text/javascript">
YUI.GlobalConfig = {
modules: {
'global-mod': {
fullpath: '/assets/globalmod.js'
}
},
groups: {
//Just for code coverage..
noop: {
modules: {
noop: {
fullpath: '/noop.js'
}
}
}
}
};
var YUI_config = {
loaderPath: 'loader/loader.js',
gconfig: true,
core: ['get', 'features','intl-base','yui-log','yui-later','loader-base','loader-rollup','loader-yui3' ],
gfilter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'min'
};
YUI({
allowRollup: false,
logExclude: {Dom: true, Selector: true, Node: true, attribute: true, base: true, event: true, widget: true },
filter: YUI_config.gfilter,
modules: {
'array-test': {
fullpath: 'array-test.js',
requires: ['test']
},
'object-test': {
fullpath: 'object-test.js',
requires: ['test']
},
'lang-test': {
fullpath: 'lang-test.js',
requires: ['test']
},
'seed-tests': {
fullpath: '/seed-tests.js',
requires: [ 'test']
},
'core-tests': {
fullpath: '/core-tests.js',
requires: [ 'classnamemanager']
},
'config-test': {
fullpath: 'config-test.js'
},
'later-test': {
fullpath: 'later-test.js'
},
'namespace-test': {
fullpath: 'namespace-test.js'
},
'ua-data': {
fullpath: '/ua-data.js'
},
'ua-yui-data': {
fullpath: '/ua-yui-data.js',
requires: [ 'ua-data' ]
},
'ua-tests': {
fullpath: '/ua-tests.js',
requires: [ 'ua-data', 'ua-yui-data', 'test' ]
}
}
}).use('ua-tests', 'seed-tests', 'core-tests', 'config-test', 'later-test', 'namespace-test', 'array-test', 'object-test', 'lang-test', 'test-console', 'test', function(Y) {
new Y.Test.Console().render('#log');
//This is a YUITest hack to rename this test for reporting
Y.Test.Runner.setName('YUI Seed Fetch Loader Test Suite');
Y.Test.Runner.run();
});
</script>
</body>
</html>