same-object-attributes.https.html (645B)
1 <!DOCTYPE html> 2 <meta charset=utf-8> 3 <link rel="help" href="https://w3c.github.io/payment-handler/"> 4 <title>Test for [SameObject] attributes</title> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <script src="/service-workers/service-worker/resources/test-helpers.sub.js"></script> 8 <script> 9 10 promise_test(async t => { 11 const registration = await service_worker_unregister_and_register( 12 t, 'app-simple.js', 'payment-app/'); 13 await wait_for_state(t, registration.installing, 'activated'); 14 15 assert_equals(registration.paymentManager, registration.paymentManager); 16 }); 17 18 </script>