ReferenceCollectingCallbackTest: Test cases should only run once.
@@ -36,6 +36,15 @@ public final class ReferenceCollectingCallbackTest extends CompilerTestCase {
es6ScopeCreator = true;
}
+ @Override
+ protected int getNumRepetitions() {
+ // Default behavior for CompilerTestCase.test*() methods is to do the whole test twice,
+ // because passes that modify the AST need to be idempotent.
+ // Since ReferenceCollectingCallback() just gathers information, it doesn't make sense to
+ // run it twice, and doing so just complicates debugging test cases.
+ return 1;
+ }
+
@Override
protected CompilerPass getProcessor(final Compiler compiler) {
ScopeCreator scopeCreator =
