~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/tests/test_yuixhr_fixture.js

Merge db-devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
YUI({
2
2
    base: '/+icing/yui/',
3
3
    filter: 'raw', combine: false, fetchCSS: false
4
 
}).use('test', 'console', 'json', 'cookie', 'lp.testing.serverfixture',
 
4
}).use('test', 'json', 'cookie', 'lp.testing.serverfixture',
5
5
       function(Y) {
6
6
 
7
7
var suite = new Y.Test.Suite("lp.testing.yuixhr Tests");
157
157
        // tests, so we are not logged in practically--the user is gone--but
158
158
        // also our session cookie is gone.
159
159
        Y.Assert.isFalse(Y.Cookie.exists('launchpad_tests'));
 
160
    },
 
161
 
 
162
    test_no_setup_can_still_teardown: function() {
 
163
        module.teardown(this);
160
164
    }
161
165
}));
162
166
 
163
 
var handle_complete = function(data) {
164
 
    window.status = '::::' + Y.JSON.stringify(data);
165
 
    };
166
 
Y.Test.Runner.on('complete', handle_complete);
167
 
Y.Test.Runner.add(suite);
168
 
 
169
 
var console = new Y.Console({newestOnTop: false});
170
 
 
171
 
Y.on('domready', function() {
172
 
    console.render('#log');
173
 
    Y.Test.Runner.run();
174
 
});
 
167
module.run(suite);
175
168
});