Title: [92405] trunk/LayoutTests
- Revision
- 92405
- Author
- [email protected]
- Date
- 2011-08-04 13:09:18 -0700 (Thu, 04 Aug 2011)
Log Message
Make fast/css/import-and-insert-rule-no-update.html less flaky
https://bugs.webkit.org/show_bug.cgi?id=65713
Reviewed by Dan Bernstein.
Wait until the @imported style sheet has finished loading before running the test.
* fast/css/import-and-insert-rule-no-update.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (92404 => 92405)
--- trunk/LayoutTests/ChangeLog 2011-08-04 20:06:48 UTC (rev 92404)
+++ trunk/LayoutTests/ChangeLog 2011-08-04 20:09:18 UTC (rev 92405)
@@ -1,5 +1,16 @@
2011-08-04 Anders Carlsson <[email protected]>
+ Make fast/css/import-and-insert-rule-no-update.html less flaky
+ https://bugs.webkit.org/show_bug.cgi?id=65713
+
+ Reviewed by Dan Bernstein.
+
+ Wait until the @imported style sheet has finished loading before running the test.
+
+ * fast/css/import-and-insert-rule-no-update.html:
+
+2011-08-04 Anders Carlsson <[email protected]>
+
Add more failing tests to the skipped list.
* platform/mac-lion/Skipped:
Modified: trunk/LayoutTests/fast/css/import-and-insert-rule-no-update.html (92404 => 92405)
--- trunk/LayoutTests/fast/css/import-and-insert-rule-no-update.html 2011-08-04 20:06:48 UTC (rev 92404)
+++ trunk/LayoutTests/fast/css/import-and-insert-rule-no-update.html 2011-08-04 20:09:18 UTC (rev 92405)
@@ -33,10 +33,21 @@
layoutTestController.notifyDone();
}
+function waitForSheetToFinishLoading()
+{
+ if (document.styleSheets.length && document.styleSheets[0].rules[1].styleSheet) {
+ test();
+ return;
+ }
+
+ window.setTimeout(waitForSheetToFinishLoading, 10)
+}
+
window._onload_ = function() {
document.styleSheets[0].insertRule('@import "green.css";', 1);
+
// We need to wait some time to let the stylesheet load before testing.
- window.setTimeout(test, 25);
+ window.setTimeout(waitForSheetToFinishLoading, 10);
};
</script>
</body></html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes