async-queue.html revision a6b6d4f21a57f1f83d714dc2491985e1569910ef
<!doctype html>
<html>
<head>
<title>Test Page</title>
</head>
<body class="yui3-skin-sam">
<div id="log"></div>
<script>
YUI({
filter: 'raw',
modules: {
'async-queue-test': {
fullpath: 'testsuite.js',
requires: ['async-queue','io-base', 'test']
}
},
useBrowserConsole: false
}).use('console-filters', 'async-queue-test', function (Y) {
new Y.Console({
style: 'block',
//width: 'inherit',
entryTemplate: '<div class="{entry_class} {cat_class} {src_class}">'+
'<pre class="{entry_content_class}">{message}</pre>'+
'</div>',
on: {
entry: function (e) {
var m = e.message,
node;
if (m.category === 'info' &&
m.category = 'status';
} else if (m.category === 'fail') {
m.category = 'error';
}
}
},
after: {
render: function () {
this.get('contentBox').insertBefore( this._foot, this._body );
}
}
}).plug(Y.Plugin.ConsoleFilters, {
category: {
pass: false,
status: false
}
})
.render( "#log" );
});
</script>
</body>
</html>