~allenap/maas/backup

« back to all changes in this revision

Viewing changes to src/maasserver/static/js/tests/test_node_add.js

  • Committer: Gavin Panella
  • Date: 2012-03-15 13:58:32 UTC
  • mto: This revision was merged to the branch mainline in revision 291.
  • Revision ID: gavin.panella@canonical.com-20120315135832-8i2rkbvp6gwdhkzt
Change MaaS to MAAS everywhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
        var mockXhr = Y.Mock();
19
19
        Y.Mock.expect(mockXhr, {
20
20
            method: 'send',
21
 
            args: [MaaS_config.uris.nodes_handler, Y.Mock.Value.Any]
 
21
            args: [MAAS_config.uris.nodes_handler, Y.Mock.Value.Any]
22
22
        });
23
23
        this.mockIO(mockXhr, module);
24
24
    },
86
86
        var mockXhr = Y.Mock();
87
87
        Y.Mock.expect(mockXhr, {
88
88
            method: 'send',
89
 
            args: [MaaS_config.uris.nodes_handler, Y.Mock.Value.Any]
 
89
            args: [MAAS_config.uris.nodes_handler, Y.Mock.Value.Any]
90
90
        });
91
91
        this.mockIO(mockXhr, module);
92
92
        module.showAddNodeWidget();
101
101
        var mockXhr = Y.Mock();
102
102
        Y.Mock.expect(mockXhr, {
103
103
            method: 'send',
104
 
            args: [MaaS_config.uris.nodes_handler, Y.Mock.Value.Any]
 
104
            args: [MAAS_config.uris.nodes_handler, Y.Mock.Value.Any]
105
105
        });
106
106
        this.mockIO(mockXhr, module);
107
107
        module.showAddNodeWidget();
171
171
        var error_message = panel.get(
172
172
            'srcNode').one('.form-global-errors').get('innerHTML');
173
173
        // The link to the login page is present in the error message.
174
 
        var link_position = error_message.search(MaaS_config.uris.login);
 
174
        var link_position = error_message.search(MAAS_config.uris.login);
175
175
        Y.Assert.areNotEqual(-1, link_position);
176
176
    }
177
177