| <!DOCTYPE html> |
| <html> |
| <head> |
| <meta charset=utf-8> |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
| </head> |
| <body> |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| <script src="../utils.js"></script> |
| <script> |
| |
| 'use strict'; |
| |
| target_test((target, test) => { |
| target.addEventListener("pointerdown", event => { |
| assert_true(target.hasPointerCapture(event.pointerId)); |
| assert_throws_dom("NotFoundError", () => target.releasePointerCapture(event.pointerId + 1)); |
| assert_true(target.hasPointerCapture(event.pointerId)); |
| }); |
| ui.tap({ x: 50, y: 50 }).then(() => test.done()); |
| }, "Calling releasePointerCapture() in the 'pointerdown' event handler with a bogus pointer id raises an exception and does not alter pointer capture."); |
| |
| </script> |
| </body> |
| </html> |