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

Side by Side Diff: samples/tests/samples/src/dartcombat/DartCombatTest.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 5
6 #library('dartcombat_tests'); 6 #library('dartcombat_tests');
7 7
8 #import('dart:html'); 8 #import('dart:html');
9 #import('dart:isolate'); 9 #import('dart:isolate');
10 #import('../../../../../client/testing/unittest/unittest.dart'); 10 #import('../../../../../client/testing/unittest/unittest_html.dart');
Siggi Cherem (dart-lang) 2012/03/01 16:21:24 I thought you were going to keep unittest.dart as
11 #import('../../../../dartcombat/dartcombatlib.dart'); 11 #import('../../../../dartcombat/dartcombatlib.dart');
12 12
13 ReceivePort testPort; 13 ReceivePort testPort;
14 14
15 main() { 15 main() {
16 testPort = new ReceivePort(); 16 testPort = new ReceivePort();
17 17
18 setupUI(); 18 setupUI();
19 // add relative URL to stylesheet to the correct location. Note: The CSS is 19 // add relative URL to stylesheet to the correct location. Note: The CSS is
20 // needed because the app uses a flexbox layout, which is then used to 20 // needed because the app uses a flexbox layout, which is then used to
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 141 }
142 142
143 doMouseEvent(String type, var targetCell) { 143 doMouseEvent(String type, var targetCell) {
144 final point = window.webkitConvertPointFromNodeToPage(targetCell, 144 final point = window.webkitConvertPointFromNodeToPage(targetCell,
145 new Point(5, 5)); 145 new Point(5, 5));
146 146
147 MouseEvent e = new MouseEvent(type, window, 0, 0, 0, point.x, point.y, 0, 147 MouseEvent e = new MouseEvent(type, window, 0, 0, 0, point.x, point.y, 0,
148 relatedTarget: targetCell); 148 relatedTarget: targetCell);
149 targetCell.on[type].dispatch(e); 149 targetCell.on[type].dispatch(e);
150 } 150 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698