1
/* Copyright (c) 2011, Canonical Ltd. All rights reserved. */
9
YUI.add("lp.testing.runner", function(Y) {
18
var Runner = Y.namespace("lp.testing.Runner");
20
Runner.run = function(suite) {
22
// Lock, stock, and two smoking barrels.
23
var handle_complete = function(data) {
24
window.status = '::::' + JSON.stringify(data);
26
Y.Test.Runner.on('complete', handle_complete);
27
Y.Test.Runner.add(suite);
29
Y.on("domready", function() {
30
var log = Y.Node.create('<div></div>');
31
Y.one(document.body).appendChild(log);
32
var yconsole = new Y.Console({
34
useBrowserConsole: true
41
}, "0.1", {"requires": ["oop", "test", "console"]});