Try to make this test more robust.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Apr 2011 19:17:18 +0000 (19:17 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Apr 2011 19:17:18 +0000 (19:17 +0000)
* fast/blockflow/broken-ideographic-font.html: Ensure that the font has been loaded before
letting the test finish.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@82794 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/blockflow/broken-ideographic-font.html

index 51943022eca65e46adffc0791b84be819e0328a1..a0e2cc820845acb7a0107edaebeedd72288f22ed 100644 (file)
@@ -1,3 +1,10 @@
+2011-04-03  Dan Bernstein  <mitz@apple.com>
+
+        Try to make this test more robust.
+
+        * fast/blockflow/broken-ideographic-font.html: Ensure that the font has been loaded before
+        letting the test finish.
+
 2011-03-21  Ryosuke Niwa  <rniwa@webkit.org>
 
         Reviewed by Eric Seidel.
index 5e7f3418e1898c1218dcd56d5544189fadd62843..057b2c8070eda35bcd5b233899f07755b7206dfa 100644 (file)
@@ -55,11 +55,6 @@ p {
 }
 
 </style>
-  
-<script type="text/javascript">
-
-</script>
-  
 </head>
 <body>
 
@@ -67,6 +62,14 @@ p {
 <div class="basic d0"><p>第一段落 paragraph 1</p><p>第二段落 paragraph 2</p></div>
 <div class="basic d1 vert"><p>第一段落 paragraph 1</p><p>第二段落 paragraph 2</p></div>
 </div>
+<script>
+    if (window.layoutTestController)
+        layoutTestController.waitUntilDone();
 
+    document.body.offsetTop;
+    var image = new Image();
+    image.addEventListener("error", function() { if (layoutTestController) layoutTestController.notifyDone(); });
+    image.src = "resources/MakibaFont13.ttf";
+</script>
 </body>
-</html>
\ No newline at end of file
+</html>