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

Unified Diff: dart/tests/try/paste_content_rewriting_test.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
Index: dart/tests/try/paste_content_rewriting_test.dart
diff --git a/dart/tests/try/paste_content_rewriting_test.dart b/dart/tests/try/paste_content_rewriting_test.dart
index d04e7acbc03078a0eed7a29a13f8184e1a4bb995..6583c75f06720c4db5aebce3553b7eec63dab6a8 100644
--- a/dart/tests/try/paste_content_rewriting_test.dart
+++ b/dart/tests/try/paste_content_rewriting_test.dart
@@ -46,9 +46,8 @@ Future runTests() {
String key = keys.current;
print('Checking $key');
queryDiagnosticNodes().forEach((Node node) {
- node.parent.insertBefore(
- new Text('<DIAGNOSTIC>'), node.parent.firstChild);
- node.replaceWith(new Text('</DIAGNOSTIC>'));
+ node.parent.append(new Text('</DIAGNOSTIC>'));
+ node.replaceWith(new Text('<DIAGNOSTIC>'));
ahe 2014/07/04 13:52:00 This code replaces diagnostics with <DIAGNOSTIC>..
observer.takeRecords(); // Discard mutations.
});
Expect.stringEquals(tests[key], mainEditorPane.text);

Powered by Google App Engine
This is Rietveld 408576698