| OLD | NEW |
| 1 description("Test that we can render a CMYK JPEG without color corruption."); | 1 description("Test that we can render a CMYK JPEG without color corruption."); |
| 2 | 2 |
| 3 // This is an async test because it has to wait for WebKit to load an image. | 3 // This is an async test because it has to wait for WebKit to load an image. |
| 4 jsTestIsAsync = true; | 4 jsTestIsAsync = true; |
| 5 | 5 |
| 6 // The colors used for verifying the test results. | 6 // The colors used for verifying the test results. |
| 7 var red = 0, green = 0, blue = 0, alpha = 0; | 7 var red = 0, green = 0, blue = 0, alpha = 0; |
| 8 | 8 |
| 9 // Create a canvas element. This element is used for pasting a CMYK JPEG and | 9 // Create a canvas element. This element is used for pasting a CMYK JPEG and |
| 10 // reading its pixels. | 10 // reading its pixels. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // image only consists of green. So, we test it. | 39 // image only consists of green. So, we test it. |
| 40 shouldBeTrue("green > red"); | 40 shouldBeTrue("green > red"); |
| 41 shouldBeTrue("green > blue"); | 41 shouldBeTrue("green > blue"); |
| 42 | 42 |
| 43 // Notify this test has been finished. | 43 // Notify this test has been finished. |
| 44 finishJSTest(); | 44 finishJSTest(); |
| 45 } | 45 } |
| 46 image.src = "resources/cmyk-jpeg.jpg"; | 46 image.src = "resources/cmyk-jpeg.jpg"; |
| 47 | 47 |
| 48 var successfullyParsed = true; | 48 var successfullyParsed = true; |
| OLD | NEW |