Skip to content

Commit

Permalink
issue 75: check BOM is ignored.
Browse files Browse the repository at this point in the history
  • Loading branch information
happygiraffe committed Jan 23, 2012
1 parent 136e2cc commit d550d5a
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -61,6 +61,13 @@ public void testAllOk() throws IOException, URISyntaxException {
assertLintOutput(exit, 0, NO_OUTPUT, NO_OUTPUT); assertLintOutput(exit, 0, NO_OUTPUT, NO_OUTPUT);
} }


@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 @Test
public void testOneBad() throws IOException, URISyntaxException { public void testOneBad() throws IOException, URISyntaxException {
String path = pathTo("bad.js"); String path = pathTo("bad.js");
Expand Down

0 comments on commit d550d5a

Please sign in to comment.