+2012-10-07 Noel Gordon <noel.gordon@gmail.com>
+
+ 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 <img> 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 <arpitabahuguna@gmail.com>
:first-line pseudo selector ignoring words created from :before
--- /dev/null
+<img style="background: green" >
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText(true);
+ testRunner.waitUntilDone();
+}
+
+function loadAndStall()
+{
+ return "http://127.0.0.1:8000/resources/load-and-stall.php";
+}
+
+function jpegImage()
+{
+ return "?name=../../../fast/images/resources/lenna.jpg&mimeType=image%2Fjpeg";
+}
+
+function testDone()
+{
+ window.testRunner && testRunner.notifyDone();
+}
+
+function runTest()
+{
+ document.querySelector("img").src = loadAndStall() + jpegImage() + "&stallAt=14337&stallFor=60";
+ setTimeout(testDone, 500);
+}
+
+setTimeout(runTest, 0);
+</script>