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

Side by Side Diff: LayoutTests/fast/events/keyboard-event-source-device-event-sender.html

Issue 1182313006: Populates sourceDevice attribute into KeyboardEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 6 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 | LayoutTests/fast/events/keyboard-event-source-device-event-sender-expected.txt » ('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 PUBLIC "-//IETF//DTD HTML//EN">
2 <script src="../../resources/js-test.js"></script>
3 <script type="text/javascript">
4 description('Test that keyboard events should have a sourceDevice and its firesT ouchEvents should be false.');
5
6 function keyHandler() {
7 debug(event.type);
8 shouldBeNonNull("event.sourceDevice");
9 shouldBeFalse("event.sourceDevice.firesTouchEvents");
10 }
11
12 if (window.eventSender) {
13 for (var evt of ['keydown', 'keypress', 'keyup']) {
14 document.addEventListener(evt, keyHandler);
15 }
16
17 eventSender.keyDown(' ');
18
19 } else {
20 debug('This test requires eventSender.');
21 }
22
23 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/keyboard-event-source-device-event-sender-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698