combo_template.html revision d5abbd43a944546d605184b6fdc0b543be31b7c5
<!doctype html>
<html>
<head>
<title>Combo Test for {KEY}</title>
</head>
<body>
<h1>Combo Test for {KEY}</h1>
<script>
var sendResult = function(d) {
if (parent.window && parent.window._yui_result) {
} 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>