@@ -251,46 +251,8 @@ def test_translucency(self):
251251 def test_video (self ):
252252 self .assertScriptOutputMatchesImage (self .EXAMPLES / 'video.fl' )
253253
254- @unittest .skipIf (sys .platform != 'linux' , 'OpenGL ES only available on Linux' )
255- def test_bauble_opengl_es (self ):
256- self .assertScriptOutputMatchesImage (self .EXAMPLES / 'bauble.fl' , opengl_es = True , suffix = '.es.png' )
257254
258- @unittest .skipIf (sys .platform != 'linux' , 'OpenGL ES only available on Linux' )
259- def test_bounce_opengl_es (self ):
260- self .assertScriptOutputMatchesImage (self .EXAMPLES / 'bounce.fl' , target_fps = 10 , opengl_es = True , suffix = '.es.png' )
261-
262- @unittest .skipIf (sys .platform != 'linux' , 'OpenGL ES only available on Linux' )
263- def test_canvas3d_opengl_es (self ):
264- self .assertScriptOutputMatchesImage (self .EXAMPLES / 'canvas3d.fl' , opengl_es = True , suffix = '.es.png' )
265-
266- @unittest .skipIf (sys .platform != 'linux' , 'OpenGL ES only available on Linux' )
267- def test_linelight_opengl_es (self ):
268- self .assertScriptOutputMatchesImage (self .EXAMPLES / 'linelight.fl' , opengl_es = True , suffix = '.es.png' )
269-
270- @unittest .skipIf (sys .platform != 'linux' , 'OpenGL ES only available on Linux' )
271- def test_oklch_opengl_es (self ):
272- self .assertScriptOutputMatchesImage (self .EXAMPLES / 'oklch.fl' , opengl_es = True , suffix = '.es.png' )
273-
274- @unittest .skipIf (sys .platform != 'linux' , 'OpenGL ES only available on Linux' )
275- def test_physics_opengl_es (self ):
276- self .assertScriptOutputMatchesImage (self .EXAMPLES / 'physics.fl' , target_fps = 10 , opengl_es = True , suffix = '.es.png' )
277-
278- @unittest .skipIf (sys .platform != 'linux' , 'OpenGL ES only available on Linux' )
279- def test_sdf_opengl_es (self ):
280- self .assertScriptOutputMatchesImage (self .EXAMPLES / 'sdf.fl' , opengl_es = True , suffix = '.es.png' )
281-
282- @unittest .skipIf (sys .platform != 'linux' , 'OpenGL ES only available on Linux' )
283- def test_solidgeometry_opengl_es (self ):
284- self .assertScriptOutputMatchesImage (self .EXAMPLES / 'solidgeometry.fl' , opengl_es = True , suffix = '.es.png' )
285-
286- @unittest .skipIf (sys .platform != 'linux' , 'OpenGL ES only available on Linux' )
287- def test_teaset_opengl_es (self ):
288- self .assertScriptOutputMatchesImage (self .EXAMPLES / 'teaset.fl' , opengl_es = True , suffix = '.es.png' )
289-
290- @unittest .skipIf (sys .platform != 'linux' , 'OpenGL ES only available on Linux' )
291- def test_textures_opengl_es (self ):
292- self .assertScriptOutputMatchesImage (self .EXAMPLES / 'textures.fl' , target_fps = 2 , opengl_es = True , suffix = '.es.png' )
293-
294- @unittest .skipIf (sys .platform != 'linux' , 'OpenGL ES only available on Linux' )
295- def test_translucency_opengl_es (self ):
296- self .assertScriptOutputMatchesImage (self .EXAMPLES / 'translucency.fl' , opengl_es = True , suffix = '.es.png' )
255+ @unittest .skipIf (sys .platform != 'linux' , 'OpenGL ES only available on Linux' )
256+ class TestExamplesOpenGLES (TestExamples ):
257+ def assertScriptOutputMatchesImage (self , script , suffix = '.es.png' , target_fps = 1 , run_time = 1 , ** kwargs ):
258+ super ().assertScriptOutputMatchesImage (script , suffix , target_fps , run_time , opengl_es = True , ** kwargs )
0 commit comments