~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/event/tests/event-resize.html

  • 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
 
<!doctype html>
2
 
<html>
3
 
<head>
4
 
    <title>Test Page</title>
5
 
    <link type="text/css" rel="stylesheet" href="assets/test.css">
6
 
</head>
7
 
<body class="yui3-skin-sam">
8
 
 
9
 
<div id="log"></div>
10
 
<script src="../../../build/yui/yui.js"></script>
11
 
<script src="event-resize-tests.js"></script>
12
 
<script>
13
 
YUI({
14
 
    filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'min',
15
 
    allowRollup: false,
16
 
    // Can't use lazyEventFacade with resize tests because IE doesn't support
17
 
    // simulating window.onresize, so the custom event proxy for the DOM
18
 
    // subscriptions needs to be fire()d manualy, passing an object, rather than
19
 
    // a browser event
20
 
    // lazyEventFacade: true,
21
 
    useBrowserConsole: false
22
 
})
23
 
.use('console-filters', 'event-resize-tests', function (Y) {
24
 
 
25
 
    new Y.Console({
26
 
        style: 'block',
27
 
        entryTemplate: '<div class="{entry_class} {cat_class} {src_class}">'+
28
 
            '<pre class="{entry_content_class}">{message}</pre>'+
29
 
        '</div>',
30
 
        on: {
31
 
            entry: function (e) {
32
 
                var m = e.message,
33
 
                    node;
34
 
 
35
 
                if (m.category === 'info' &&
36
 
                    /\s(?:case|suite)\s|yuitests\d+|began/.test(m.message)) {
37
 
                        m.category = 'status';
38
 
                } else if (m.category === 'fail') {
39
 
                    this.printBuffer();
40
 
                    m.category = 'error';
41
 
                }
42
 
            }
43
 
        },
44
 
        after: {
45
 
            render: function () {
46
 
                this.get('contentBox').insertBefore( this._foot, this._body );
47
 
            }
48
 
        }
49
 
    }).plug(Y.Plugin.ConsoleFilters, {
50
 
        category: {
51
 
            pass: false,
52
 
            status: false
53
 
        }
54
 
      })
55
 
      .render( "#log" );
56
 
 
57
 
    Y.Test.Runner.run();
58
 
});
59
 
</script>
60
 
</body>
61
 
</html>