+2007-08-11 Antti Koivisto <antti@apple.com>
+
+ Reviewed by Darin.
+
+ Add test for http://bugs.webkit.org/attachment.cgi?id=15818&action=edit which
+ Mitz fixed in r24973.
+
+ I had a fix for <rdar://problem/5267021>
+ REGRESSION: Loading Slashdot Firehose is 9X slower on Safari 3.0 than Safari 2.0
+ which turned out to be a dublicate.
+
+ At least we can use the layout test I did.
+
+ * http/tests/local/style-access-before-stylesheet-loaded-expected.txt: Added.
+ * http/tests/local/style-access-before-stylesheet-loaded.html: Added.
+
2007-08-11 Matt Lilek <pewtermoose@gmail.com>
Reviewed over and over and over by Adam Roben.
--- /dev/null
+<html>
+<head>
+<script>
+if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+function test() {
+ var start = new Date().getTime();
+ var e = document.getElementById('t');
+ var console = document.getElementById('console');
+ for (n = 0; n < 1000; n++)
+ e.offsetLeft;
+ var time = new Date().getTime() - start;
+ console.innerHTML = ((time < 500) ? "<span style='color:green'>PASS</span> " : "<span style='color:red'>FAIL</span> ");// + time;
+}
+</script>
+
+<link rel=stylesheet href="http://127.0.0.1:8000/local/slow-css-pass.cgi">
+
+</head>
+<body>
+This page has a slow loading external style sheet. Calling offsetLeft shouldn't be slow when stylesheets are loading.
+Works as HTTP test only.
+<div id=console></div>
+<div id=t></div>
+<script>
+// increase document complexity a bit
+for (n = 0; n < 500; n++)
+ document.write("<div><span></span><div><span></span></div></div>");
+setTimeout(test, 0);
+</script>
+</body>
+</html>