fail.html revision 7caa6a0339dc0a35e4289296718da86ebea4cb9e
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type="text/javascript" src="/build/simpleyui/simpleyui-debug.js"></script>
</head>
<body>
<script type="text/javascript">
YUI({
modules: {
filenotfound: {
path: 'no_dice.js'
},
failstoregister: {
fullpath: 'nothing.js'
}
}
, requireRegistration: true,
allowRollup: false,
loadErrorFn: function(Y, callback, result, args) {
Y.log('load fail');
Y.log(Y.Array(arguments));
}
// }).use('node', 'failstoregister', function(Y) { /* fails if requireRegistration is true */
}).use('event-hover', function(Y) { /* succeeds with a warning because this is a configuration problem, not a runtime problem */
// }).use('node', 'filenotfound', function(Y) { /* fails in FireFox; other browsers can timeout if defined */
// If loadErrorFn is defined, this will *not* be executed unless loader succeeds. If loadErrorFn is not defined, this is always executed as long as attach doesn't error
Y.log('done');
})
</script>
</body>
</html>