~lutostag/ubuntu/utopic/maas/1.5.2

« back to all changes in this revision

Viewing changes to src/maasserver/static/jslibs/yui/3.4.1/tests/autocomplete/tests/assets/test-console.js

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2012-03-15 18:14:08 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120315181408-zgl94hzo0x4n99an
Tags: 0.1+bzr295+dfsg-0ubuntu2
* debian/patches:
  - 01-fix-database-settings.patch: Update to set PSERV_URL.
  - 02-pserv-config.patch: Set port to 8001.
* debian/maas.postinst: Run maas-import-isos on install.
* debian/control: Depends on rabbitmq-server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
YUI.add('test-console', function (Y) {
 
2
    new Y.Console({
 
3
        style: 'block',
 
4
        width: Y.UA.ie ? '100%' : 'inherit',
 
5
 
 
6
        entryTemplate:
 
7
            '<div class="{entry_class} {cat_class} {src_class}">' +
 
8
                '<pre class="{entry_content_class}">{message}</pre>' +
 
9
            '</div>',
 
10
 
 
11
        on: {
 
12
            entry: function (e) {
 
13
                var m = e.message,
 
14
                    node;
 
15
 
 
16
                if (m.category === 'info' &&
 
17
                    /\s(?:case|suite)\s|yuitests\d+|began/.test(m.message)) {
 
18
                        m.category = 'status';
 
19
                } else if (m.category === 'fail') {
 
20
                    this.printBuffer();
 
21
                    m.category = 'error';
 
22
                }
 
23
            }
 
24
        },
 
25
 
 
26
        after: {
 
27
            render: function () {
 
28
                this.get('contentBox').insertBefore(this._foot, this._body);
 
29
            }
 
30
        }
 
31
    }).plug(Y.Plugin.ConsoleFilters, {
 
32
        category: {
 
33
            pass: false,
 
34
            status: false
 
35
        }
 
36
    }).render('#log');
 
37
    
 
38
}, '@VERSION@', {requires: ['console-filters']});