diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-05 11:41:57 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-05 11:41:57 -0700 |
commit | d616c6169a2104f21c8577c88ec1c4e5a00e5cf9 (patch) | |
tree | 03d772679a5821c9fcd9e0ccd4309bf9c13f299e | |
parent | 969d433362d5e8427e3ef4a4293c65b2a6a94f12 (diff) |
strip color correction from pngs, so that the browser reftests are consistent across machines
-rw-r--r-- | tests/glbook/CH02_HelloTriangle.png | bin | 1009 -> 866 bytes | |||
-rw-r--r-- | tests/glbook/CH08_SimpleVertexShader.png | bin | 1600 -> 1200 bytes | |||
-rw-r--r-- | tests/glbook/CH09_SimpleTexture2D.png | bin | 1943 -> 713 bytes | |||
-rw-r--r-- | tests/glbook/CH09_TextureCubemap.png | bin | 3209 -> 2325 bytes | |||
-rw-r--r-- | tests/glbook/CH09_TextureWrap.png | bin | 1812 -> 894 bytes | |||
-rw-r--r-- | tests/glbook/CH10_MultiTexture.png | bin | 59495 -> 46810 bytes | |||
-rw-r--r-- | tests/glbook/CH13_ParticleSystem.png | bin | 4921 -> 4285 bytes | |||
-rw-r--r-- | tests/htmltest.png | bin | 743 -> 730 bytes | |||
-rwxr-xr-x | tests/runner.py | 2 | ||||
-rw-r--r-- | tests/sdl_gfx_primitives.png | bin | 2357 -> 2261 bytes | |||
-rw-r--r-- | tests/sdl_maprgba.png | bin | 1875 -> 1862 bytes | |||
-rw-r--r-- | tests/sdl_rotozoom.png | bin | 431921 -> 431168 bytes |
12 files changed, 2 insertions, 0 deletions
diff --git a/tests/glbook/CH02_HelloTriangle.png b/tests/glbook/CH02_HelloTriangle.png Binary files differindex d6351e2a..7b8c176e 100644 --- a/tests/glbook/CH02_HelloTriangle.png +++ b/tests/glbook/CH02_HelloTriangle.png diff --git a/tests/glbook/CH08_SimpleVertexShader.png b/tests/glbook/CH08_SimpleVertexShader.png Binary files differindex 84b276fd..6711784d 100644 --- a/tests/glbook/CH08_SimpleVertexShader.png +++ b/tests/glbook/CH08_SimpleVertexShader.png diff --git a/tests/glbook/CH09_SimpleTexture2D.png b/tests/glbook/CH09_SimpleTexture2D.png Binary files differindex e33539e9..7cb01698 100644 --- a/tests/glbook/CH09_SimpleTexture2D.png +++ b/tests/glbook/CH09_SimpleTexture2D.png diff --git a/tests/glbook/CH09_TextureCubemap.png b/tests/glbook/CH09_TextureCubemap.png Binary files differindex b592b047..2ca61b63 100644 --- a/tests/glbook/CH09_TextureCubemap.png +++ b/tests/glbook/CH09_TextureCubemap.png diff --git a/tests/glbook/CH09_TextureWrap.png b/tests/glbook/CH09_TextureWrap.png Binary files differindex 3367e254..1fb5a319 100644 --- a/tests/glbook/CH09_TextureWrap.png +++ b/tests/glbook/CH09_TextureWrap.png diff --git a/tests/glbook/CH10_MultiTexture.png b/tests/glbook/CH10_MultiTexture.png Binary files differindex 8e006eb3..dc7a0ed6 100644 --- a/tests/glbook/CH10_MultiTexture.png +++ b/tests/glbook/CH10_MultiTexture.png diff --git a/tests/glbook/CH13_ParticleSystem.png b/tests/glbook/CH13_ParticleSystem.png Binary files differindex 4b69414f..e0e4b31b 100644 --- a/tests/glbook/CH13_ParticleSystem.png +++ b/tests/glbook/CH13_ParticleSystem.png diff --git a/tests/htmltest.png b/tests/htmltest.png Binary files differindex 980245ee..36e87dd8 100644 --- a/tests/htmltest.png +++ b/tests/htmltest.png diff --git a/tests/runner.py b/tests/runner.py index 84e8b69e..f34ef4a7 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -12395,6 +12395,8 @@ elif 'browser' in str(sys.argv): ''' + code def reftest(self, expected): + # make sure the pngs used here have no color correction, using e.g. + # pngcrush -rem gAMA -rem cHRM -rem iCCP -rem sRGB infile outfile basename = os.path.basename(expected) shutil.copyfile(expected, os.path.join(self.get_dir(), basename)) open(os.path.join(self.get_dir(), 'reftest.js'), 'w').write(''' diff --git a/tests/sdl_gfx_primitives.png b/tests/sdl_gfx_primitives.png Binary files differindex 525b4f8f..706af9ae 100644 --- a/tests/sdl_gfx_primitives.png +++ b/tests/sdl_gfx_primitives.png diff --git a/tests/sdl_maprgba.png b/tests/sdl_maprgba.png Binary files differindex 4f64c7cd..caca4a8b 100644 --- a/tests/sdl_maprgba.png +++ b/tests/sdl_maprgba.png diff --git a/tests/sdl_rotozoom.png b/tests/sdl_rotozoom.png Binary files differindex 288dd303..5933754f 100644 --- a/tests/sdl_rotozoom.png +++ b/tests/sdl_rotozoom.png |