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

Unified Diff: tests/lib_strong/html/keyboard_event_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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: tests/lib_strong/html/keyboard_event_test.dart
diff --git a/tests/lib_strong/html/keyboard_event_test.dart b/tests/lib_strong/html/keyboard_event_test.dart
index 8fca79351d611c1cba8ecbb642b5b21ae97e9773..c3f0c9b65e5844ec71a5fa69f43b63dca0a0ab65 100644
--- a/tests/lib_strong/html/keyboard_event_test.dart
+++ b/tests/lib_strong/html/keyboard_event_test.dart
@@ -1,4 +1,5 @@
library KeyboardEventTest;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
import 'dart:html';
@@ -7,7 +8,6 @@ import 'dart:html';
// browsers.
main() {
-
useHtmlConfiguration();
keydownHandlerTest(KeyEvent e) {
@@ -18,12 +18,13 @@ main() {
var event = new KeyboardEvent('keyup');
});
test('keys', () {
- var subscription = KeyboardEventStream.onKeyDown(document.body).listen(
- keydownHandlerTest);
- var subscription2 = KeyEvent.keyDownEvent.forTarget(document.body).listen(
- keydownHandlerTest);
- var subscription3 = document.body.onKeyDown.listen(
- (e) => print('regular listener'));
+ var subscription =
+ KeyboardEventStream.onKeyDown(document.body).listen(keydownHandlerTest);
+ var subscription2 = KeyEvent.keyDownEvent
+ .forTarget(document.body)
+ .listen(keydownHandlerTest);
+ var subscription3 =
+ document.body.onKeyDown.listen((e) => print('regular listener'));
subscription.cancel();
subscription2.cancel();
subscription3.cancel();
@@ -91,5 +92,3 @@ main() {
streamDown.add(new KeyEvent('keydown', keyCode: 16, charCode: 0));
});
}
-
-

Powered by Google App Engine
This is Rietveld 408576698