b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith<!doctype html>
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith<html>
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith<head>
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith <title>Test Page</title>
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith <link type="text/css" rel="stylesheet" href="assets/test.css">
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith</head>
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith<body class="yui3-skin-sam">
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith<div id="log"></div>
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith<script src="/build/yui/yui.js"></script>
998276643802ff9fb197fe220cbd9552da00a624Luke Smith<script src="async-queue-tests.js"></script>
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith<script>
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke SmithYUI({
c77d701a41f1b77424b988c2e63f2a8e6829c7e6Luke Smith filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'min',
c77d701a41f1b77424b988c2e63f2a8e6829c7e6Luke Smith useBrowserConsole: false,
c77d701a41f1b77424b988c2e63f2a8e6829c7e6Luke Smith allowRollup: false
998276643802ff9fb197fe220cbd9552da00a624Luke Smith}).use('console-filters', 'async-queue-tests', function (Y) {
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith new Y.Console({
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith style: 'block',
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith entryTemplate: '<div class="{entry_class} {cat_class} {src_class}">'+
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith '<pre class="{entry_content_class}">{message}</pre>'+
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith '</div>',
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith on: {
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith entry: function (e) {
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith var m = e.message,
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith node;
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith if (m.category === 'info' &&
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith /\s(?:case|suite)\s|yuitests\d+|began/.test(m.message)) {
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith m.category = 'status';
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith } else if (m.category === 'fail') {
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith this.printBuffer();
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith m.category = 'error';
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith }
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith }
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith },
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith after: {
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith render: function () {
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith this.get('contentBox').insertBefore( this._foot, this._body );
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith }
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith }
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith }).plug(Y.Plugin.ConsoleFilters, {
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith category: {
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith pass: false,
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith status: false
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith }
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith })
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith .render( "#log" );
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith Y.Test.Runner.run();
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith});
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith</script>
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith</body>
b40f5113b5f28daabc29b6ad49c905f290cf6cb7Luke Smith</html>