JS test minor: fixed recursion test for inliner

After changes in translator exception is no longer wrapped into another one
This commit is contained in:
Alexey Tsvetkov
2014-12-12 21:29:48 +03:00
parent 6115e1afec
commit c78b199c0a
@@ -159,9 +159,11 @@ public final class InlineTest extends SingleFileTranslationWithDirectivesTest {
public void testMutualRecursion() throws Exception {
try {
checkFooBoxIsOkWithDirectives();
} catch (Exception e) {
assert e.getCause() instanceof InlineRecursionException;
} catch (InlineRecursionException e) {
return;
}
throw new AssertionError("No exception was thrown for mutual recursion of inline functions");
}
public void testInlineOrder() throws Exception {