Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/pointerlock/pointerlock_remove_target_on_mouseup-manual.html

Issue 2846993002: [PointerLock] Add null check before dispatching click event (Closed)
Patch Set: rbyers's comments: Use wpt/pointerlock/; Rename test Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt_automation/pointerlock/pointerlock_common_input.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>Remove PointerLock target on mouseup</title>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <p>Click anywhere to run the test. If a "PASS" result appears the test passes, o therwise it fails</p>
7 <div id="target"></div>
8 <script>
9 async_test(t => {
10 const target = document.getElementById('target');
11 document.addEventListener('mousedown', t.step_func(() => {
12 target.requestPointerLock();
13 document.addEventListener('mouseup', t.step_func(() => {
14 target.remove();
15 assert_true(document.pointerLockElement === null, 'Pointer lock exit ed!');
16 t.done();
17 }));
18 }));
19 })
20 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt_automation/pointerlock/pointerlock_common_input.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698