Turn tests at media/modern-media-controls/playback-support back on
authorgraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Jul 2017 21:45:29 +0000 (21:45 +0000)
committergraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Jul 2017 21:45:29 +0000 (21:45 +0000)
https://bugs.webkit.org/show_bug.cgi?id=174639

Reviewed by Dean Jackson.

* media/modern-media-controls/playback-support/playback-support-button-click.html:
* platform/ios-simulator/TestExpectations:
* platform/mac/TestExpectations:

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

LayoutTests/ChangeLog
LayoutTests/media/modern-media-controls/playback-support/playback-support-button-click.html
LayoutTests/platform/ios-simulator/TestExpectations
LayoutTests/platform/mac/TestExpectations

index 587ffe0..392795e 100644 (file)
@@ -1,5 +1,16 @@
 2017-07-18  Antoine Quint  <graouts@apple.com>
 
 2017-07-18  Antoine Quint  <graouts@apple.com>
 
+        Turn tests at media/modern-media-controls/playback-support back on
+        https://bugs.webkit.org/show_bug.cgi?id=174639
+
+        Reviewed by Dean Jackson.
+
+        * media/modern-media-controls/playback-support/playback-support-button-click.html:
+        * platform/ios-simulator/TestExpectations:
+        * platform/mac/TestExpectations:
+
+2017-07-18  Antoine Quint  <graouts@apple.com>
+
         Turn tests at media/modern-media-controls/pip-support back on
         https://bugs.webkit.org/show_bug.cgi?id=174636
 
         Turn tests at media/modern-media-controls/pip-support back on
         https://bugs.webkit.org/show_bug.cgi?id=174636
 
index 455b1d1..c68281d 100644 (file)
@@ -2,17 +2,28 @@
 <script src="../resources/media-controls-loader.js" type="text/javascript"></script>
 <script src="../resources/media-controls-utils.js" type="text/javascript"></script>
 <body>
 <script src="../resources/media-controls-loader.js" type="text/javascript"></script>
 <script src="../resources/media-controls-utils.js" type="text/javascript"></script>
 <body>
-<video src="../../content/test.mp4" style="width: 320px; height: 240px;" controls autoplay></video>
-<div id="shadow"></div>
+<style type="text/css" media="screen">
+
+    video, #host {
+        position: absolute;
+        top: 0;
+        left: 0;
+        width: 320px;
+        height: 240px;
+    }
+    
+</style>
+<video src="../../content/test.mp4" controls autoplay></video>
+<div id="host"></div>
 <script type="text/javascript">
 
 window.jsTestIsAsync = true;
 
 description("Testing the <code>PlaybackSupport</code> behavior by clicking on the play/pause button.");
 
 <script type="text/javascript">
 
 window.jsTestIsAsync = true;
 
 description("Testing the <code>PlaybackSupport</code> behavior by clicking on the play/pause button.");
 
-const shadowRoot = document.querySelector("div#shadow").attachShadow({ mode: "open" });
+const host = document.querySelector("div#host");
 const media = document.querySelector("video");
 const media = document.querySelector("video");
-const mediaController = createControls(shadowRoot, media, null);
+const mediaController = createControls(host, media, null);
 
 let numberOfPlayEvents = 0;
 media.addEventListener("play", function() {
 
 let numberOfPlayEvents = 0;
 media.addEventListener("play", function() {
@@ -25,7 +36,7 @@ media.addEventListener("play", function() {
         clickPlayPauseButton();
     else {
         debug("");
         clickPlayPauseButton();
     else {
         debug("");
-        shadowRoot.host.remove();
+        host.remove();
         media.remove();
         finishJSTest();
     }
         media.remove();
         finishJSTest();
     }
@@ -44,7 +55,6 @@ function clickPlayPauseButton()
     debug("Pressing on the play/pause button");
     window.requestAnimationFrame(() => pressOnElement(mediaController.controls.playPauseButton.element));
 }
     debug("Pressing on the play/pause button");
     window.requestAnimationFrame(() => pressOnElement(mediaController.controls.playPauseButton.element));
 }
-
 </script>
 <script src="../../../resources/js-test-post.js"></script>
 </body>
 </script>
 <script src="../../../resources/js-test-post.js"></script>
 </body>
index 340b2bb..0d57e5e 100644 (file)
@@ -92,6 +92,7 @@ media/modern-media-controls/pip-support/ipad [ Pass ]
 media/modern-media-controls/placard [ Pass ]
 media/modern-media-controls/placard-support [ Pass ]
 media/modern-media-controls/play-pause-button [ Pass ]
 media/modern-media-controls/placard [ Pass ]
 media/modern-media-controls/placard-support [ Pass ]
 media/modern-media-controls/play-pause-button [ Pass ]
+media/modern-media-controls/playback-support [ Pass ]
 media/modern-media-controls/rewind-button [ Pass ]
 media/modern-media-controls/scheduler [ Pass ]
 media/modern-media-controls/scrubber [ Pass ]
 media/modern-media-controls/rewind-button [ Pass ]
 media/modern-media-controls/scheduler [ Pass ]
 media/modern-media-controls/scrubber [ Pass ]
@@ -130,6 +131,7 @@ media/modern-media-controls/button/button-click-on-edges.html [ Skip ]
 media/modern-media-controls/placard-support/placard-support-pip.html [ Skip ]
 media/modern-media-controls/media-documents/media-document-audio-mac-sizing.html [ Skip ]
 media/modern-media-controls/media-documents/media-document-video-mac-sizing.html [ Skip ]
 media/modern-media-controls/placard-support/placard-support-pip.html [ Skip ]
 media/modern-media-controls/media-documents/media-document-audio-mac-sizing.html [ Skip ]
 media/modern-media-controls/media-documents/media-document-video-mac-sizing.html [ Skip ]
+media/modern-media-controls/playback-support/playback-support-button-click.html [ Skip ]
 
 webkit.org/b/172965 media/track/track-cue-overlap-snap-to-lines-not-set.html [ Failure ]
 
 
 webkit.org/b/172965 media/track/track-cue-overlap-snap-to-lines-not-set.html [ Failure ]
 
index 64267cc..65e41a6 100644 (file)
@@ -1573,6 +1573,7 @@ media/modern-media-controls/pip-support [ Pass ]
 media/modern-media-controls/placard [ Pass ]
 media/modern-media-controls/placard-support [ Pass ]
 media/modern-media-controls/play-pause-button [ Pass ]
 media/modern-media-controls/placard [ Pass ]
 media/modern-media-controls/placard-support [ Pass ]
 media/modern-media-controls/play-pause-button [ Pass ]
+media/modern-media-controls/playback-support [ Pass ]
 media/modern-media-controls/rewind-button [ Pass ]
 media/modern-media-controls/scheduler [ Pass ]
 media/modern-media-controls/scrubber [ Pass ]
 media/modern-media-controls/rewind-button [ Pass ]
 media/modern-media-controls/scheduler [ Pass ]
 media/modern-media-controls/scrubber [ Pass ]