From c78b199c0ac925b0e49553efd91593af4ec21b68 Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Fri, 12 Dec 2014 21:29:48 +0300 Subject: [PATCH] JS test minor: fixed recursion test for inliner After changes in translator exception is no longer wrapped into another one --- .../test/org/jetbrains/k2js/test/semantics/InlineTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/InlineTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/InlineTest.java index 9dae081bf19..42eabac5bcd 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/InlineTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/InlineTest.java @@ -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 {