Replaced deprecated octal literal with hexadecimal

Octal literals are deprecated in JavaScript 1.5 and Gjs were generating
warnings because of them.
This commit is contained in:
Kristóf Marussy
2013-01-16 14:35:17 +01:00
committed by Sheel Choksi
parent 666e9c341e
commit 4350045d61
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -198,7 +198,7 @@ describe("ConsoleReporter", function() {
reporter.specDone({status: "passed"}); reporter.specDone({status: "passed"});
expect(out.getOutput()).toEqual("\033[32m.\033[0m"); expect(out.getOutput()).toEqual("\x1B[32m.\x1B[0m");
}); });
it("does not report a disabled spec", function() { it("does not report a disabled spec", function() {
@@ -220,7 +220,7 @@ describe("ConsoleReporter", function() {
reporter.specDone({status: 'failed'}); reporter.specDone({status: 'failed'});
expect(out.getOutput()).toEqual("\033[31mF\033[0m"); expect(out.getOutput()).toEqual("\x1B[31mF\x1B[0m");
}); });
}); });
}); });
+4 -4
View File
@@ -15,10 +15,10 @@ getJasmineRequireObj().ConsoleReporter = function() {
failedSpecs = [], failedSpecs = [],
pendingCount, pendingCount,
ansi = { ansi = {
green: '\033[32m', green: '\x1B[32m',
red: '\033[31m', red: '\x1B[31m',
yellow: '\033[33m', yellow: '\x1B[33m',
none: '\033[0m' none: '\x1B[0m'
}; };
this.jasmineStarted = function() { this.jasmineStarted = function() {