Commit b8b2f8fc authored by philn@webkit.org's avatar philn@webkit.org
Browse files

2011-02-15 Philippe Normand <pnormand@igalia.com>

        Reviewed by Martin Robinson.

        [GTK] media/controls-without-preload.html is flacky on 32-bits Debug
        https://bugs.webkit.org/show_bug.cgi?id=50518

        Refactored 2 media tests to avoid use of setTimeout and possible
        flakyness.

        * media/controls-without-preload.html:
        * media/video-display-toggle.html:
        * platform/gtk/Skipped:
        * platform/gtk/media/controls-without-preload-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78690 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 41b8caa0
2011-02-15 Philippe Normand <pnormand@igalia.com>
Reviewed by Martin Robinson.
[GTK] media/controls-without-preload.html is flacky on 32-bits Debug
https://bugs.webkit.org/show_bug.cgi?id=50518
Refactored 2 media tests to avoid use of setTimeout and possible
flakyness.
* media/controls-without-preload.html:
* media/video-display-toggle.html:
* platform/gtk/Skipped:
* platform/gtk/media/controls-without-preload-expected.txt:
2011-02-15 Philippe Normand <pnormand@igalia.com>
 
Reviewed by Martin Robinson.
......@@ -8,7 +8,10 @@
function start()
{
setSrcByTagName("video", findMediaFile("video", "content/test"));
setTimeout(finish, 200);
video = document.getElementsByTagName('video')[0];
video.load();
video.play();
video.addEventListener("canplaythrough", finish);
}
function finish()
......
......@@ -5,9 +5,11 @@
function toggleDisplay()
{
var video = document.getElementById('vid');
if (video.style.display == "none")
if (video.style.display == "none") {
video.style.display = "inline-block";
else
if (window.layoutTestController)
layoutTestController.notifyDone();
} else
video.style.display = "none";
document.body.offsetLeft;
}
......@@ -22,9 +24,6 @@
{
toggleDisplay();
toggleDisplay();
if (window.layoutTestController)
setTimeout(function() { layoutTestController.notifyDone(); }, 100);
}
</script>
</head>
......
......@@ -344,8 +344,6 @@ media/video-seek-past-end-playing.html
# https://bugs.webkit.org/show_bug.cgi?id=30198
media/video-source-error.html
media/video-display-toggle.html
# Tests generating new results
media/video-aspect-ratio.html
# Requires media engine closed caption support
......@@ -2275,9 +2273,6 @@ svg/zoom/page/zoom-zoom-coords.xhtml
# https://bugs.webkit.org/show_bug.cgi?id=50441
media/controls-drag-timebar.html
# https://bugs.webkit.org/show_bug.cgi?id=50518
media/controls-without-preload.html
# https://bugs.webkit.org/show_bug.cgi?id=50740
editing/spelling/spelling-backspace-between-lines.html
editing/spelling/spellcheck-paste.html
......
......@@ -6,19 +6,23 @@ layer at (0,0) size 800x600
RenderBlock {P} at (0,0) size 784x19
RenderText {#text} at (0,0) size 312x19
text run at (0,0) width 312: "The controls should not depend on preload value."
RenderBlock (anonymous) at (0,35) size 784x150
RenderBlock (anonymous) at (0,35) size 784x240
RenderText {#text} at (0,0) size 0x0
layer at (8,43) size 300x150
RenderVideo {VIDEO} at (0,0) size 300x150
layer at (8,43) size 300x150
RenderBlock (relative positioned) {DIV} at (0,0) size 300x150
layer at (8,173) size 300x20
RenderFlexibleBox (positioned) {DIV} at (0,130) size 300x20
RenderButton {INPUT} at (0,0) size 20x20
RenderFlexibleBox {DIV} at (20,0) size 200x20 [border: (1px solid #FFFFFF33) none (1px solid #FFFFFF33)]
RenderSlider {INPUT} at (1,0) size 198x20
layer at (8,43) size 320x240
RenderVideo {VIDEO} at (0,0) size 320x240
layer at (8,43) size 320x240
RenderBlock (relative positioned) {DIV} at (0,0) size 320x240
layer at (8,43) size 320x240 scrollHeight 250
RenderFlexibleBox (positioned) {DIV} at (0,0) size 320x240
RenderButton {INPUT} at (0,220) size 20x20
RenderFlexibleBox {DIV} at (20,220) size 220x20 [border: (1px solid #FFFFFF33) none (1px solid #FFFFFF33)]
RenderBlock (anonymous) at (1,0) size 65x30
RenderBlock {DIV} at (0,0) size 65x30
RenderText {#text} at (5,5) size 55x12
text run at (5,5) width 55: "00:00 / 00:06"
RenderSlider {INPUT} at (66,0) size 153x20
RenderBlock {DIV} at (2,4) size 12x12
RenderButton {INPUT} at (220,0) size 20x20
RenderButton {INPUT} at (240,0) size 20x20
RenderButton {INPUT} at (260,0) size 20x20
RenderButton {INPUT} at (280,0) size 20x20
RenderButton {INPUT} at (240,220) size 20x20
RenderButton {INPUT} at (260,220) size 20x20
RenderButton {INPUT} at (280,220) size 20x20
RenderButton {INPUT} at (300,220) size 20x20
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment