~ubuntu-branches/ubuntu/precise/maas/precise-updates

« back to all changes in this revision

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

Tags: 1.2+bzr1373+dfsg-0ubuntu1~12.04.4
* SECURITY UPDATE: failure to authenticate downloaded content (LP: #1039513)
  - debian/patches/CVE-2013-1058.patch: Authenticate downloaded files with
    GnuPG and MD5SUM files. Thanks to Julian Edwards.
  - CVE-2013-1058
* SECURITY UPDATE: configuration options may be loaded from current working
  directory (LP: #1158425)
  - debian/patches/CVE-2013-1057-1-2.patch: Do not load configuration
    options from the current working directory. Thanks to Julian Edwards.
  - CVE-2013-1057

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']});