Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # Encoder ref tests |
michael@0 | 2 | # These reftests must be run as HTTP because of canvas' origin-clean security |
michael@0 | 3 | # file:// URLs are always considered from a different origin unless same URL |
michael@0 | 4 | # |
michael@0 | 5 | # The test will copy a PNG image to a canvas, then use canvas.toDataUrl to get |
michael@0 | 6 | # the data, then set the data to a new image hence invoking the appropriate |
michael@0 | 7 | # encoder. |
michael@0 | 8 | # |
michael@0 | 9 | # The tests should only be used with lossless encoders. |
michael@0 | 10 | # |
michael@0 | 11 | # Valid arguments for encoder.html in the query string: |
michael@0 | 12 | # - img=<reference image to use> |
michael@0 | 13 | # - mime=<mime type> |
michael@0 | 14 | # - options=<canvas toDataURL encoder options> |
michael@0 | 15 | # Example: |
michael@0 | 16 | # encoder.html?img=escape(reference_image.png) |
michael@0 | 17 | # &mime=escape(image/vnd.microsoft.icon) |
michael@0 | 18 | # &options=escape(-moz-parse-options:bpp=24;format=png) |
michael@0 | 19 | |
michael@0 | 20 | # PNG |
michael@0 | 21 | HTTP == size-1x1.png encoder.html?img=size-1x1.png&mime=image/png |
michael@0 | 22 | HTTP == size-2x2.png encoder.html?img=size-2x2.png&mime=image/png |
michael@0 | 23 | HTTP == size-3x3.png encoder.html?img=size-3x3.png&mime=image/png |
michael@0 | 24 | HTTP == size-4x4.png encoder.html?img=size-4x4.png&mime=image/png |
michael@0 | 25 | HTTP == size-5x5.png encoder.html?img=size-5x5.png&mime=image/png |
michael@0 | 26 | HTTP == size-6x6.png encoder.html?img=size-6x6.png&mime=image/png |
michael@0 | 27 | HTTP == size-7x7.png encoder.html?img=size-7x7.png&mime=image/png |
michael@0 | 28 | HTTP == size-8x8.png encoder.html?img=size-8x8.png&mime=image/png |
michael@0 | 29 | HTTP == size-9x9.png encoder.html?img=size-9x9.png&mime=image/png |
michael@0 | 30 | HTTP == size-15x15.png encoder.html?img=size-15x15.png&mime=image/png |
michael@0 | 31 | HTTP == size-16x16.png encoder.html?img=size-16x16.png&mime=image/png |
michael@0 | 32 | HTTP == size-17x17.png encoder.html?img=size-17x17.png&mime=image/png |
michael@0 | 33 | HTTP == size-31x31.png encoder.html?img=size-31x31.png&mime=image/png |
michael@0 | 34 | HTTP == size-32x32.png encoder.html?img=size-32x32.png&mime=image/png |
michael@0 | 35 | HTTP == size-33x33.png encoder.html?img=size-33x33.png&mime=image/png |
michael@0 | 36 | |
michael@0 | 37 | # BMP using default parse options |
michael@0 | 38 | HTTP == size-1x1.png encoder.html?img=size-1x1.png&mime=image/bmp |
michael@0 | 39 | HTTP == size-2x2.png encoder.html?img=size-2x2.png&mime=image/bmp |
michael@0 | 40 | HTTP == size-3x3.png encoder.html?img=size-3x3.png&mime=image/bmp |
michael@0 | 41 | HTTP == size-4x4.png encoder.html?img=size-4x4.png&mime=image/bmp |
michael@0 | 42 | HTTP == size-5x5.png encoder.html?img=size-5x5.png&mime=image/bmp |
michael@0 | 43 | HTTP == size-6x6.png encoder.html?img=size-6x6.png&mime=image/bmp |
michael@0 | 44 | HTTP == size-7x7.png encoder.html?img=size-7x7.png&mime=image/bmp |
michael@0 | 45 | HTTP == size-8x8.png encoder.html?img=size-8x8.png&mime=image/bmp |
michael@0 | 46 | HTTP == size-9x9.png encoder.html?img=size-9x9.png&mime=image/bmp |
michael@0 | 47 | HTTP == size-15x15.png encoder.html?img=size-15x15.png&mime=image/bmp |
michael@0 | 48 | HTTP == size-16x16.png encoder.html?img=size-16x16.png&mime=image/bmp |
michael@0 | 49 | HTTP == size-17x17.png encoder.html?img=size-17x17.png&mime=image/bmp |
michael@0 | 50 | HTTP == size-31x31.png encoder.html?img=size-31x31.png&mime=image/bmp |
michael@0 | 51 | HTTP == size-32x32.png encoder.html?img=size-32x32.png&mime=image/bmp |
michael@0 | 52 | HTTP == size-33x33.png encoder.html?img=size-33x33.png&mime=image/bmp |
michael@0 | 53 | |
michael@0 | 54 | # BMP using image/bmp mime type and 32bpp parse options |
michael@0 | 55 | HTTP == size-1x1.png encoder.html?img=size-1x1.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D32 |
michael@0 | 56 | HTTP == size-2x2.png encoder.html?img=size-2x2.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D32 |
michael@0 | 57 | HTTP == size-3x3.png encoder.html?img=size-3x3.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D32 |
michael@0 | 58 | HTTP == size-4x4.png encoder.html?img=size-4x4.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D32 |
michael@0 | 59 | HTTP == size-5x5.png encoder.html?img=size-5x5.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D32 |
michael@0 | 60 | HTTP == size-6x6.png encoder.html?img=size-6x6.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D32 |
michael@0 | 61 | HTTP == size-7x7.png encoder.html?img=size-7x7.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D32 |
michael@0 | 62 | HTTP == size-8x8.png encoder.html?img=size-8x8.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D32 |
michael@0 | 63 | HTTP == size-9x9.png encoder.html?img=size-9x9.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D32 |
michael@0 | 64 | HTTP == size-15x15.png encoder.html?img=size-15x15.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D32 |
michael@0 | 65 | HTTP == size-16x16.png encoder.html?img=size-16x16.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D32 |
michael@0 | 66 | HTTP == size-17x17.png encoder.html?img=size-17x17.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D32 |
michael@0 | 67 | HTTP == size-31x31.png encoder.html?img=size-31x31.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D32 |
michael@0 | 68 | HTTP == size-32x32.png encoder.html?img=size-32x32.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D32 |
michael@0 | 69 | HTTP == size-33x33.png encoder.html?img=size-33x33.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D32 |
michael@0 | 70 | |
michael@0 | 71 | # BMP using image/bmp mime type and 24bpp parse options |
michael@0 | 72 | HTTP == size-1x1.png encoder.html?img=size-1x1.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D24 |
michael@0 | 73 | HTTP == size-2x2.png encoder.html?img=size-2x2.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D24 |
michael@0 | 74 | HTTP == size-3x3.png encoder.html?img=size-3x3.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D24 |
michael@0 | 75 | HTTP == size-4x4.png encoder.html?img=size-4x4.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D24 |
michael@0 | 76 | HTTP == size-5x5.png encoder.html?img=size-5x5.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D24 |
michael@0 | 77 | HTTP == size-6x6.png encoder.html?img=size-6x6.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D24 |
michael@0 | 78 | HTTP == size-7x7.png encoder.html?img=size-7x7.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D24 |
michael@0 | 79 | HTTP == size-8x8.png encoder.html?img=size-8x8.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D24 |
michael@0 | 80 | HTTP == size-9x9.png encoder.html?img=size-9x9.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D24 |
michael@0 | 81 | HTTP == size-15x15.png encoder.html?img=size-15x15.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D24 |
michael@0 | 82 | HTTP == size-16x16.png encoder.html?img=size-16x16.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D24 |
michael@0 | 83 | HTTP == size-17x17.png encoder.html?img=size-17x17.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D24 |
michael@0 | 84 | HTTP == size-31x31.png encoder.html?img=size-31x31.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D24 |
michael@0 | 85 | HTTP == size-32x32.png encoder.html?img=size-32x32.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D24 |
michael@0 | 86 | HTTP == size-33x33.png encoder.html?img=size-33x33.png&mime=image/bmp&options=-moz-parse-options%3Abpp%3D24 |
michael@0 | 87 | |
michael@0 | 88 | # ICO using default parse options |
michael@0 | 89 | HTTP == size-1x1.png encoder.html?img=size-1x1.png&mime=image/vnd.microsoft.icon |
michael@0 | 90 | HTTP == size-2x2.png encoder.html?img=size-2x2.png&mime=image/vnd.microsoft.icon |
michael@0 | 91 | HTTP == size-3x3.png encoder.html?img=size-3x3.png&mime=image/vnd.microsoft.icon |
michael@0 | 92 | HTTP == size-4x4.png encoder.html?img=size-4x4.png&mime=image/vnd.microsoft.icon |
michael@0 | 93 | HTTP == size-5x5.png encoder.html?img=size-5x5.png&mime=image/vnd.microsoft.icon |
michael@0 | 94 | HTTP == size-6x6.png encoder.html?img=size-6x6.png&mime=image/vnd.microsoft.icon |
michael@0 | 95 | HTTP == size-7x7.png encoder.html?img=size-7x7.png&mime=image/vnd.microsoft.icon |
michael@0 | 96 | HTTP == size-8x8.png encoder.html?img=size-8x8.png&mime=image/vnd.microsoft.icon |
michael@0 | 97 | HTTP == size-9x9.png encoder.html?img=size-9x9.png&mime=image/vnd.microsoft.icon |
michael@0 | 98 | HTTP == size-15x15.png encoder.html?img=size-15x15.png&mime=image/vnd.microsoft.icon |
michael@0 | 99 | HTTP == size-16x16.png encoder.html?img=size-16x16.png&mime=image/vnd.microsoft.icon |
michael@0 | 100 | HTTP == size-17x17.png encoder.html?img=size-17x17.png&mime=image/vnd.microsoft.icon |
michael@0 | 101 | HTTP == size-31x31.png encoder.html?img=size-31x31.png&mime=image/vnd.microsoft.icon |
michael@0 | 102 | HTTP == size-32x32.png encoder.html?img=size-32x32.png&mime=image/vnd.microsoft.icon |
michael@0 | 103 | HTTP == size-33x33.png encoder.html?img=size-33x33.png&mime=image/vnd.microsoft.icon |
michael@0 | 104 | HTTP == size-256x256.png encoder.html?img=size-256x256.png&mime=image/vnd.microsoft.icon |
michael@0 | 105 | |
michael@0 | 106 | # ICO using image/vnd.microsoft.icon mime type and 32bpp parse options with bmp |
michael@0 | 107 | HTTP == size-1x1.png encoder.html?img=size-1x1.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 108 | HTTP == size-2x2.png encoder.html?img=size-2x2.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 109 | HTTP == size-3x3.png encoder.html?img=size-3x3.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 110 | HTTP == size-4x4.png encoder.html?img=size-4x4.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 111 | HTTP == size-5x5.png encoder.html?img=size-5x5.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 112 | HTTP == size-6x6.png encoder.html?img=size-6x6.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 113 | HTTP == size-7x7.png encoder.html?img=size-7x7.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 114 | HTTP == size-8x8.png encoder.html?img=size-8x8.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 115 | HTTP == size-9x9.png encoder.html?img=size-9x9.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 116 | HTTP == size-15x15.png encoder.html?img=size-15x15.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 117 | HTTP == size-16x16.png encoder.html?img=size-16x16.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 118 | HTTP == size-17x17.png encoder.html?img=size-17x17.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 119 | HTTP == size-31x31.png encoder.html?img=size-31x31.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 120 | HTTP == size-32x32.png encoder.html?img=size-32x32.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 121 | HTTP == size-33x33.png encoder.html?img=size-33x33.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 122 | HTTP == size-256x256.png encoder.html?img=size-256x256.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D32%3Bformat%3Dbmp |
michael@0 | 123 | |
michael@0 | 124 | # ICO using image/vnd.microsoft.icon mime type and 24bpp parse options with bmp |
michael@0 | 125 | HTTP == size-1x1.png encoder.html?img=size-1x1.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 126 | HTTP == size-2x2.png encoder.html?img=size-2x2.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 127 | HTTP == size-3x3.png encoder.html?img=size-3x3.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 128 | HTTP == size-4x4.png encoder.html?img=size-4x4.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 129 | HTTP == size-5x5.png encoder.html?img=size-5x5.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 130 | HTTP == size-6x6.png encoder.html?img=size-6x6.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 131 | HTTP == size-7x7.png encoder.html?img=size-7x7.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 132 | HTTP == size-8x8.png encoder.html?img=size-8x8.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 133 | HTTP == size-9x9.png encoder.html?img=size-9x9.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 134 | HTTP == size-15x15.png encoder.html?img=size-15x15.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 135 | HTTP == size-16x16.png encoder.html?img=size-16x16.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 136 | HTTP == size-17x17.png encoder.html?img=size-17x17.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 137 | HTTP == size-31x31.png encoder.html?img=size-31x31.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 138 | HTTP == size-32x32.png encoder.html?img=size-32x32.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 139 | HTTP == size-33x33.png encoder.html?img=size-33x33.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 140 | HTTP == size-256x256.png encoder.html?img=size-256x256.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Abpp%3D24%3Bformat%3Dbmp |
michael@0 | 141 | |
michael@0 | 142 | # ICO using image/vnd.microsoft.icon mime type png |
michael@0 | 143 | HTTP == size-1x1.png encoder.html?img=size-1x1.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 144 | HTTP == size-2x2.png encoder.html?img=size-2x2.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 145 | HTTP == size-3x3.png encoder.html?img=size-3x3.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 146 | HTTP == size-4x4.png encoder.html?img=size-4x4.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 147 | HTTP == size-5x5.png encoder.html?img=size-5x5.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 148 | HTTP == size-6x6.png encoder.html?img=size-6x6.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 149 | HTTP == size-7x7.png encoder.html?img=size-7x7.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 150 | HTTP == size-8x8.png encoder.html?img=size-8x8.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 151 | HTTP == size-9x9.png encoder.html?img=size-9x9.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 152 | HTTP == size-15x15.png encoder.html?img=size-15x15.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 153 | HTTP == size-16x16.png encoder.html?img=size-16x16.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 154 | HTTP == size-17x17.png encoder.html?img=size-17x17.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 155 | HTTP == size-31x31.png encoder.html?img=size-31x31.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 156 | HTTP == size-32x32.png encoder.html?img=size-32x32.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 157 | HTTP == size-33x33.png encoder.html?img=size-33x33.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 158 | HTTP == size-256x256.png encoder.html?img=size-256x256.png&mime=image/vnd.microsoft.icon&options=-moz-parse-options%3Aformat%3Dpng |
michael@0 | 159 |