Rebaseline media/modern-media-controls/tracks-button
authorgraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Jun 2017 01:30:11 +0000 (01:30 +0000)
committergraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Jun 2017 01:30:11 +0000 (01:30 +0000)
https://bugs.webkit.org/show_bug.cgi?id=173220

Reviewed by Dean Jackson.

Use SVG assets.

* media/modern-media-controls/tracks-button/tracks-button-expected.txt:
* media/modern-media-controls/tracks-button/tracks-button.html:
* platform/ios-simulator/TestExpectations:
* platform/mac/TestExpectations:

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

LayoutTests/ChangeLog
LayoutTests/media/modern-media-controls/tracks-button/tracks-button-expected.txt
LayoutTests/media/modern-media-controls/tracks-button/tracks-button.html
LayoutTests/platform/ios-simulator/TestExpectations
LayoutTests/platform/mac/TestExpectations

index 0bf8293..b8cb724 100644 (file)
@@ -1,5 +1,19 @@
 2017-06-13  Antoine Quint  <graouts@apple.com>
 
+        Rebaseline media/modern-media-controls/tracks-button
+        https://bugs.webkit.org/show_bug.cgi?id=173220
+
+        Reviewed by Dean Jackson.
+
+        Use SVG assets.
+
+        * media/modern-media-controls/tracks-button/tracks-button-expected.txt:
+        * media/modern-media-controls/tracks-button/tracks-button.html:
+        * platform/ios-simulator/TestExpectations:
+        * platform/mac/TestExpectations:
+
+2017-06-13  Antoine Quint  <graouts@apple.com>
+
         Rebaseline media/modern-media-controls/time-control
         https://bugs.webkit.org/show_bug.cgi?id=173218
 
index 7fdcb52..a7068ea 100644 (file)
@@ -4,11 +4,10 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 
 PASS tracksButton.element.localName is "button"
-PASS tracksButton.element.classList.contains("icon") is true
 PASS tracksButton.element.classList.contains("tracks") is true
 PASS tracksButton.iconName is Icons.Tracks
-PASS tracksButton.element.style.webkitMaskImage.includes("macOS/media-selection@") became true
-PASS fullscreenTracksButton.element.style.webkitMaskImage.includes("macOS/media-selection-fullscreen@") became true
+PASS tracksButton.image.element.style.webkitMaskImage.includes("macOS/MediaSelector.svg") became true
+PASS fullscreenTracksButton.image.element.style.webkitMaskImage.includes("macOS/MediaSelector-fullscreen.svg") became true
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 8f87ac3..b0ea98c 100644 (file)
@@ -11,14 +11,13 @@ description("Testing the <code>TracksButton</code> class.");
 const tracksButton = new TracksButton({ layoutTraits: LayoutTraits.macOS });
 
 shouldBeEqualToString("tracksButton.element.localName", "button");
-shouldBeTrue('tracksButton.element.classList.contains("icon")');
 shouldBeTrue('tracksButton.element.classList.contains("tracks")');
 shouldBe("tracksButton.iconName", "Icons.Tracks");
 
 const fullscreenTracksButton = new TracksButton({ layoutTraits: LayoutTraits.macOS | LayoutTraits.Fullscreen });
 
-shouldBecomeEqual('tracksButton.element.style.webkitMaskImage.includes("macOS/media-selection@")', "true", () => {
-    shouldBecomeEqual('fullscreenTracksButton.element.style.webkitMaskImage.includes("macOS/media-selection-fullscreen@")', "true", finishJSTest);
+shouldBecomeEqual('tracksButton.image.element.style.webkitMaskImage.includes("macOS/MediaSelector.svg")', "true", () => {
+    shouldBecomeEqual('fullscreenTracksButton.image.element.style.webkitMaskImage.includes("macOS/MediaSelector-fullscreen.svg")', "true", finishJSTest);
 });
 
 </script>
index 19c0e64..73870f3 100644 (file)
@@ -94,6 +94,7 @@ media/modern-media-controls/slider [ Pass ]
 media/modern-media-controls/status-label [ Pass ]
 media/modern-media-controls/time-control [ Pass ]
 media/modern-media-controls/time-label [ Pass ]
+media/modern-media-controls/tracks-button [ Pass ]
 
 # AirPlay cannot be tested on iOS
 webkit.org/b/166062 media/modern-media-controls/airplay-support [ Skip ]
index 4a001a4..dab9e58 100644 (file)
@@ -1576,6 +1576,7 @@ media/modern-media-controls/slider [ Pass ]
 media/modern-media-controls/status-label [ Pass ]
 media/modern-media-controls/time-control [ Pass ]
 media/modern-media-controls/time-label [ Pass ]
+media/modern-media-controls/tracks-button [ Pass ]
 media/modern-media-controls/volume-up-support [ Pass ]
 
 # These tests are iOS-specific