~ubuntu-branches/ubuntu/quantal/maas/quantal-updates

« back to all changes in this revision

Viewing changes to src/maasserver/static/jslibs/yui/3.4.1/tests/loader/tests/server/local_template.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>Local Test for {KEY}</title>
5
 
</head>
6
 
<body>
7
 
<h1>Local Test for {KEY}</h1>
8
 
<script src="/build/yui/yui.js"></script>
9
 
<script>
10
 
var sendResult = function(d) {
11
 
    if (parent.window && parent.window._yui_result) {
12
 
        parent.window._yui_result(d);
13
 
    } else {
14
 
        console.log('FAILED!!');
15
 
        console.log(d);
16
 
    }
17
 
};
18
 
try {
19
 
    YUI({
20
 
        //allowRollup: false,
21
 
        useBrowserConsole: false
22
 
    }).use('{KEY_USE}', function(Y) {
23
 
        sendResult({
24
 
            name: '{KEY}',
25
 
            result: Y.Env._missed,
26
 
            err: null
27
 
        });
28
 
    });
29
 
} catch (e) {
30
 
    sendResult({
31
 
        name: '{KEY}',
32
 
        result: [],
33
 
        err: e
34
 
    });
35
 
}
36
 
setTimeout(function() {
37
 
    sendResult({
38
 
        name: '{KEY}',
39
 
        result: [],
40
 
        err: 'Module failed to load, error from timeout'
41
 
    });
42
 
}, 5000);
43
 
window.onerror = function(e) {
44
 
    sendResult({
45
 
        name: '{KEY}',
46
 
        result: [],
47
 
        err: e
48
 
    });
49
 
}
50
 
</script>
51
 
</body>
52
 
</html>