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

Unified Diff: tests/html/event_test.dart

Issue 12493003: Exposing Point & Rect types (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Sync to ToT Created 7 years, 9 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 | « tests/html/element_test.dart ('k') | tests/html/point_test.dart » ('j') | 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 c4c4609bb779caea7015a76ad889dfc646f55f77..c196e6452dfb4734e4cdc769a96e1e9865ed3616 100644
--- a/tests/html/event_test.dart
+++ b/tests/html/event_test.dart
@@ -115,12 +115,12 @@ main() {
metaKey: true, relatedTarget: new Element.tag('div')),
(ev) {
expect(ev.detail, 1);
- expect(ev.screenX, 2);
- expect(ev.screenYi, 3);
- expect(ev.clientX, 4);
- expect(ev.clientY, 5);
- expect(ev.offsetX, 4); // Same as clientX.
- expect(ev.offsetY, 5); // Same as clientY.
+ expect(ev.screen.x, 2);
+ expect(ev.screen.y, 3);
+ expect(ev.client.x, 4);
+ expect(ev.client.y, 5);
+ expect(ev.offset.x, 4); // Same as clientX.
+ expect(ev.offset.y, 5); // Same as clientY.
expect(ev.button, 6);
expect(ev.ctrlKey, isTrue);
expect(ev.altKey, isTrue);
@@ -212,10 +212,10 @@ main() {
// wheelDelta* properties are multiplied by 120 for some reason
expect(ev.wheelDeltaX, 120);
expect(ev.wheelDeltaY, 240);
- expect(ev.screenX, 3);
- expect(ev.screenY, 4);
- expect(ev.clientX, 5);
- expect(ev.clientY, 6);
+ expect(ev.screen.x, 3);
+ expect(ev.screen.y, 4);
+ expect(ev.client.x, 5);
+ expect(ev.client.y, 6);
expect(ev.ctrlKey, isTrue);
expect(ev.altKey, isTrue);
expect(ev.shiftKey, isTrue);
« no previous file with comments | « tests/html/element_test.dart ('k') | tests/html/point_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698