~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

[rs=buildbot-poller] automatic merge from stable. Revisions: 14253,
        14254, 14255, 14256, 14257, 14258, 14259 included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
    base: '/+icing/yui/',
3
3
    filter: 'raw', combine: false, fetchCSS: false
4
4
// TODO: Add other modules you want to test into the "use" list.
5
 
}).use('test', 'console', 'json', 'cookie', 'lp.testing.serverfixture',
 
5
}).use('test', 'lp.testing.serverfixture',
6
6
       function(Y) {
7
7
 
8
8
// This is one-half of an example yuixhr test.  The other half of a
47
47
    }
48
48
}));
49
49
 
50
 
// The remaining lines are necessary boilerplate.  Include them.
51
 
 
52
 
var handle_complete = function(data) {
53
 
    window.status = '::::' + Y.JSON.stringify(data);
54
 
    };
55
 
Y.Test.Runner.on('complete', handle_complete);
56
 
Y.Test.Runner.add(suite);
57
 
 
58
 
var console = new Y.Console({newestOnTop: false});
59
 
 
60
 
Y.on('domready', function() {
61
 
    console.render('#log');
62
 
    Y.Test.Runner.run();
63
 
});
 
50
// The last line is necessary.  Include it.
 
51
serverfixture.run(suite);
64
52
});