Cross Reference: /yui3/src/yui/tests/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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!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>
<script>
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-base/yui-base.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,
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: {
'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'
}
}
}).use('seed-tests', 'core-tests', 'config-test', 'later-test', 'namespace-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>