Diff
Modified: trunk/LayoutTests/ChangeLog (235340 => 235341)
--- trunk/LayoutTests/ChangeLog 2018-08-27 01:00:21 UTC (rev 235340)
+++ trunk/LayoutTests/ChangeLog 2018-08-27 01:27:01 UTC (rev 235341)
@@ -1,3 +1,16 @@
+2018-08-26 Andy Estes <[email protected]>
+
+ [Apple Pay] Add a test for rendering Apple Pay buttons
+ https://bugs.webkit.org/show_bug.cgi?id=188947
+
+ Reviewed by Sam Weinig.
+
+ * http/tests/ssl/applepay/ApplePayButton.html: Added.
+ * platform/mac-sierra/http/tests/ssl/applepay/ApplePayButton-expected.png: Added.
+ * platform/mac-sierra/http/tests/ssl/applepay/ApplePayButton-expected.txt: Added.
+ * platform/mac/http/tests/ssl/applepay/ApplePayButton-expected.png: Added.
+ * platform/mac/http/tests/ssl/applepay/ApplePayButton-expected.txt: Added.
+
2018-08-24 Jer Noble <[email protected]>
Using Touch Bar to scrub video on Youtube results in video playback freeze
Added: trunk/LayoutTests/http/tests/ssl/applepay/ApplePayButton.html (0 => 235341)
--- trunk/LayoutTests/http/tests/ssl/applepay/ApplePayButton.html (rev 0)
+++ trunk/LayoutTests/http/tests/ssl/applepay/ApplePayButton.html 2018-08-27 01:27:01 UTC (rev 235341)
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Test rendering Apple Pay buttons</title>
+ <style>
+ .apple-pay-button {
+ -webkit-appearance: -apple-pay-button;
+ display: block;
+ }
+
+ .white {
+ -apple-pay-button-style: white;
+ }
+
+ .white-outline {
+ -apple-pay-button-style: white-outline;
+ }
+
+ .black {
+ -apple-pay-button-style: black;
+ }
+
+ .plain {
+ -apple-pay-button-type: plain;
+ }
+
+ .buy {
+ -apple-pay-button-type: buy;
+ }
+
+ .set-up {
+ -apple-pay-button-type: set-up;
+ }
+
+ .donate {
+ -apple-pay-button-type: donate;
+ }
+ </style>
+</head>
+<body>
+ <script>
+ for (let style of ["white", "white-outline", "black"]) {
+ for (let type of ["plain", "buy", "set-up", "donate"]) {
+ var button = document.createElement("button");
+ button.classList.add("apple-pay-button", style, type);
+ document.body.appendChild(button);
+ }
+ }
+ </script>
+</body>
+</html>
Added: trunk/LayoutTests/platform/mac/http/tests/ssl/applepay/ApplePayButton-expected.png
(Binary files differ)
Index: trunk/LayoutTests/platform/mac/http/tests/ssl/applepay/ApplePayButton-expected.png
===================================================================
--- trunk/LayoutTests/platform/mac/http/tests/ssl/applepay/ApplePayButton-expected.png 2018-08-27 01:00:21 UTC (rev 235340)
+++ trunk/LayoutTests/platform/mac/http/tests/ssl/applepay/ApplePayButton-expected.png 2018-08-27 01:27:01 UTC (rev 235341)
Property changes on: trunk/LayoutTests/platform/mac/http/tests/ssl/applepay/ApplePayButton-expected.png
___________________________________________________________________
Added: svn:mime-type
+image/png
\ No newline at end of property
Added: trunk/LayoutTests/platform/mac/http/tests/ssl/applepay/ApplePayButton-expected.txt (0 => 235341)
--- trunk/LayoutTests/platform/mac/http/tests/ssl/applepay/ApplePayButton-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/mac/http/tests/ssl/applepay/ApplePayButton-expected.txt 2018-08-27 01:27:01 UTC (rev 235341)
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderView at (0,0) size 800x600
+layer at (0,0) size 800x398
+ RenderBlock {HTML} at (0,0) size 800x398
+ RenderBody {BODY} at (8,8) size 784x382
+ RenderButton {BUTTON} at (2,0) size 100x30 [color=#000000D8] [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,32) size 140x30 [color=#000000D8] [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,64) size 140x30 [color=#000000D8] [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,96) size 140x30 [color=#000000D8] [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,128) size 100x30 [color=#000000D8] [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,160) size 140x30 [color=#000000D8] [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,192) size 140x30 [color=#000000D8] [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,224) size 140x30 [color=#000000D8] [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,256) size 100x30 [color=#000000D8] [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,288) size 140x30 [color=#000000D8] [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,320) size 140x30 [color=#000000D8] [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,352) size 140x30 [color=#000000D8] [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
Added: trunk/LayoutTests/platform/mac-sierra/http/tests/ssl/applepay/ApplePayButton-expected.png
(Binary files differ)
Index: trunk/LayoutTests/platform/mac-sierra/http/tests/ssl/applepay/ApplePayButton-expected.png
===================================================================
--- trunk/LayoutTests/platform/mac-sierra/http/tests/ssl/applepay/ApplePayButton-expected.png 2018-08-27 01:00:21 UTC (rev 235340)
+++ trunk/LayoutTests/platform/mac-sierra/http/tests/ssl/applepay/ApplePayButton-expected.png 2018-08-27 01:27:01 UTC (rev 235341)
Property changes on: trunk/LayoutTests/platform/mac-sierra/http/tests/ssl/applepay/ApplePayButton-expected.png
___________________________________________________________________
Added: svn:mime-type
+image/png
\ No newline at end of property
Added: trunk/LayoutTests/platform/mac-sierra/http/tests/ssl/applepay/ApplePayButton-expected.txt (0 => 235341)
--- trunk/LayoutTests/platform/mac-sierra/http/tests/ssl/applepay/ApplePayButton-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/mac-sierra/http/tests/ssl/applepay/ApplePayButton-expected.txt 2018-08-27 01:27:01 UTC (rev 235341)
@@ -0,0 +1,17 @@
+layer at (0,0) size 800x600
+ RenderView at (0,0) size 800x600
+layer at (0,0) size 800x398
+ RenderBlock {HTML} at (0,0) size 800x398
+ RenderBody {BODY} at (8,8) size 784x382
+ RenderButton {BUTTON} at (2,0) size 100x30 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,32) size 140x30 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,64) size 140x30 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,96) size 140x30 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,128) size 100x30 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,160) size 140x30 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,192) size 140x30 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,224) size 140x30 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,256) size 100x30 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,288) size 140x30 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,320) size 140x30 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]
+ RenderButton {BUTTON} at (2,352) size 140x30 [bgcolor=#C0C0C0] [border: (2px outset #C0C0C0)]