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

Side by Side Diff: samples/tests/samples/src/swarm/SwarmTest.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library('swarm_tests'); 5 #library('swarm_tests');
6 6
7 #import('dart:html'); 7 #import('dart:html');
8 #import('../../../../swarm/swarmlib.dart'); 8 #import('../../../../swarm/swarmlib.dart');
9 #import('../../../../ui_lib/base/base.dart'); 9 #import('../../../../ui_lib/base/base.dart');
10 #import('../../../../ui_lib/view/view.dart'); 10 #import('../../../../ui_lib/view/view.dart');
11 #import('../../../../ui_lib/util/utilslib.dart'); 11 #import('../../../../ui_lib/util/utilslib.dart');
12 #import('../../../../../client/testing/unittest/unittest.dart'); 12 #import('../../../../../client/testing/unittest/unittest_html.dart');
13 13
14 // TODO(jmesserly): these would probably be easier to debug if they were written 14 // TODO(jmesserly): these would probably be easier to debug if they were written
15 // in the WebKit layout test style, so we could easy compare that the DOM is 15 // in the WebKit layout test style, so we could easy compare that the DOM is
16 // what we expect it to be after performing some simulated user actions. 16 // what we expect it to be after performing some simulated user actions.
17 17
18 void main() { 18 void main() {
19 Swarm swarm = new Swarm(); 19 Swarm swarm = new Swarm();
20 UIStateProxy state = new UIStateProxy(swarm.sections); 20 UIStateProxy state = new UIStateProxy(swarm.sections);
21 swarm.state = state; 21 swarm.state = state;
22 swarm.run(); 22 swarm.run();
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void expectHistory(List<Map<String, String>> entries) { 130 void expectHistory(List<Map<String, String>> entries) {
131 Expect.equals(entries.length, history.length); 131 Expect.equals(entries.length, history.length);
132 for (int i = 0; i < entries.length; i++) { 132 for (int i = 0; i < entries.length; i++) {
133 Map e = entries[i]; 133 Map e = entries[i];
134 Map h = history[i]; 134 Map h = history[i];
135 Expect.equals(e['article'], h['article']); 135 Expect.equals(e['article'], h['article']);
136 } 136 }
137 clearHistory(); 137 clearHistory();
138 } 138 }
139 } 139 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698