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

Unified Diff: sky/tests/events/pointer-events.sky

Issue 846783003: Add PointerEvent interface 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/events/PointerEvent.idl ('k') | sky/tests/events/pointer-events-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/events/pointer-events.sky
diff --git a/sky/tests/events/pointer-events.sky b/sky/tests/events/pointer-events.sky
new file mode 100644
index 0000000000000000000000000000000000000000..57ee4e9921a3006264b6a001f9cf4bbd5494db04
--- /dev/null
+++ b/sky/tests/events/pointer-events.sky
@@ -0,0 +1,16 @@
+<sky>
+<import src="../resources/chai.sky" />
+<import src="../resources/mocha.sky" />
+<script>
+describe("Pointer events", function() {
+ it("should be constructable", function() {
+ var evt = new PointerEvent("pointerdown", {
+ kind: "touch",
+ });
+ assert.ok(evt);
+ assert.equal(evt.kind, "touch");
+ assert.equal(evt.radiusMajor, 0);
+ });
+});
+</script>
+</sky>
« no previous file with comments | « sky/engine/core/events/PointerEvent.idl ('k') | sky/tests/events/pointer-events-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698