Permalink
Browse files

The XPComCore formatter now just overrides text

  • Loading branch information...
1 parent 4f1f719 commit b6368cfd49b149754f4f87a462bcdee8b795ca2a Alex Young committed Oct 21, 2009
Showing with 3 additions and 22 deletions.
  1. +3 −22 riot.js
View
25 riot.js
@@ -176,30 +176,11 @@ Riot.Formatters = {
},
XPComCore: function() {
- this.line = function(text) {
+ var formatter = new Riot.Formatters.Text();
+ formatter.line = function(text) {
puts(text);
};
-
- this.pass = function(message) {
- this.line(' + ' + message + '');
- };
-
- this.fail = function(message) {
- this.line(' - ' + message + '');
- };
-
- this.error = function(message, exception) {
- this.fail(message);
- this.line(' Exception: ' + exception);
- };
-
- this.context = function(name) {
- this.line(name);
- };
-
- this.separator = function() {
- this.line('');
- };
+ return formatter;
}
};

0 comments on commit b6368cf

Please sign in to comment.