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

Side by Side Diff: sky/tests/events/gesture-events.sky

Issue 857533002: Add support for GestureEvents to Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/events/GestureEvent.idl ('k') | sky/tests/events/gesture-events-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 <sky>
2 <import src="../resources/chai.sky" />
3 <import src="../resources/mocha.sky" />
4 <div id="target" />
5 <script>
6 describe("Gesture events", function() {
7 it("should be creatable", function() {
8 var evt = new GestureEvent("tap");
9 assert.ok(evt);
10 });
11
12 it("should be dispatchable", function() {
13 var div = document.getElementById("target");
14 var marker = false;
15 div.addEventListener("tap", function(evt) {
16 assert.isTrue(evt instanceof GestureEvent);
17 marker = true;
18 });
19 div.dispatchEvent(new GestureEvent("tap"));
20 assert.isTrue(marker);
21 });
22 });
23 </script>
24 </sky>
OLDNEW
« no previous file with comments | « sky/engine/core/events/GestureEvent.idl ('k') | sky/tests/events/gesture-events-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698