AX: [iOS] Layout Test accessibility/ios-simulator/video-elements-ios.html is failing
authorn_wang@apple.com <n_wang@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Oct 2017 21:41:01 +0000 (21:41 +0000)
committern_wang@apple.com <n_wang@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Oct 2017 21:41:01 +0000 (21:41 +0000)
https://bugs.webkit.org/show_bug.cgi?id=177954
<rdar://problem/34838094>

The test is flaky because that the video element has triggered the canplaythrough event before
we registered the event handler. Fixed it by setting the source after registering the handler.

Reviewed by Chris Fleizach.

* accessibility/ios-simulator/video-elements-ios.html:

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

LayoutTests/ChangeLog
LayoutTests/accessibility/ios-simulator/video-elements-ios.html

index 45250ae..3105ea5 100644 (file)
@@ -1,3 +1,16 @@
+2017-10-06  Nan Wang  <n_wang@apple.com>
+
+        AX: [iOS] Layout Test accessibility/ios-simulator/video-elements-ios.html is failing
+        https://bugs.webkit.org/show_bug.cgi?id=177954
+        <rdar://problem/34838094>
+
+        The test is flaky because that the video element has triggered the canplaythrough event before
+        we registered the event handler. Fixed it by setting the source after registering the handler.
+
+        Reviewed by Chris Fleizach.
+
+        * accessibility/ios-simulator/video-elements-ios.html:
+
 2017-10-06  Sam Weinig  <sam@webkit.org>
 
         Add basic support for getting a ImageBitmapRenderingContext
index 6028384..0215624 100644 (file)
@@ -5,10 +5,7 @@
 </head>
 <body id="body">
 
-<video width="320" height="240" playsinline id="video" aria-label="Video label1">
-  <source src="../../media/content/counting.mp4" type="video/mp4">
-  Your browser does not support the video tag.
-</video>
+<video width="320" height="240" playsinline id="video" aria-label="Video label1"></video>
 
 <video width="320" height="240" controls id="video2" aria-label="Video label2">
   <source src="../../media/content/counting.mp4" type="video/mp4">
@@ -54,6 +51,7 @@
             finishJSTest();
         };
         
+        vid.src = "../../media/content/counting.mp4";
     }
     
 </script>