~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/io/tests/instances.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>YUI IO Instance Tests</title>
5
 
</head>
6
 
 
7
 
<body class="yui3-skin-sam">
8
 
<h1>YUI IO Instance Tests</h1>
9
 
 
10
 
<script type="text/javascript" src="../../../build/yui/yui.js"></script>
11
 
<script type="text/javascript">
12
 
 
13
 
(function() {
14
 
    YUI({
15
 
        base: "../../../build/",
16
 
        filter: "debug",
17
 
        logExclude: {
18
 
            attribute: true,
19
 
            dom: true,
20
 
            node: true,
21
 
            event: true,
22
 
            base: true,
23
 
            widget: true,
24
 
            selector: true,
25
 
            io:true
26
 
        },
27
 
        useConsole: true
28
 
    }).use("test", "console", "io-base", function(Y) {
29
 
 
30
 
        var console = new Y.Console().render();
31
 
 
32
 
        var io_static_test = new Y.Test.Case({
33
 
            name: 'Static Instance of Y.IO',
34
 
 
35
 
            'test': function() {
36
 
                var instance1 = new Y.IO(),
37
 
                                        static1 = Y.io('get.php?test=static', {});
38
 
                                
39
 
                                Y.Assert.areEqual(instance1._uid, static1.io._uid);
40
 
            }
41
 
        });
42
 
 
43
 
        var io_instance_test = new Y.Test.Case({
44
 
            name: 'Compare IO Instances',
45
 
 
46
 
            'test': function() {
47
 
                var instance1 = new Y.IO(),
48
 
                                        instance2 = new Y.IO();
49
 
 
50
 
                                Y.Assert.areNotEqual(instance1, instance2);
51
 
            }
52
 
        });
53
 
 
54
 
        var io_object_test = new Y.Test.Case({
55
 
            name: 'IO Instance is an Object',
56
 
 
57
 
            'test': function() {
58
 
                var instance1 = new Y.IO();
59
 
                                
60
 
                                Y.Assert.isObject(instance1);
61
 
            }
62
 
        });
63
 
 
64
 
        var io_instanceof_test = new Y.Test.Case({
65
 
            name: 'Instance of Y.IO',
66
 
 
67
 
            'test': function() {
68
 
                var instance1 = new Y.IO();
69
 
                                
70
 
                                Y.Assert.isInstanceOf(Y.IO, instance1);
71
 
            }
72
 
        });
73
 
 
74
 
        Y.Test.Runner.add(io_static_test);
75
 
        Y.Test.Runner.add(io_instance_test);
76
 
        Y.Test.Runner.add(io_object_test);
77
 
        Y.Test.Runner.add(io_instanceof_test);
78
 
        Y.Test.Runner.run();
79
 
});
80
 
})();
81
 
</script>
82
 
</body>
83
 
</html>