protected void runReplaceScriptWithError(
List<String> sources, String newSource, int newSourceInd, DiagnosticType errorType) {
Result result =
runReplaceScript(getOptions(), sources, 0, 0, newSource, newSourceInd, true).getResult();
assertNumWarningsAndErrors(result, 1, 0);
<BUG>assertEquals(result.errors[0].getType(), errorType);
</BUG>
}
protected Compiler runReplaceScript(
CompilerOptions options,

protected void runReplaceScriptWithError(
List<String> sources, String newSource, int newSourceInd, DiagnosticType errorType) {
Result result =
runReplaceScript(getOptions(), sources, 0, 0, newSource, newSourceInd, true).getResult();
assertNumWarningsAndErrors(result, 1, 0);
assertError(result.errors[0]).hasType(errorType);
}
protected Compiler runReplaceScript(
CompilerOptions options,
