Skip to content

Commit

Permalink
update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kritzikratzi committed Mar 23, 2010
1 parent 483cf99 commit b150245
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/fullscreen/tests/Tests.java
Expand Up @@ -120,18 +120,17 @@ private void assertFrameRate( int width, int height, Class<? extends FullScreenB
fs.setFullScreen( true );

Thread.sleep( 2000 );
if( sketch.frameRate < 90 ){
fs.leave();
killSketch( sketch );
float fps = sketch.frameRate;
fs.leave();
killSketch( sketch );

if( fps < 90 ){
fail(
"Framerate too low on " + fsClass.getName() + ": " +
"[" + width + "x" + height + "@" + sketch.frameRate + "fps]"
);
}
else{
fs.leave();
killSketch( sketch );
}

}


Expand Down

0 comments on commit b150245

Please sign in to comment.