<rdar://problem/5674277>
Test media/video-display-toggle.html crashes on Windows
Appears to be some problem in DRT when test ends with layout pending.
Fixed by forcing layout, this improves test coverage too.
* media/video-display-toggle.html:
* platform/win/Skipped:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29794 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/media/video-display-toggle.html b/LayoutTests/media/video-display-toggle.html
index 9b708b7..9d789f6 100644
--- a/LayoutTests/media/video-display-toggle.html
+++ b/LayoutTests/media/video-display-toggle.html
@@ -1,6 +1,6 @@
<html>
<head>
- <script>
+ <script>
function toggleDisplay()
{
var video = document.getElementById('vid');
@@ -8,13 +8,13 @@
video.style.display = "inline-block";
else
video.style.display = "none";
-
+ document.body.offsetLeft;
}
function test()
{
if (window.layoutTestController)
layoutTestController.waitUntilDone();
- document.getElementById('vid').addEventListener("load", test2);
+ document.getElementById('vid').addEventListener("load", test2);
}
function test2()
{
@@ -22,7 +22,7 @@
toggleDisplay();
if (window.layoutTestController)
- layoutTestController.notifyDone();
+ layoutTestController.notifyDone();
}
</script>
</head>