blob: a67b388d130eab9310f67474edc2dbc39e5ff315 [file] [log] [blame]
CONSOLE WARNING: line 248: Cannot yet distinguish credit, debit, and prepaid cards.
CONSOLE WARNING: line 252: Cannot yet distinguish credit, debit, and prepaid cards.
This is a testharness.js-based test.
Harness Error. harness_status.status = 1 , harness_status.message = 17 duplicate test names: "Duplicate supported payment method identifiers should not throw.", "Duplicate supported payment method identifiers in modifiers should not throw.", "Undefined currency code should throw", "Invalid amount "-" should throw", "Invalid amount "notdigits" should throw", "Invalid amount "ALSONOTDIGITS" should throw", "Invalid amount "10." should throw", "Invalid amount ".99" should throw", "Invalid amount "-10." should throw", "Invalid amount "-.99" should throw", "Invalid amount "10-" should throw", "Invalid amount "1-0" should throw", "Invalid amount "1.0.0" should throw", "Invalid amount "1/3" should throw", "Empty amount should throw", "Null amount should throw", "Undefined amount should throw"
PASS Creating a PaymentRequest with empty parameters should not throw or crash.
PASS Creating a PaymentRequest with extra parameters should not throw or crash.
PASS Creating a PaymentRequest with omitted optional parameters should not throw or crash.
PASS Creating a PaymentRequest with undefined optional parameters should not throw or crash.
PASS Creating a PaymentRequest with null optional parameters should not throw or crash.
PASS PaymentRequest should have readonly shippingAddress and shippingOption properties.
PASS PaymentRequest should have onShippingAddressChange and onShippingOptionChange events.
PASS PaymentRequest should have methods abort() and show().
PASS PaymentRequest.abort() and PaymentRequest.show() should take no parameters.
PASS Valid data causes no errors.
PASS Shipping option identifier should be null if shipping request is omitted.
PASS Shipping option identifier should be null if shipping is explicitly not requested.
PASS Shipping option identifier should be null if no shipping options are provided.
PASS Shipping option identifier should be null if the single provided option is not selected.
PASS Shipping option identifier should default to the single provided option if it is selected.
PASS Shipping option identifier should be null if multiple unselected shipping options are provided.
PASS Shipping option identifier should default to the selected shipping option.
PASS Shipping option identifier should default to the last selected shipping option, if multiple are selected.
PASS No shipping option selected for duplicate shipping option identifiers.
PASS Shipping type should be null if shipping is explicitly not requested.
PASS Shipping type should be 'shipping' by default if shipping type isn't specified.
PASS Shipping type should be null if shipping type is specified but requestShipping is false.
PASS Shipping type should be 'shipping' if shipping type is specified as 'shipping'.
PASS Shipping type should be 'delivery' if shipping type is specified as 'delivery'.
PASS Shipping type should be 'pickup' if shipping type is specified as 'pickup'.
PASS Shipping type should be 'shipping' if shipping type is specified as undefined.
PASS Undefined display items should not throw.
PASS Empty display items should not throw.
PASS Non-negative total value should not throw.
PASS Negative line item value should not throw.
PASS Undefined modifiers should not throw.
PASS Non-negative total value in PaymentDetailsModifier should not throw.
PASS Duplicate supported payment method identifiers should not throw.
PASS Duplicate supported payment method identifiers should not throw.
PASS Duplicate supported payment method identifiers in modifiers should not throw.
PASS Duplicate supported payment method identifiers in modifiers should not throw.
PASS Android Pay parameters for test environment with gateway token should not throw.
PASS Android Pay parameters for produciton environment with network token should not throw.
PASS Basic card parameters should not throw.
PASS Empty basic card parameters should not throw.
PASS Invalid basic card parameters should not throw when method name is not "basic-card".
PASS Invalid basic card parameters should not throw even when method name is "basic-card".
PASS Android Pay parameters for network token without environment key should not throw.
PASS Invalid Android Pay parameters should not throw when method name is not "https://android.com/pay".
PASS Invalid Android Pay parameters should not throw even when method name is "https://android.com/pay".
PASS abort() without show() should reject with error
PASS PaymentRequest constructor should throw for incorrect parameter types.
PASS PaymentRequest constructor should throw for undefined required parameters.
PASS PaymentRequest constructor should throw for null required parameter.
PASS Empty list of supported payment method identifiers should throw TypeError.
PASS Empty supported payment method identifiers should throw TypeError.
PASS Absence of total should throw TypeError.
PASS Negative total value should throw a TypeError.
PASS Negative total value in PaymentDetailsModifier should throw a TypeError.
PASS Null supportedMethods in modifiers should throw TypeError.
PASS Undefined supportedMethods in modifiers should throw TypeError.
PASS Empty supportedMethods in modifiers should throw TypeError.
PASS Absence of supportedMethods in modifiers should throw TypeError.
PASS Empty modifiers should throw TypeError.
PASS Empty details should throw
PASS Null items should throw
PASS Null shipping options should throw
PASS Undefined PaymentShippingType value for shppingType should throw a TypeError
PASS Null for shppingType should throw a TypeError
PASS Array value for shppingType should throw a TypeError
PASS Object value for shppingType should throw a TypeError
PASS Numeric value for shppingType should throw a TypeError
PASS Array value for payment method specific data parameter should throw
PASS String value for payment method specific data parameter should throw
PASS Numeric value for payment method specific data parameter should throw
PASS Infinite JSON value for one of the payment method specific data pieces should throw
PASS Null for payment method specific data parameter should throw
PASS Empty string for payment method specific data parameter should throw
PASS If details contains a null value for error, then throw a TypeError
PASS If details contains an empty string value for error, then throw a TypeError
PASS If details contains a non-empty string value for error, then throw a TypeError
PASS Undefined currency code should throw
PASS Invalid amount "-" should throw
PASS Invalid amount "notdigits" should throw
PASS Invalid amount "ALSONOTDIGITS" should throw
PASS Invalid amount "10." should throw
PASS Invalid amount ".99" should throw
PASS Invalid amount "-10." should throw
PASS Invalid amount "-.99" should throw
PASS Invalid amount "10-" should throw
PASS Invalid amount "1-0" should throw
PASS Invalid amount "1.0.0" should throw
PASS Invalid amount "1/3" should throw
PASS Empty amount should throw
PASS Null amount should throw
PASS Undefined amount should throw
PASS Undefined currency code should throw
PASS Invalid amount "-" should throw
PASS Invalid amount "notdigits" should throw
PASS Invalid amount "ALSONOTDIGITS" should throw
PASS Invalid amount "10." should throw
PASS Invalid amount ".99" should throw
PASS Invalid amount "-10." should throw
PASS Invalid amount "-.99" should throw
PASS Invalid amount "10-" should throw
PASS Invalid amount "1-0" should throw
PASS Invalid amount "1.0.0" should throw
PASS Invalid amount "1/3" should throw
PASS Empty amount should throw
PASS Null amount should throw
PASS Undefined amount should throw
PASS Undefined currency code should throw
PASS Invalid amount "-" should throw
PASS Invalid amount "notdigits" should throw
PASS Invalid amount "ALSONOTDIGITS" should throw
PASS Invalid amount "10." should throw
PASS Invalid amount ".99" should throw
PASS Invalid amount "-10." should throw
PASS Invalid amount "-.99" should throw
PASS Invalid amount "10-" should throw
PASS Invalid amount "1-0" should throw
PASS Invalid amount "1.0.0" should throw
PASS Invalid amount "1/3" should throw
PASS Empty amount should throw
PASS Null amount should throw
PASS Undefined amount should throw
PASS Undefined currency code should throw
PASS Invalid amount "-" should throw
PASS Invalid amount "notdigits" should throw
PASS Invalid amount "ALSONOTDIGITS" should throw
PASS Invalid amount "10." should throw
PASS Invalid amount ".99" should throw
PASS Invalid amount "-10." should throw
PASS Invalid amount "-.99" should throw
PASS Invalid amount "10-" should throw
PASS Invalid amount "1-0" should throw
PASS Invalid amount "1.0.0" should throw
PASS Invalid amount "1/3" should throw
PASS Empty amount should throw
PASS Null amount should throw
PASS Undefined amount should throw
PASS Undefined currency code should throw
PASS Invalid amount "-" should throw
PASS Invalid amount "notdigits" should throw
PASS Invalid amount "ALSONOTDIGITS" should throw
PASS Invalid amount "10." should throw
PASS Invalid amount ".99" should throw
PASS Invalid amount "-10." should throw
PASS Invalid amount "-.99" should throw
PASS Invalid amount "10-" should throw
PASS Invalid amount "1-0" should throw
PASS Invalid amount "1.0.0" should throw
PASS Invalid amount "1/3" should throw
PASS Empty amount should throw
PASS Null amount should throw
PASS Undefined amount should throw
Harness: the test ran to completion.