star_template.html revision 6f3ae49d2c323c8a52f4e09a0bf08f743c5f24f4
<!doctype html>
<html>
<head>
<title>Star Test for {KEY}</title>
</head>
<body>
<h1>Star Test for {KEY}</h1>
<script src="/js/{KEY_USE}.js?stamp={STAMP}" charset="utf-8"></script>
<script>
var sendResult = function(d) {
if (parent.window && parent.window._yui_result) {
} else {
console.log('FAILED!!');
console.log(d);
}
};
try {
YUI({ useBrowserConsole: false }).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>