mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 03:11:08 +01:00
Add new preproc test resources related to #352.
This commit is contained in:
33
java/test/resources/fullscreen_arg.expected
Normal file
33
java/test/resources/fullscreen_arg.expected
Normal file
@@ -0,0 +1,33 @@
|
||||
import processing.core.*;
|
||||
import processing.data.*;
|
||||
import processing.event.*;
|
||||
import processing.opengl.*;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.ArrayList;
|
||||
import java.io.File;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
public class fullscreen extends PApplet {
|
||||
|
||||
public void setup() {
|
||||
/* size commented out by preprocessor */;
|
||||
|
||||
noLoop();
|
||||
}
|
||||
|
||||
public void settings() { fullScreen(FX2D, 2); }
|
||||
|
||||
static public void main(String[] passedArgs) {
|
||||
String[] appletArgs = new String[] { "fullscreen_arg" };
|
||||
if (passedArgs != null) {
|
||||
PApplet.main(concat(appletArgs, passedArgs));
|
||||
} else {
|
||||
PApplet.main(appletArgs);
|
||||
}
|
||||
}
|
||||
}
|
||||
1
java/test/resources/fullscreen_arg.pde
Normal file
1
java/test/resources/fullscreen_arg.pde
Normal file
@@ -0,0 +1 @@
|
||||
fullScreen(FX2D, 2);
|
||||
Reference in New Issue
Block a user