<!doctype html>
<html>
<head>
<title>Test Page</title>
</head>
<body class="yui3-skin-sam">
<div id="log"></div>
<script>
YUI({
filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'min',
useBrowserConsole: false,
allowRollup: false
}).use('console-filters', 'async-queue-tests', function (Y) {
new Y.Console({
style: 'block',
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>