1
/* Copyright (c) 2011, Canonical Ltd. All rights reserved. */
4
base: '../../../../canonical/launchpad/icing/yui/',
9
// Don't forget to add the module under test to the use() clause.
11
}).use('event', 'lp.client', 'node', 'test', 'widget-stack',
12
'console', function(Y) {
15
var Assert = Y.Assert,
16
ArrayAssert = Y.ArrayAssert;
18
var suite = new Y.Test.Suite("YOUR TEST SUITE NAME");
20
suite.add(new Y.Test.Case({
22
name: 'A TEST CASE NAME',
25
// Monkeypatch LP to avoid network traffic and to make
26
// some things work as expected.
27
Y.lp.client.Launchpad.prototype.named_post =
28
function(url, func, config) {
34
self_link: "http://bugs.example.com/bugs/1234"
38
tearDown: function() {
42
* The choice edit should be displayed inline.
44
test_something: function() {
50
var handle_complete = function(data) {
51
window.status = '::::' + JSON.stringify(data);
53
Y.Test.Runner.on('complete', handle_complete);
54
Y.Test.Runner.add(suite);
56
var yconsole = new Y.Console({
59
yconsole.render('#log');
61
Y.on('domready', function() {