event-hover.html revision 45e6f13936658ddeb74bff8dde445a67419a1995
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync<!doctype html>
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync<html>
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync<head>
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync <title>Test Page</title>
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync <link type="text/css" rel="stylesheet" href="assets/test.css">
cce0c6096dee0c5353bb74431dc47b05f87a1c6dvboxsync</head>
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync<body class="yui3-skin-sam">
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync<div id="log"></div>
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync<script src="/build/yui/yui.js"></script>
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync<script src="event-hover-tests.js"></script>
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync<script>
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsyncYUI({
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync filter: 'raw',
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync lazyEventFacade: true,
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync useBrowserConsole: false
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync})
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync.use('console-filters', 'event-hover-tests', function (Y) {
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync new Y.Console({
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync style: 'block',
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync entryTemplate: '<div class="{entry_class} {cat_class} {src_class}">'+
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync '<pre class="{entry_content_class}">{message}</pre>'+
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync '</div>',
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync on: {
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync entry: function (e) {
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync var m = e.message,
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync node;
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync if (m.category === 'info' &&
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync /\s(?:case|suite)\s|yuitests\d+|began/.test(m.message)) {
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync m.category = 'status';
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync } else if (m.category === 'fail') {
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync this.printBuffer();
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync m.category = 'error';
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync }
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync }
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync },
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync after: {
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync render: function () {
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync this.get('contentBox').insertBefore( this._foot, this._body );
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync }
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync }
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync }).plug(Y.Plugin.ConsoleFilters, {
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync category: {
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync pass: false,
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync status: false
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync }
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync })
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync .render( "#log" );
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync Y.Test.Runner.run();
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync});
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync</script>
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync</body>
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync</html>
0b74a2f80aba476dc8be8bc1c63891fc53945986vboxsync