re-add hard coded window dims
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
67700fdb47
commit
4ffbc87c48
@ -20,6 +20,8 @@ public abstract class RenderingTestTemplate {
|
||||
@IntegrationSetup
|
||||
public void initEngine(){
|
||||
Globals.WINDOW_DECORATED = false;
|
||||
Globals.WINDOW_WIDTH = 1920;
|
||||
Globals.WINDOW_HEIGHT = 1080;
|
||||
TestEngineUtils.initGraphicalEngine();
|
||||
}
|
||||
|
||||
|
||||
@ -37,11 +37,11 @@ public class TestRenderingUtils {
|
||||
if(testData.getWidth() != screenshot.getWidth()){
|
||||
onFailure.run();
|
||||
}
|
||||
assertEquals(testData.getHeight(), screenshot.getHeight());
|
||||
assertEquals(screenshot.getHeight(), testData.getHeight());
|
||||
if(testData.getWidth() != screenshot.getWidth()){
|
||||
onFailure.run();
|
||||
}
|
||||
assertEquals(testData.getHeight(), screenshot.getHeight());
|
||||
assertEquals(screenshot.getHeight(), testData.getHeight());
|
||||
|
||||
//pixel-by-pixel check
|
||||
for(int x = 0; x < testData.getWidth(); x++){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user