Cross Reference: /yui3/src/loader/tests/server/combo_template.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
<!doctype html>
<html>
<head>
<title>Combo Test for {KEY}</title>
</head>
<body>
<h1>Combo Test for {KEY}</h1>
<script src="/build/yui/yui.js"></script>
<script>
var sendResult = function(d) {
if (parent.window && parent.window._yui_result) {
parent.window._yui_result(d);
} else {
console.log('FAILED!!');
console.log(d);
}
};
try {
YUI({
useBrowserConsole: false,
combine: true,
//allowRollup: false,
comboBase: 'http://127.0.0.1:5000/combo?',
root: 'build/'
}).use('{KEY_USE}', function(Y) {
sendResult({
name: '{KEY}',
result: Y.Env._missed,
err: null
});
});
} catch (e) {
sendResult({
name: '{KEY}',
result: [],
err: e
});
}
setTimeout(function() {
sendResult({
name: '{KEY}',
result: [],
err: 'Module failed to load, error from timeout'
});
}, 5000);
window.onerror = function(e) {
sendResult({
name: '{KEY}',
result: [],
err: e
});
}
</script>
</body>
</html>