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

Side by Side Diff: tests/html/dromaeo_smoke_test.dart

Issue 231413003: using unittest via package import (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits Created 6 years, 8 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 | « tests/html/dromaeo_noop/dromaeo_smoke.dart ('k') | tests/html/element_add_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 dromaeo; 5 library dromaeo;
6 import '../../pkg/unittest/lib/unittest.dart'; 6 import 'package:unittest/unittest.dart';
7 import '../../pkg/unittest/lib/html_config.dart'; 7 import 'package:unittest/html_config.dart';
8 import '../../samples/third_party/dromaeo/web/Dromaeo.dart' as originalTest; 8 import '../../samples/third_party/dromaeo/web/Dromaeo.dart' as originalTest;
9 import 'dart:html'; 9 import 'dart:html';
10 import 'dart:async'; 10 import 'dart:async';
11 11
12 /** A variant of the Dromaeo test shoehorned into a unit test. */ 12 /** A variant of the Dromaeo test shoehorned into a unit test. */
13 void main() { 13 void main() {
14 var combo = '?dartANDhtmlANDnothing'; 14 var combo = '?dartANDhtmlANDnothing';
15 if (!window.location.search.toString().contains(combo)) { 15 if (!window.location.search.toString().contains(combo)) {
16 if (window.location.href.toString().indexOf("?") == -1) { 16 if (window.location.href.toString().indexOf("?") == -1) {
17 window.location.href = '${window.location.href}${combo}'; 17 window.location.href = '${window.location.href}${combo}';
(...skipping 29 matching lines...) Expand all
47 test('dromaeo runs', () { 47 test('dromaeo runs', () {
48 new Timer.periodic(new Duration(milliseconds: 500), 48 new Timer.periodic(new Duration(milliseconds: 500),
49 expectAsyncUntil((timer) { 49 expectAsyncUntil((timer) {
50 if (document.query('.alldone') != null) { 50 if (document.query('.alldone') != null) {
51 timer.cancel(); 51 timer.cancel();
52 isDone = true; 52 isDone = true;
53 } 53 }
54 }, () => isDone)); 54 }, () => isDone));
55 }); 55 });
56 } 56 }
OLDNEW
« no previous file with comments | « tests/html/dromaeo_noop/dromaeo_smoke.dart ('k') | tests/html/element_add_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698