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

Side by Side Diff: dart/tests/try/paste_test.dart

Issue 210873002: Add a test suite for Try Dart! (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | dart/tests/try/try.status » ('j') | dart/tests/try/try.status » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « no previous file | dart/tests/try/try.status » ('j') | dart/tests/try/try.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698