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

Unified Diff: sky/tests/editing/backspace.sky

Issue 921123002: Port all of Sky's editing tests to Dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/tests/TestExpectations ('k') | sky/tests/editing/backspace-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/editing/backspace.sky
diff --git a/sky/tests/editing/backspace.sky b/sky/tests/editing/backspace.sky
index 0bdfae674a065693c2be027e24912ad53bc4fa3c..bd34e0d23efe3537cea56177590352c5446e6252 100644
--- a/sky/tests/editing/backspace.sky
+++ b/sky/tests/editing/backspace.sky
@@ -1,5 +1,4 @@
<body>
-<import src="../resources/event-sender.sky" as="eventSender" />
<style>
.blue {
border: 2px solid blue;
@@ -7,11 +6,17 @@
</style>
<div class="blue" contenteditable></div>
<script>
-var control = document.querySelector('.blue');
-control.focus();
-eventSender.keyDown('a');
-eventSender.keyDown('b');
-eventSender.keyDown('BACK');
-eventSender.done();
+import "../resources/event-sender.dart" as eventSender;
eseidel 2015/02/13 18:36:58 Can we make this pkg relative too?
abarth-chromium 2015/02/13 21:54:37 Do you mean the "package:" scheme? Currently the
+import "dart:sky";
+import "package:mojo/services/input_events/public/interfaces/input_key_codes.mojom.dart";
+
+void main() {
+ var control = document.querySelector('.blue');
+ control.focus();
+ eventSender.keyDown(KeyboardCode_A);
+ eventSender.keyDown(KeyboardCode_B);
+ eventSender.keyDown(KeyboardCode_BACK);
+ eventSender.done();
+}
</script>
</body>
« no previous file with comments | « sky/tests/TestExpectations ('k') | sky/tests/editing/backspace-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698