Cross Reference: /yui3/src/event/tests/event-hover.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
998276643802ff9fb197fe220cbd9552da00a624Luke Smith<!doctype html>
998276643802ff9fb197fe220cbd9552da00a624Luke Smith<html>
998276643802ff9fb197fe220cbd9552da00a624Luke Smith<head>
998276643802ff9fb197fe220cbd9552da00a624Luke Smith <title>Test Page</title>
998276643802ff9fb197fe220cbd9552da00a624Luke Smith <link type="text/css" rel="stylesheet" href="assets/test.css">
998276643802ff9fb197fe220cbd9552da00a624Luke Smith</head>
998276643802ff9fb197fe220cbd9552da00a624Luke Smith<body class="yui3-skin-sam">
998276643802ff9fb197fe220cbd9552da00a624Luke Smith
998276643802ff9fb197fe220cbd9552da00a624Luke Smith<div id="log"></div>
998276643802ff9fb197fe220cbd9552da00a624Luke Smith<script src="/build/yui/yui.js"></script>
998276643802ff9fb197fe220cbd9552da00a624Luke Smith<script src="event-hover-tests.js"></script>
998276643802ff9fb197fe220cbd9552da00a624Luke Smith<script>
45e6f13936658ddeb74bff8dde445a67419a1995Luke SmithYUI({
472cb5998fc636f7d3cb6e3780dba7986a75e912Luke Smith filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'min',
472cb5998fc636f7d3cb6e3780dba7986a75e912Luke Smith allowRollup: false,
45e6f13936658ddeb74bff8dde445a67419a1995Luke Smith lazyEventFacade: true,
45e6f13936658ddeb74bff8dde445a67419a1995Luke Smith useBrowserConsole: false
45e6f13936658ddeb74bff8dde445a67419a1995Luke Smith})
998276643802ff9fb197fe220cbd9552da00a624Luke Smith.use('console-filters', 'event-hover-tests', function (Y) {
998276643802ff9fb197fe220cbd9552da00a624Luke Smith
998276643802ff9fb197fe220cbd9552da00a624Luke Smith new Y.Console({
998276643802ff9fb197fe220cbd9552da00a624Luke Smith style: 'block',
998276643802ff9fb197fe220cbd9552da00a624Luke Smith entryTemplate: '<div class="{entry_class} {cat_class} {src_class}">'+
998276643802ff9fb197fe220cbd9552da00a624Luke Smith '<pre class="{entry_content_class}">{message}</pre>'+
998276643802ff9fb197fe220cbd9552da00a624Luke Smith '</div>',
998276643802ff9fb197fe220cbd9552da00a624Luke Smith on: {
998276643802ff9fb197fe220cbd9552da00a624Luke Smith entry: function (e) {
998276643802ff9fb197fe220cbd9552da00a624Luke Smith var m = e.message,
998276643802ff9fb197fe220cbd9552da00a624Luke Smith node;
998276643802ff9fb197fe220cbd9552da00a624Luke Smith
998276643802ff9fb197fe220cbd9552da00a624Luke Smith if (m.category === 'info' &&
998276643802ff9fb197fe220cbd9552da00a624Luke Smith /\s(?:case|suite)\s|yuitests\d+|began/.test(m.message)) {
998276643802ff9fb197fe220cbd9552da00a624Luke Smith m.category = 'status';
998276643802ff9fb197fe220cbd9552da00a624Luke Smith } else if (m.category === 'fail') {
998276643802ff9fb197fe220cbd9552da00a624Luke Smith this.printBuffer();
998276643802ff9fb197fe220cbd9552da00a624Luke Smith m.category = 'error';
998276643802ff9fb197fe220cbd9552da00a624Luke Smith }
998276643802ff9fb197fe220cbd9552da00a624Luke Smith }
998276643802ff9fb197fe220cbd9552da00a624Luke Smith },
998276643802ff9fb197fe220cbd9552da00a624Luke Smith after: {
998276643802ff9fb197fe220cbd9552da00a624Luke Smith render: function () {
998276643802ff9fb197fe220cbd9552da00a624Luke Smith this.get('contentBox').insertBefore( this._foot, this._body );
998276643802ff9fb197fe220cbd9552da00a624Luke Smith }
998276643802ff9fb197fe220cbd9552da00a624Luke Smith }
998276643802ff9fb197fe220cbd9552da00a624Luke Smith }).plug(Y.Plugin.ConsoleFilters, {
998276643802ff9fb197fe220cbd9552da00a624Luke Smith category: {
998276643802ff9fb197fe220cbd9552da00a624Luke Smith pass: false,
998276643802ff9fb197fe220cbd9552da00a624Luke Smith status: false
998276643802ff9fb197fe220cbd9552da00a624Luke Smith }
998276643802ff9fb197fe220cbd9552da00a624Luke Smith })
998276643802ff9fb197fe220cbd9552da00a624Luke Smith .render( "#log" );
998276643802ff9fb197fe220cbd9552da00a624Luke Smith
998276643802ff9fb197fe220cbd9552da00a624Luke Smith Y.Test.Runner.run();
998276643802ff9fb197fe220cbd9552da00a624Luke Smith});
998276643802ff9fb197fe220cbd9552da00a624Luke Smith</script>
998276643802ff9fb197fe220cbd9552da00a624Luke Smith</body>
998276643802ff9fb197fe220cbd9552da00a624Luke Smith</html>