Browse files

issue 75: check BOM is ignored.

  • Loading branch information...
1 parent 136e2cc commit d550d5ad1764b57d549dd9ab12b7be99145400c5 @happygiraffe committed Jan 23, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 jslint4java/src/test/java/com/googlecode/jslint4java/cli/MainTest.java
View
7 jslint4java/src/test/java/com/googlecode/jslint4java/cli/MainTest.java
@@ -62,6 +62,13 @@ public void testAllOk() throws IOException, URISyntaxException {
}
@Test
+ public void testBom() throws IOException, URISyntaxException {
+ String path = pathTo("bom.js");
+ int exit = runLint("--predef", "alert", path);
+ assertLintOutput(exit, 0, NO_OUTPUT, NO_OUTPUT);
+ }
+
+ @Test
public void testOneBad() throws IOException, URISyntaxException {
String path = pathTo("bad.js");

0 comments on commit d550d5a

Please sign in to comment.