OLD | NEW |
---|---|
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 Loading... | |
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 } |
OLD | NEW |