From a181aeae67a9c9c86e9df92ab5c0de6ce00f47fb Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Thu, 20 Mar 2014 10:27:45 -0600 Subject: Cobalt 2.0 -> Now with neon 2.0 --- test/basic.js | 35 +++++++++++++++++++++++++++++++++++ test/browser.html | 20 ++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 test/basic.js create mode 100644 test/browser.html (limited to 'test') diff --git a/test/basic.js b/test/basic.js new file mode 100644 index 0000000..90aadd6 --- /dev/null +++ b/test/basic.js @@ -0,0 +1,35 @@ +if (typeof require === "function") { + require("cobalt-log"); +} + +var co = new Cobalt.Console({ + loggers : [ + new Cobalt.Logger.JsConsole({ + formatter : Cobalt.Formatter.Token, + formatterOpts : { + formatString : "[{{_level}}] {{message}} {{customParam}}" + } + }) + ] +}) + +// TODO: Do this whole thing with tellurium. + +co.log("Log - Normal"); +co.debug("Warn - Normal"); +co.info("Info - Normal"); +co.notice("Notice - Normal"); +co.warn("Warn - Normal"); +co.error("Error - Normal"); + +var logObject = co.extendLog({ + message : "Extended Log Object", + customParam : "<3" +}); + +co.log(logObject); +co.debug(logObject); +co.info(logObject); +co.notice(logObject); +co.warn(logObject); +co.error(logObject); diff --git a/test/browser.html b/test/browser.html new file mode 100644 index 0000000..ec58b6f --- /dev/null +++ b/test/browser.html @@ -0,0 +1,20 @@ + + + + Tellurium Test Runner + + + + + + + + + + + + + + + + -- cgit