Diff
Modified: trunk/LayoutTests/ChangeLog (292964 => 292965)
--- trunk/LayoutTests/ChangeLog 2022-04-18 19:36:51 UTC (rev 292964)
+++ trunk/LayoutTests/ChangeLog 2022-04-18 19:49:44 UTC (rev 292965)
@@ -9,6 +9,18 @@
* platform/ios/TestExpectations:
+2022-04-18 Ryan Haddad <[email protected]>
+
+ REGRESSION (249698@main): 4 payment request layout tests failing on Big Sur
+ https://bugs.webkit.org/show_bug.cgi?id=239461
+
+ Unreviewed test gardening.
+
+ * platform/mac-bigsur/http/tests/paymentrequest/payment-request-change-shipping-option.https-expected.txt: Added.
+ * platform/mac-bigsur/http/tests/paymentrequest/updateWith-shippingOptions.https-expected.txt: Added.
+ * platform/mac-bigsur/imported/w3c/web-platform-tests/payment-request/payment-request-constructor.https.sub-expected.txt: Added.
+ * platform/mac-bigsur/imported/w3c/web-platform-tests/payment-request/payment-request-shippingOption-attribute.https-expected.txt: Added.
+
2022-04-18 Martin Robinson <[email protected]>
TestRunner testdriver does not properly focus elements before sending keys to them
Added: trunk/LayoutTests/platform/mac-bigsur/http/tests/paymentrequest/payment-request-change-shipping-option.https-expected.txt (0 => 292965)
--- trunk/LayoutTests/platform/mac-bigsur/http/tests/paymentrequest/payment-request-change-shipping-option.https-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur/http/tests/paymentrequest/payment-request-change-shipping-option.https-expected.txt 2022-04-18 19:49:44 UTC (rev 292965)
@@ -0,0 +1,3 @@
+
+FAIL Test for PaymentRequest shippingOption attribute assert_equals: Must be 'initially-selected', as the selected member is true expected "initially-selected" but got "valid-1"
+
Added: trunk/LayoutTests/platform/mac-bigsur/http/tests/paymentrequest/updateWith-shippingOptions.https-expected.txt (0 => 292965)
--- trunk/LayoutTests/platform/mac-bigsur/http/tests/paymentrequest/updateWith-shippingOptions.https-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur/http/tests/paymentrequest/updateWith-shippingOptions.https-expected.txt 2022-04-18 19:49:44 UTC (rev 292965)
@@ -0,0 +1,4 @@
+
+PASS Calling `updateWith` with a new `shippingOptions` without `requestShipping` should not update any values.
+FAIL Calling `updateWith` with a new `shippingOptions` should not update any other values. assert_equals: shipping option 0 selected should change expected (boolean) false but got (undefined) undefined
+
Added: trunk/LayoutTests/platform/mac-bigsur/imported/w3c/web-platform-tests/payment-request/payment-request-constructor.https.sub-expected.txt (0 => 292965)
--- trunk/LayoutTests/platform/mac-bigsur/imported/w3c/web-platform-tests/payment-request/payment-request-constructor.https.sub-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur/imported/w3c/web-platform-tests/payment-request/payment-request-constructor.https.sub-expected.txt 2022-04-18 19:49:44 UTC (rev 292965)
@@ -0,0 +1,32 @@
+
+PASS If details.id is missing, assign an identifier
+PASS If details.id is missing, assign a unique identifier
+PASS If the same id is provided, then use it
+PASS Use ids even if they are strange
+PASS Use provided request ID
+PASS If the length of the methodData sequence is zero, then throw a TypeError
+PASS If payment method is duplicate, then throw a RangeError
+PASS Modifier method data must be JSON-serializable object
+PASS Rethrow any exceptions of JSON-serializing paymentMethod.data into a string
+PASS If details.total.amount.value is not a valid decimal monetary value, then throw a TypeError
+PASS PaymentDetailsBase members can be 0 length
+PASS If the first character of details.total.amount.value is U+002D HYPHEN-MINUS, then throw a TypeError
+PASS For each item in details.displayItems: if item.amount.value is not a valid decimal monetary value, then throw a TypeError
+PASS Negative values are allowed for displayItems.amount.value, irrespective of total amount
+PASS it handles high precision currency values without throwing
+PASS For each option in details.shippingOptions: if option.amount.value is not a valid decimal monetary value, then throw a TypeError
+PASS If there is no selected shipping option, then PaymentRequest.shippingOption remains null
+PASS If there is a selected shipping option, and requestShipping is set, then that option becomes synchronously selected
+FAIL If requestShipping is set, and if there is a multiple selected shipping options, only the last is selected. assert_equals: selected option must 'the-id expected "the-id" but got "FAIL1"
+PASS If there are any duplicate shipping option ids, and shipping is requested, then throw a TypeError
+PASS Throw when there are duplicate shippingOption ids, even if other values are different
+PASS Throw TypeError if modifier.total.amount.value is not a valid decimal monetary value
+PASS If amount.value of additionalDisplayItems is not a valid decimal monetary value, then throw a TypeError
+PASS Modifier data must be JSON-serializable object (an Array in this case)
+PASS Modifier data must be JSON-serializable object (an Object in this case)
+PASS Rethrow any exceptions of JSON-serializing modifier.data
+PASS Shipping type should be valid
+PASS PaymentRequest.shippingAddress must initially be null
+PASS If options.requestShipping is not set, then request.shippingType attribute is null.
+PASS If options.requestShipping is true, request.shippingType will be options.shippingType.
+
Added: trunk/LayoutTests/platform/mac-bigsur/imported/w3c/web-platform-tests/payment-request/payment-request-shippingOption-attribute.https-expected.txt (0 => 292965)
--- trunk/LayoutTests/platform/mac-bigsur/imported/w3c/web-platform-tests/payment-request/payment-request-shippingOption-attribute.https-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/mac-bigsur/imported/w3c/web-platform-tests/payment-request/payment-request-shippingOption-attribute.https-expected.txt 2022-04-18 19:49:44 UTC (rev 292965)
@@ -0,0 +1,8 @@
+
+PASS Must have a .shippingOption IDL attribute.
+PASS .shippingOption attribute must default to null.
+FAIL If there is a single shipping option, but selected is false, then .shippingOption must be null. assert_equals: expected null expected (object) null but got (string) "valid"
+FAIL If there are multiple shipping options all with `selected` set to false, then .shippingOption is null. assert_equals: expected null expected (object) null but got (string) "valid"
+PASS Given multiple shipping options, it must use the selected shipping option for .shippingOption value.
+FAIL If there are multiple of the shipping options with selected true, then .shippingOption is the last selected shipping option in order. assert_equals: expected 'pass' expected "pass" but got "fail"
+