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

Side by Side Diff: sky/tests/services/event-sender.sky

Issue 788353002: Restructure public side of input_events service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years 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 | « sky/tests/resources/event-sender.sky ('k') | sky/tools/debugger/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <sky> 1 <sky>
2 <import src="../resources/chai.sky" /> 2 <import src="../resources/chai.sky" />
3 <import src="../resources/mocha.sky" /> 3 <import src="../resources/mocha.sky" />
4 <import src="/mojo/services/public/interfaces/input_events/input_event_constants .mojom.sky" as="constants" /> 4 <import src="/mojo/services/input_events/public/interfaces/input_event_constants .mojom.sky" as="constants" />
5 <import src="/mojo/services/public/interfaces/input_events/input_events.mojom.sk y" as="events" /> 5 <import src="/mojo/services/input_events/public/interfaces/input_events.mojom.sk y" as="events" />
6 <import src="/sky/framework/shell.sky" as="shell" /> 6 <import src="/sky/framework/shell.sky" as="shell" />
7 <import src="/sky/services/testing/test_harness.mojom.sky" as="harness" /> 7 <import src="/sky/services/testing/test_harness.mojom.sky" as="harness" />
8 8
9 <script> 9 <script>
10 describe('Sky event sender', function() { 10 describe('Sky event sender', function() {
11 it('should be able to send events', function(done) { 11 it('should be able to send events', function(done) {
12 var sky = document.querySelector('sky') 12 var sky = document.querySelector('sky')
13 sky.focus(); 13 sky.focus();
14 sky.addEventListener('keypress', function(event) { 14 sky.addEventListener('keypress', function(event) {
15 assert.equal(event.type, 'keypress'); 15 assert.equal(event.type, 'keypress');
(...skipping 10 matching lines...) Expand all
26 text: 0x41, 26 text: 0x41,
27 unmodified_text: 0x41, 27 unmodified_text: 0x41,
28 is_char: true, 28 is_char: true,
29 character: 0x41, 29 character: 0x41,
30 }), 30 }),
31 })); 31 }));
32 }); 32 });
33 }); 33 });
34 </script> 34 </script>
35 </sky> 35 </sky>
OLDNEW
« no previous file with comments | « sky/tests/resources/event-sender.sky ('k') | sky/tools/debugger/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698