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

Unified Diff: tests/html/event_test.dart

Issue 10867073: Adding polyfills for MouseEvent.offsetX and MouseEvent.offsetY so they work on FF. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding doc comments and unit test.wq Created 8 years, 4 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 | « lib/html/doc/interface/MouseEvent.dartdoc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/event_test.dart
diff --git a/tests/html/event_test.dart b/tests/html/event_test.dart
index e3a2e6766104fec42883b57b53df5890b7f783d9..d3e759aa187a9ae866a65794c25de3406d2cd0ac 100644
--- a/tests/html/event_test.dart
+++ b/tests/html/event_test.dart
@@ -119,6 +119,8 @@ main() {
Expect.equals(3, ev.screenY);
Expect.equals(4, ev.clientX);
Expect.equals(5, ev.clientY);
+ Expect.equals(4, ev.offsetX); // Same as clientX.
+ Expect.equals(5, ev.offsetY); // Same as clientY.
Expect.equals(6, ev.button);
Expect.isTrue(ev.ctrlKey);
Expect.isTrue(ev.altKey);
« no previous file with comments | « lib/html/doc/interface/MouseEvent.dartdoc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698