mirror of
https://github.com/processing/processing4.git
synced 2026-03-26 06:17:30 +01:00
Fix #488.
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:
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user