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

Unified Diff: dart/site/try/bugs/single_line_delete.dart

Issue 345553008: Fix issues that broke editing on browsers without Shadow DOM support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address Johnni's changes, and fix bugs found during testing. Created 6 years, 5 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 | « no previous file | dart/site/try/src/decoration.dart » ('j') | dart/site/try/src/selection.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/bugs/single_line_delete.dart
diff --git a/dart/site/try/bugs/single_line_delete.dart b/dart/site/try/bugs/single_line_delete.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7971d7f1525a04635929e6387a1614bbc6a6e974
--- /dev/null
+++ b/dart/site/try/bugs/single_line_delete.dart
@@ -0,0 +1,17 @@
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+var greeting = "Hello, World!";
+
+void main() {
+ // Put cursor at end of previous line. Hit backspace.
+ // 1. Ensure this triggers a single-line change.
+ // 2. Ensure the cursor position is correct.
+ // Then restore the file and place the cursor at the end of the file. Delete
+ // each character in the file by holding down backspace. Verify that there
+ // are no exceptions and that the entire buffer is deleted.
+ // Then restore the file and place the cursor before the semicolon on the
+ // first line. Hit delete and verify that a character is deleted.
+ print(greeting);
+}
« no previous file with comments | « no previous file | dart/site/try/src/decoration.dart » ('j') | dart/site/try/src/selection.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698