From: noel.gordon@gmail.com Date: Mon, 8 Oct 2012 06:59:41 +0000 (+0000) Subject: Add partial load test for JPEG image X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=20c39c0e42d75b9d1e152324e35ca2b15563cb3b Add partial load test for JPEG image https://bugs.webkit.org/show_bug.cgi?id=98487 Reviewed by Adam Barth. Partial load test: receive a partial number of image bytes and stall forever. The partial image should be decoded and drawn and the green background should be visible. * fast/images/resources/lenna.jpg: Added. * http/tests/images/jpeg-partial-load-expected.png: Added. * http/tests/images/jpeg-partial-load-expected.txt: Added. * http/tests/images/jpeg-partial-load.html: Added. * platform/chromium/http/tests/images/jpeg-partial-load-expected.png: Added. * platform/mac/http/tests/images/jpeg-partial-load-expected.png: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@130618 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog index b9b34e6c67b3..ed3fc7563bb4 100644 --- a/LayoutTests/ChangeLog +++ b/LayoutTests/ChangeLog @@ -1,3 +1,20 @@ +2012-10-07 Noel Gordon + + Add partial load test for JPEG image + https://bugs.webkit.org/show_bug.cgi?id=98487 + + Reviewed by Adam Barth. + + Partial load test: receive a partial number of image bytes and stall forever. The partial + image should be decoded and drawn and the green background should be visible. + + * fast/images/resources/lenna.jpg: Added. + * http/tests/images/jpeg-partial-load-expected.png: Added. + * http/tests/images/jpeg-partial-load-expected.txt: Added. + * http/tests/images/jpeg-partial-load.html: Added. + * platform/chromium/http/tests/images/jpeg-partial-load-expected.png: Added. + * platform/mac/http/tests/images/jpeg-partial-load-expected.png: Added. + 2012-10-07 Arpita Bahuguna :first-line pseudo selector ignoring words created from :before diff --git a/LayoutTests/fast/images/resources/lenna.jpg b/LayoutTests/fast/images/resources/lenna.jpg new file mode 100644 index 000000000000..fd6178e6538c Binary files /dev/null and b/LayoutTests/fast/images/resources/lenna.jpg differ diff --git a/LayoutTests/http/tests/images/jpeg-partial-load-expected.png b/LayoutTests/http/tests/images/jpeg-partial-load-expected.png new file mode 100644 index 000000000000..8bc9cdb0ff14 Binary files /dev/null and b/LayoutTests/http/tests/images/jpeg-partial-load-expected.png differ diff --git a/LayoutTests/http/tests/images/jpeg-partial-load-expected.txt b/LayoutTests/http/tests/images/jpeg-partial-load-expected.txt new file mode 100644 index 000000000000..8b137891791f --- /dev/null +++ b/LayoutTests/http/tests/images/jpeg-partial-load-expected.txt @@ -0,0 +1 @@ + diff --git a/LayoutTests/http/tests/images/jpeg-partial-load.html b/LayoutTests/http/tests/images/jpeg-partial-load.html new file mode 100644 index 000000000000..3ff184696596 --- /dev/null +++ b/LayoutTests/http/tests/images/jpeg-partial-load.html @@ -0,0 +1,30 @@ + + diff --git a/LayoutTests/platform/chromium/http/tests/images/jpeg-partial-load-expected.png b/LayoutTests/platform/chromium/http/tests/images/jpeg-partial-load-expected.png new file mode 100644 index 000000000000..8bc9cdb0ff14 Binary files /dev/null and b/LayoutTests/platform/chromium/http/tests/images/jpeg-partial-load-expected.png differ diff --git a/LayoutTests/platform/mac/http/tests/images/jpeg-partial-load-expected.png b/LayoutTests/platform/mac/http/tests/images/jpeg-partial-load-expected.png new file mode 100644 index 000000000000..1a278659a5dd Binary files /dev/null and b/LayoutTests/platform/mac/http/tests/images/jpeg-partial-load-expected.png differ