Added a delay before printing the last line of text to ensure that the two
lines consistently decode as separate chunks.
* http/tests/incremental/slow-utf8-css.pl:
* http/tests/incremental/slow-utf8-css-expected.txt:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17141
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-10-19 Geoffrey Garen <ggaren@apple.com>
+
+ Reviewed by ap.
+
+ Added a delay before printing the last line of text to ensure that the two
+ lines consistently decode as separate chunks.
+
+ * http/tests/incremental/slow-utf8-css.pl:
+ * http/tests/incremental/slow-utf8-css-expected.txt:
+
2006-10-19 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Mitz.
text run at (0,0) width 472: "Test for bug 10753: The beginning of a CSS file is missing."
text run at (472,0) width 0: " "
text run at (0,15) width 0: " "
- RenderText {#text} at (0,30) size 736x15
- text run at (0,30) width 736: "You should see a bug description one line above (i.e., this line shouldn't be the only one)."
+ RenderText {#text} at (0,30) size 536x15
+ text run at (0,30) width 536: "You should see a bug description on a separate line above this one."
#!/usr/bin/perl -w
-# flush the buffers after each print
+# Flush STDOUT after each print.
select (STDOUT);
$| = 1;
print "\n";
print "\xef\xbb\xbfTest for bug 10753: The beginning of a CSS file is missing.\n\n";
-for ($count=1; $count<4000; $count++) { # dump some BOMs to bypass CFNetwork buffering
+# Dump some BOMs to bypass CFNetwork buffering.
+for ($count = 1; $count < 4000; $count++) {
print "\xef\xbb\xbf";
}
-print "You should see a bug description one line above (i.e., this line shouldn't be the only one).";
+
+# Delay to force the second line of text to be decoded as a separate chunk.
+sleep 1;
+print "You should see a bug description on a separate line above this one.";