Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 // SharedOptions=--package-root=sdk/lib/_internal/ -v | |
|
kasperl
2014/03/25 09:48:07
Get rid of -v.
ahe
2014/03/25 14:06:51
Done.
| |
| 6 | |
| 7 library trydart.paste_test; | |
| 8 | |
| 9 import 'dart:html'; | |
| 10 import 'dart:async'; | |
| 11 | |
| 12 import '../../site/try/src/interaction_manager.dart' show | |
| 13 InteractionManager; | |
| 14 | |
| 15 import '../../site/try/src/ui.dart' show | |
| 16 inputPre, | |
| 17 observer; | |
| 18 | |
| 19 import '../../site/try/src/user_option.dart' show | |
| 20 UserOption; | |
| 21 | |
| 22 import '../../pkg/expect/lib/expect.dart'; | |
| 23 import '../../pkg/async_helper/lib/async_helper.dart'; | |
| 24 | |
| 25 main() { | |
| 26 UserOption.storage = {}; | |
| 27 | |
| 28 var interaction = new InteractionManager(); | |
| 29 inputPre = new DivElement(); | |
| 30 document.body.append(inputPre); | |
| 31 observer = new MutationObserver(interaction.onMutation) | |
| 32 ..observe(inputPre, childList: true, characterData: true, subtree: true); | |
| 33 | |
| 34 inputPre.innerHtml = "<span><p>//...</p>}</span>"; | |
| 35 | |
| 36 asyncTest(() => new Future(() { | |
| 37 print('Welcome to the future'); | |
| 38 Expect.stringEquals('//...\n}\n', inputPre.text); | |
| 39 })); | |
| 40 } | |
| OLD | NEW |