| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // Test that cursor positions are correctly updated after adding new content. | 5 // Test that cursor positions are correctly updated after adding new content. |
| 6 | 6 |
| 7 import 'test_try.dart'; | 7 import 'test_try.dart'; |
| 8 | 8 |
| 9 void main() { | 9 void main() { |
| 10 InteractionManager interaction = mockTryDartInteraction(); | 10 InteractionManager interaction = mockTryDartInteraction(); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 class MockKeyboardEvent extends KeyEvent { | 106 class MockKeyboardEvent extends KeyEvent { |
| 107 final int keyCode; | 107 final int keyCode; |
| 108 | 108 |
| 109 MockKeyboardEvent(String type, {int keyCode}) | 109 MockKeyboardEvent(String type, {int keyCode}) |
| 110 : this.keyCode = keyCode, | 110 : this.keyCode = keyCode, |
| 111 super.wrap(new KeyEvent(type, keyCode: keyCode)); | 111 super.wrap(new KeyEvent(type, keyCode: keyCode)); |
| 112 | 112 |
| 113 bool getModifierState(String keyArgument) => false; | 113 bool getModifierState(String keyArgument) => false; |
| 114 } | 114 } |
| OLD | NEW |