Cross Reference: /yui3/src/yui/tests/useragent.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
<!doctype html>
<html>
<head>
<title>User Agent Tests</title>
</head>
<body class="yui3-skin-sam">
<div id="log"></div>
<script>
//Fooling into parsing the Node.js process info
var process = {
versions: {
node: 6
},
platform: 'Win32'
};
</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">
var YUI_config = {
loaderPath: 'loader/loader.js',
gconfig: true,
gfilter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'min'
};
YUI({
logExclude: {Dom: true, Selector: true, Node: true, attribute: true, base: true, event: true, widget: true },
filter: YUI_config.gfilter,
modules: {
'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', 'test-console', 'test', function(Y) {
new Y.Test.Console().render('#log');
Y.Test.Runner.run();
});
</script>
</body>
</html>