| 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();
|
|
|