Chromium Code Reviews| Index: LayoutTests/http/tests/incremental/doc-write-before-end.pl |
| diff --git a/LayoutTests/http/tests/incremental/doc-write-before-end.pl b/LayoutTests/http/tests/incremental/doc-write-before-end.pl |
| index a89e5fd40f30615a59155242d1bfd1ddde2b49fe..56bbe15bdb75bf24297e049f72e6df8f22740581 100755 |
| --- a/LayoutTests/http/tests/incremental/doc-write-before-end.pl |
| +++ b/LayoutTests/http/tests/incremental/doc-write-before-end.pl |
| @@ -12,7 +12,7 @@ print "\n"; |
| print "\xef\xbb\xbf<!DOCTYPE html><body>"; |
| print "<script>if (window.testRunner) window.testRunner.dumpAsText();</script>"; |
| -print "<img src='404.gif' onerror='document.write(\"PASS\");'>"; |
| +print "<img src='404.gif' onerror='document.write(\"PASS\"); document.close()'>"; |
|
dcheng
2014/10/20 18:35:14
Why is the call to document.close() important here
|
| # Dump some spaces to bypass CFNetwork buffering. |
| for ($count = 1; $count < 4000; $count++) { |
| print " "; |