+2012-09-18 Noel Gordon <noel.gordon@gmail.com>
+
+ Add partial load tests for PNG images
+ https://bugs.webkit.org/show_bug.cgi?id=95707
+
+ 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 blue <img> background should be
+ visible.
+
+ Progressive load test: receive a partial number of image bytes, stall for 1 second
+ and then continue to receive all the image bytes. The entire test image should be
+ decoded and drawn and the blue <img> background should be visible.
+
+ * fast/images/resources/dice.png: Added: test image has alpha transparency.
+ * http/tests/images/png-partial-load-expected.png: Added.
+ * http/tests/images/png-partial-load-expected.txt: Added.
+ * http/tests/images/png-partial-load.html: Added.
+ * http/tests/images/png-progressive-load-expected.png: Added.
+ * http/tests/images/png-progressive-load-expected.txt: Added.
+ * http/tests/images/png-progressive-load.html: Added.
+ * platform/chromium/http/tests/images/png-partial-load-expected.png: Added.
+ * platform/mac/http/tests/images/png-partial-load-expected.png: Added.
+
2012-09-18 Kentaro Hara <haraken@chromium.org>
[V8] Notification.requestPermission(function() {alert();}) crashes
--- /dev/null
+<img style="background-color: blue" >
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText(true);
+ testRunner.waitUntilDone();
+}
+
+function loadAndStall()
+{
+ return "http://127.0.0.1:8000/resources/load-and-stall.php";
+}
+
+function pngImage()
+{
+ return "?name=../../../fast/images/resources/dice.png&mimeType=image%2Fpng";
+}
+
+function testDone()
+{
+ if (window.testRunner)
+ testRunner.notifyDone();
+}
+
+function runTest()
+{
+ document.querySelector("img").src = loadAndStall() + pngImage() + "&stallAt=45057&stallFor=60";
+ setTimeout(testDone, 500);
+}
+
+setTimeout(runTest, 0);
+</script>
--- /dev/null
+<img style="background-color: blue" >
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText(true);
+ testRunner.waitUntilDone();
+}
+
+function loadAndStall()
+{
+ return "http://127.0.0.1:8000/resources/load-and-stall.php";
+}
+
+function pngImage()
+{
+ return "?name=../../../fast/images/resources/dice.png&mimeType=image%2Fpng";
+}
+
+function testDone()
+{
+ if (window.testRunner)
+ testRunner.notifyDone();
+}
+
+function runTest()
+{
+ document.querySelector("img").src = loadAndStall() + pngImage() + "&stallAt=43008&stallFor=1";
+ setTimeout(testDone, 3000);
+}
+
+setTimeout(runTest, 0);
+</script>