exception

This commit is contained in:
Alexey Kudravtsev
2014-09-16 15:27:12 +04:00
parent 0a68d31c85
commit e50721e044
@@ -49,7 +49,7 @@ public class ProgressIndicatorTest extends LightPlatformTestCase {
fail("Please restore ProgressIndicatorBase.checkCanceled() check!");
}
catch(ProcessCanceledException ex) {
assertTrue("Should have no stackframe", ex.getStackTrace().length == 0);
assertTrue("Should have no stackframe", ApplicationManager.getApplication().isInternal() ? ex.getStackTrace().length != 0 : ex.getStackTrace().length == 0);
}
}
@@ -288,7 +288,6 @@ public class ProgressIndicatorTest extends LightPlatformTestCase {
@Override
public void initStateFrom(@NotNull ProgressIndicator indicator) {
throw new RuntimeException();
}
@NotNull