Pass | Tries to convert data member during Payment Request construction, irrespective of PMI. | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { const badMethod = Object.assign( {}, method, { data: 123 } // <- this will throw ); new PaymentRequest([badMethod], details); }", "PaymentMethodData.data can't be converted to an Object.")
at Test.<anonymous> ( /payment-request/constructor_convert_method_data.https.html:35:7) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { const badMethod = Object.assign( {}, method, { data: 123 } // <- this will throw ); new PaymentRequest([badMethod], details); }", "PaymentMethodData.data can't be converted to an Object.")
at Test.<anonymous> ( /payment-request/constructor_convert_method_data.https.html:35:7) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { const badMethod = Object.assign( {}, method, { data: 123 } // <- this will throw ); new PaymentRequest([badMethod], details); }", "PaymentMethodData.data can't be converted to an Object.")
at Test.<anonymous> ( /payment-request/constructor_convert_method_data.https.html:35:7) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { const badMethod = Object.assign( {}, method, { data: 123 } // <- this will throw ); new PaymentRequest([badMethod], details); }", "PaymentMethodData.data can't be converted to an Object.")
at Test.<anonymous> ( /payment-request/constructor_convert_method_data.https.html:35:7) |
|
Fail | Converts PaymentMethodData's data to mandated IDL type during PaymentRequest construction. | promise_test: Unhandled rejection with value: object "UnknownError: Renderer process could not establish or lost IPC connection to the PaymentRequest service in the browser process."Error
at get_stack (https://not-wpt.live/resources/testharness.js:4571:21)
at new AssertionError (https://not-wpt.live/resources/testharness.js:4564:22)
at assert (https://not-wpt.live/resources/testharness.js:4548:19)
at Test.<anonymous> (https://not-wpt.live/resources/testharness.js:764:29)
at Test.step (https://not-wpt.live/resources/testharness.js:2642:25)
at https://not-wpt.live/resources/testharness.js:2689:35 Asserts runNo asserts ran |