Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: LayoutTests/fast/images/script-tests/cmyk-jpeg-with-color-profile.js

Issue 6529057: Merge 77724 - 2011-02-04 Hironori Bono <hbono@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/images/resources/cmyk-jpeg.jpg ('k') | WebCore/ChangeLog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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;
OLDNEW
« no previous file with comments | « LayoutTests/fast/images/resources/cmyk-jpeg.jpg ('k') | WebCore/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698