Address code review

This commit is contained in:
Yui T
2015-01-20 12:44:28 -08:00
parent 15800b7d78
commit fbbc30f1df

View File

@@ -22,7 +22,8 @@
declare var require: any;
declare var process: any;
declare var Buffer: any;
//declare var Buffer: any;
var Buffer = require('buffer').Buffer;
// this will work in the browser via browserify
var _chai: typeof chai = require('chai');
@@ -1298,13 +1299,13 @@ module Harness {
return diagnostic.filename && isLibraryFile(diagnostic.filename);
});
var test262HarnessDiagnostics = ts.countWhere(diagnostics, diagnostic => {
var numTest262HarnessDiagnostics = ts.countWhere(diagnostics, diagnostic => {
// Count an error generated from tests262-harness folder.This should only apply for test262
return diagnostic.filename && diagnostic.filename.indexOf("test262-harness") >= 0;
});
// Verify we didn't miss any errors in total
assert.equal(totalErrorsReported + numLibraryDiagnostics + test262HarnessDiagnostics, diagnostics.length, 'total number of errors');
assert.equal(totalErrorsReported + numLibraryDiagnostics + numTest262HarnessDiagnostics, diagnostics.length, 'total number of errors');
return minimalDiagnosticsToString(diagnostics) +
ts.sys.newLine + ts.sys.newLine + outputLines.join('\r\n');