Permalink
Browse files

update unit tests

  • Loading branch information...
kritzikratzi committed Mar 23, 2010
1 parent 483cf99 commit b150245e9a04895f541fd12bada1a6410a3cafd6
Showing with 6 additions and 7 deletions.
  1. +6 −7 src/fullscreen/tests/Tests.java
@@ -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 );
- }
+
}

0 comments on commit b150245

Please sign in to comment.