OLD | NEW |
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 Loading... |
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> |
OLD | NEW |