all.html revision b40f5113b5f28daabc29b6ad49c905f290cf6cb7
<!doctype html>
<html>
<head>
<title>Test Page</title>
</head>
<body class="yui3-skin-sam">
<div id="log"></div>
<script>
YUI({
filter: 'raw',
groups: {
yui3t: {
modules: {
'async-queue-test': {
path: 'queue/async-queue-test.js',
requires: ['async-queue','io-base']
},
'arraylist-test': {
path: 'collection/arraylist-test.js',
requires: ['arraylist','arraylist-add','arraylist-filter','array-invoke']
},
'console-test': {
path: 'console/console-test.js',
requires: ['console-filters']
},
'event-synthetic-test': {
path: 'event/event-synthetic-test.js',
requires: ['event-synthetic']
},
'json-test': {
path: 'json/json-test.js',
requires: ['json']
},
'slider-test': {
path: 'slider/slider-test.js',
requires: ['slider']
},
'stylesheet-test': {
path: 'stylesheet/stylesheet-test.js',
requires: ['stylesheet']
}
}
}
},
useBrowserConsole: false
}).use('test', 'node', 'console', 'selector-css3', function (Y) {
new Y.Console({
newestOnTop: false,
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.message = m.message.replace(/.*?"(.*?)".*/, '$1 ...');
node = Y.one('#log pre.yui3-console-entry-content:contains(...)');
node.get('text').replace(/\.{3}/,
'- ' + m.message.replace(/.*\n/,'')));
m.message = m.message.replace(/ at .*\n/, ' - ');
}
} else if (m.category === 'fail') {
m.category = 'error';
Y.one('#log div.yui3-console-entry:contains(...)')
.replaceClass('yui3-console-entry-info', 'yui3-console-entry-warn');
} else if (m.category === 'pass') {
}
}
}
}).render( "#log" );
var use = Y.Object.keys( Y.config.groups.yui3t.modules );
use.push(function (Y) {
});
Y.use.apply(Y, use);
});
</script>
</body>
</html>