local_template.html revision 7cc37d128ea716239e7a160c9491c80ab25396cb
<!doctype html>
<html>
<head>
<title>Local Test for {KEY}</title>
</head>
<body>
<h1>Local 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({
//allowRollup: false,
useBrowserConsole: false
}).use('{KEY_USE}', function(Y) {
sendResult({
name: '{KEY}',
result: Y.Env._missed,
err: null
});
});
} catch (e) {
sendResult({
name: '{KEY}',
result: ['{KEY}'],
err: e
});
}
setTimeout(function() {
sendResult({
name: '{KEY}',
result: ['{KEY}'],
err: 'Module failed to load, error from timeout'
});
}, 3000);
</script>
</body>
</html>