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

Side by Side Diff: samples/dartcombat/test/dartcombat_test.dart

Issue 23717003: Reorganize tests for samples so the test is discoverable from the sample (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 5
6 library dartcombat_tests; 6 library dartcombat_tests;
7 7
8 import 'dart:html'; 8 import 'dart:html';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:async'; 10 import 'dart:async';
11 import '../../../../pkg/unittest/lib/unittest.dart'; 11 import 'package:unittest/html_config.dart';
12 import '../../../../pkg/unittest/lib/html_config.dart'; 12 import 'package:unittest/unittest.dart';
13 import '../../../dartcombat/dartcombatlib.dart'; 13 import '../dartcombatlib.dart';
14 14
15 ReceivePort testPort; 15 ReceivePort testPort;
16 16
17 main() { 17 main() {
18 useHtmlConfiguration(); 18 useHtmlConfiguration();
19 testPort = new ReceivePort(); 19 testPort = new ReceivePort();
20 20
21 setupUI(); 21 setupUI();
22 // add relative URL to stylesheet to the correct location. Note: The CSS is 22 // add relative URL to stylesheet to the correct location. Note: The CSS is
23 // needed because the app uses a flexbox layout, which is then used to 23 // needed because the app uses a flexbox layout, which is then used to
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 void invokeNext() { 170 void invokeNext() {
171 closures[i](); 171 closures[i]();
172 i++; 172 i++;
173 if (i < length) { 173 if (i < length) {
174 Timer.run(expectAsync0(invokeNext)); 174 Timer.run(expectAsync0(invokeNext));
175 } 175 }
176 } 176 }
177 Timer.run(expectAsync0(invokeNext)); 177 Timer.run(expectAsync0(invokeNext));
178 } 178 }
179 } 179 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698