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

Side by Side Diff: sky/tests/editing/selection.sky

Issue 1077473002: Stop rendering text inside flex boxes. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: make p default to display: paragraph Created 5 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 unified diff | Download patch
« no previous file with comments | « sky/tests/editing/replace.sky ('k') | sky/tests/editing/typing.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <body> 1 <body>
2 <style> 2 <style>
3 .blue { 3 .blue {
4 border: 2px solid blue; 4 border: 2px solid blue;
5 display: paragraph;
6 } 5 }
7 </style> 6 </style>
8 <div class="blue" contenteditable></div> 7 <p class="blue" contenteditable></p>
9 <script> 8 <script>
10 import "../resources/event-sender.dart" as eventSender; 9 import "../resources/event-sender.dart" as eventSender;
11 import "dart:sky"; 10 import "dart:sky";
12 import "package:mojo/services/input_events/public/interfaces/input_event_constan ts.mojom.dart"; 11 import "package:mojo/services/input_events/public/interfaces/input_event_constan ts.mojom.dart";
13 import "package:mojo/services/input_events/public/interfaces/input_key_codes.moj om.dart"; 12 import "package:mojo/services/input_events/public/interfaces/input_key_codes.moj om.dart";
14 13
15 void main() { 14 void main() {
16 var control = document.querySelector('.blue'); 15 var control = document.querySelector('.blue');
17 control.focus(); 16 control.focus();
18 eventSender.keyDown(KeyboardCode_A); 17 eventSender.keyDown(KeyboardCode_A);
19 eventSender.keyDown(KeyboardCode_B); 18 eventSender.keyDown(KeyboardCode_B);
20 eventSender.keyDown(KeyboardCode_C); 19 eventSender.keyDown(KeyboardCode_C);
21 eventSender.keyDown(KeyboardCode_D); 20 eventSender.keyDown(KeyboardCode_D);
22 eventSender.keyDown(KeyboardCode_E); 21 eventSender.keyDown(KeyboardCode_E);
23 eventSender.keyDown(KeyboardCode_LEFT, EventFlags_SHIFT_DOWN); 22 eventSender.keyDown(KeyboardCode_LEFT, EventFlags_SHIFT_DOWN);
24 eventSender.keyDown(KeyboardCode_LEFT, EventFlags_SHIFT_DOWN); 23 eventSender.keyDown(KeyboardCode_LEFT, EventFlags_SHIFT_DOWN);
25 eventSender.keyDown(KeyboardCode_LEFT, EventFlags_SHIFT_DOWN); 24 eventSender.keyDown(KeyboardCode_LEFT, EventFlags_SHIFT_DOWN);
26 eventSender.keyDown(KeyboardCode_BACK); 25 eventSender.keyDown(KeyboardCode_BACK);
27 eventSender.done(); 26 eventSender.done();
28 } 27 }
29 </script> 28 </script>
30 </body> 29 </body>
OLDNEW
« no previous file with comments | « sky/tests/editing/replace.sky ('k') | sky/tests/editing/typing.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698