~ubuntu-branches/ubuntu/raring/maas/raring-updates

« 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-07-03 17:42:37 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20120703174237-p8l0keuuznfg721k
Tags: 0.1+bzr709+dfsg-0ubuntu1
* New Upstream release
* debian/control:
  - Depends on python-celery, python-tempita, libjs-yui3-{full,min},
    libjs-raphael
* debian/maas.install:
  - Install apiclient, celeryconfig.py, maas-import-pxe-files, preseeds_v2.
  - Update to install various files from chroot, rather tha manually copy
    them from the source.
* debian/maas.links: symlink celeryconfig.py
* debian/maas.maas-celery.upstart: Add job.
* debian/rules:
  - Install celery upstart job.
  - Do not install jslibs as packages are now used.
  - Drop copying of maas_local_settings_sample.py as source now ships
    a maas_local_settings.py
* debian/patches:
  - 04-maas-http-fix.patch: Drop. Merged upstream.
  - 01-fix-database-settings.patch: Refreshed.
  - 99_enums_js.patch: Added until creation of enum.js / build process
    is fixed.
* debian/maas.postinst: Update bzr version to correctly handle upgrades.

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