OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library interactive_test; | 5 library interactive_test; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:html'; | 8 import 'dart:html'; |
9 import '../../pkg/unittest/lib/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
10 import '../../pkg/unittest/lib/html_individual_config.dart'; | 10 import 'package:unittest/html_individual_config.dart'; |
11 import 'utils.dart'; | 11 import 'utils.dart'; |
12 | 12 |
13 | 13 |
14 main() { | 14 main() { |
15 useHtmlIndividualConfiguration(); | 15 useHtmlIndividualConfiguration(); |
16 | 16 |
17 group('Geolocation', () { | 17 group('Geolocation', () { |
18 test('getCurrentPosition', () { | 18 test('getCurrentPosition', () { |
19 return window.navigator.geolocation.getCurrentPosition().then( | 19 return window.navigator.geolocation.getCurrentPosition().then( |
20 (position) { | 20 (position) { |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 keydownHandlerTest); | 129 keydownHandlerTest); |
130 KeyboardEventStream.onKeyPress(document.body).listen( | 130 KeyboardEventStream.onKeyPress(document.body).listen( |
131 keypressHandlerTest); | 131 keypressHandlerTest); |
132 KeyboardEventStream.onKeyUp(document.body).listen( | 132 KeyboardEventStream.onKeyUp(document.body).listen( |
133 keyupHandlerTest); | 133 keyupHandlerTest); |
134 KeyboardEventStream.onKeyUp(document.body).listen( | 134 KeyboardEventStream.onKeyUp(document.body).listen( |
135 keyupHandlerTest2); | 135 keyupHandlerTest2); |
136 }); | 136 }); |
137 }); | 137 }); |
138 } | 138 } |
OLD | NEW |