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

Unified Diff: dart/tests/try/paste_content_rewriting_test.dart

Issue 211273002: Rename "inputPre" to "mainEditorPane". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also update test. Created 6 years, 9 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 | « dart/site/try/src/ui.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e865233a19e8b2c6b4f05d3c6470b735f4793f40..6d12d967ae7f9ccc9c4be657c6cf906d116fa3ee 100644
--- a/dart/tests/try/paste_content_rewriting_test.dart
+++ b/dart/tests/try/paste_content_rewriting_test.dart
@@ -13,7 +13,7 @@ import '../../site/try/src/interaction_manager.dart' show
InteractionManager;
import '../../site/try/src/ui.dart' show
- inputPre,
+ mainEditorPane,
observer;
import '../../site/try/src/user_option.dart' show
@@ -26,20 +26,20 @@ main() {
UserOption.storage = {};
var interaction = new InteractionManager();
- inputPre = new DivElement();
- document.body.append(inputPre);
+ mainEditorPane = new DivElement();
+ document.body.append(mainEditorPane);
observer = new MutationObserver(interaction.onMutation)
- ..observe(inputPre, childList: true, characterData: true, subtree: true);
+ ..observe(mainEditorPane, childList: true, characterData: true, subtree: true);
- inputPre.innerHtml = "<span><p>//...</p>}</span>";
+ mainEditorPane.innerHtml = "<span><p>//...</p>}</span>";
asyncTest(() => new Future(() {
print('Welcome to the future');
- Expect.stringEquals('//...\n}\n', inputPre.text);
+ Expect.stringEquals('//...\n}\n', mainEditorPane.text);
}).then((_) {
- inputPre.innerHtml = 'someText';
+ mainEditorPane.innerHtml = 'someText';
return new Future(() {
- Expect.stringEquals('someText\n', inputPre.text);
+ Expect.stringEquals('someText\n', mainEditorPane.text);
// Clear the DOM to work around a bug in test.dart.
document.body.nodes.clear();
« no previous file with comments | « dart/site/try/src/ui.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698