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:
committed by
Sheel Choksi
parent
666e9c341e
commit
4350045d61
@@ -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");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user