Merge pull request #3155 from Microsoft/useCRLFByDefaultInTest

Use crlf by default in test
This commit is contained in:
Yui
2015-05-14 15:59:24 -07:00
2 changed files with 7 additions and 4 deletions

View File

@@ -45,10 +45,12 @@ module Utils {
export function getExecutionEnvironment() {
if (typeof WScript !== "undefined" && typeof ActiveXObject === "function") {
return ExecutionEnvironment.CScript;
} else if (typeof window !== "undefined") {
}
else if (typeof window !== "undefined") {
return ExecutionEnvironment.Browser;
} else {
return ExecutionEnvironment.Node;
}
else {
return ExecutionEnvironment.Node;
}
}
@@ -945,6 +947,7 @@ module Harness {
options = options || { noResolve: false };
options.target = options.target || ts.ScriptTarget.ES3;
options.module = options.module || ts.ModuleKind.None;
options.newLine = options.newLine || ts.NewLineKind.CarriageReturnLineFeed;
options.noErrorTruncation = true;
if (settingsCallback) {

View File

@@ -2,4 +2,4 @@
var foo: {id:number;} = {id:4};
//// [contextualTyping1.js]
var foo = { id: 4 };\n
var foo = { id: 4 };