Rebaseline media/modern-media-controls/rewind-button
authorgraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 11 Jun 2017 21:51:55 +0000 (21:51 +0000)
committergraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 11 Jun 2017 21:51:55 +0000 (21:51 +0000)
https://bugs.webkit.org/show_bug.cgi?id=173210

Reviewed by Jon Lee.

Use SVG assets.

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

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

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

index 5daf77a..323e165 100644 (file)
@@ -1,5 +1,19 @@
 2017-06-11  Antoine Quint  <graouts@apple.com>
 
+        Rebaseline media/modern-media-controls/rewind-button
+        https://bugs.webkit.org/show_bug.cgi?id=173210
+
+        Reviewed by Jon Lee.
+
+        Use SVG assets.
+
+        * media/modern-media-controls/rewind-button/rewind-button-expected.txt:
+        * media/modern-media-controls/rewind-button/rewind-button.html:
+        * platform/ios-simulator/TestExpectations:
+        * platform/mac/TestExpectations:
+
+2017-06-11  Antoine Quint  <graouts@apple.com>
+
         Rebaseline media/modern-media-controls/play-pause-button
         https://bugs.webkit.org/show_bug.cgi?id=173209
 
index 5a3702f..4c53a7f 100644 (file)
@@ -4,10 +4,9 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 
 PASS rewindButton.element.localName is "button"
-PASS rewindButton.element.classList.contains("icon") is true
 PASS rewindButton.element.classList.contains("rewind") is true
 PASS rewindButton.iconName is Icons.Rewind
-PASS rewindButton.element.style.webkitMaskImage.includes("macOS/rewind@") became true
+PASS rewindButton.image.element.style.webkitMaskImage.includes("macOS/Rewind.svg") became true
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 9876054..a0c08fb 100644 (file)
@@ -8,16 +8,13 @@ window.jsTestIsAsync = true;
 
 description("Testing the <code>RewindButton</code> class.");
 
-iconService.directoryPath = "../../../../Source/WebCore/Modules/modern-media-controls/images";
-
 const rewindButton = new RewindButton({ layoutTraits: LayoutTraits.macOS });
 
 shouldBeEqualToString("rewindButton.element.localName", "button");
-shouldBeTrue('rewindButton.element.classList.contains("icon")');
 shouldBeTrue('rewindButton.element.classList.contains("rewind")');
 shouldBe("rewindButton.iconName", "Icons.Rewind");
 
-shouldBecomeEqual('rewindButton.element.style.webkitMaskImage.includes("macOS/rewind@")', "true", finishJSTest);
+shouldBecomeEqual('rewindButton.image.element.style.webkitMaskImage.includes("macOS/Rewind.svg")', "true", finishJSTest);
 
 </script>
 <script src="../../../resources/js-test-post.js"></script>
index 605c709..c7efc38 100644 (file)
@@ -73,6 +73,7 @@ media/modern-media-controls/pip-button [ Pass ]
 media/modern-media-controls/pip-placard [ Pass ]
 media/modern-media-controls/placard [ Pass ]
 media/modern-media-controls/play-pause-button [ Pass ]
+media/modern-media-controls/rewind-button [ Pass ]
 
 # AirPlay cannot be tested on iOS
 webkit.org/b/166062 media/modern-media-controls/airplay-support [ Skip ]
index a578206..8220b39 100644 (file)
@@ -1568,6 +1568,7 @@ media/modern-media-controls/pip-button [ Pass ]
 media/modern-media-controls/pip-placard [ Pass ]
 media/modern-media-controls/placard [ Pass ]
 media/modern-media-controls/play-pause-button [ Pass ]
+media/modern-media-controls/rewind-button [ Pass ]
 media/modern-media-controls/volume-up-support [ Pass ]
 
 # These tests are iOS-specific