Clean up the footer writer section of the preprocessor for easier reading but also fix adding and looking for --full-screen which appears to have been left off at some point.
This commit is contained in:
A Pottinger
2022-06-21 08:34:44 -07:00
parent fa8eef0e8e
commit ece11f9345
5 changed files with 79 additions and 7 deletions

View File

@@ -11,8 +11,10 @@ import java.io.IOException;
import java.util.Optional;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.Test;
import processing.app.Preferences;
import processing.app.SketchException;
import processing.mode.java.preproc.PreprocessorResult;
import processing.mode.java.preproc.PdePreprocessIssueException;
@@ -25,6 +27,11 @@ public class ParserTests {
ProcessingTestUtil.init();
}
@Before
public void before() {
Preferences.setBoolean("export.application.fullscreen", false);
}
static void expectRecognitionException(final String id,
final int expectedLine) {
@@ -432,7 +439,8 @@ public class ParserTests {
@Test
public void testMultiMultilineString() {
expectGood("multimultilinestr");
Preferences.setBoolean("export.application.fullscreen", true);
expectGood("fullscreen_export");
}
}