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

Unified Diff: client/tests/client/samples/dartcombat/dartcombat_tests.dart

Issue 8404013: Add constructors to all the event classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Get rid of html testing stuff and fix uses of init*Event. Created 9 years, 2 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
Index: client/tests/client/samples/dartcombat/dartcombat_tests.dart
diff --git a/client/tests/client/samples/dartcombat/dartcombat_tests.dart b/client/tests/client/samples/dartcombat/dartcombat_tests.dart
index 8bd289b056d2b26eb160a74ef7aa93a739ad90b9..ddc29203d53e0e55f18210db3bd72fed671de5f9 100644
--- a/client/tests/client/samples/dartcombat/dartcombat_tests.dart
+++ b/client/tests/client/samples/dartcombat/dartcombat_tests.dart
@@ -151,9 +151,8 @@ class DartCombatTests extends UnitTestSuite {
final point = window.webkitConvertPointFromNodeToPage(targetCell,
new Point(5, 5));
- MouseEvent e = document.createEvent('MouseEvents');
- e.initMouseEvent(type, true, true, window, 0, 0, 0, point.x, point.y,
- false, false, false, false, 0, targetCell);
+ MouseEvent e = new MouseEvent(type, window, 0, 0, 0, point.x, point.y, 0,
+ canBubble: true, cancelable: true, relatedTarget: targetCell);
targetCell.on[type].dispatch(e);
}
}

Powered by Google App Engine
This is Rietveld 408576698