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

Side by Side Diff: client/tests/client/samples/smoketest/dartWebBase_tests.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 #library('Smoketests_main'); 4 #library('Smoketests_main');
5 5
6 #import('benchmarklib.dart'); 6 #import('benchmarklib.dart');
7 #import('dart:html'); 7 #import('dart:html');
8 #import('../../../../testing/unittest/unittest.dart'); 8 #import('../../../../testing/unittest/unittest_html.dart');
9 9
10 void main() { 10 void main() {
11 asyncTest('performanceTesting', 1, () { 11 asyncTest('performanceTesting', 1, () {
12 window.setTimeout(BENCHMARK_SUITE.runBenchmarks, 0); 12 window.setTimeout(BENCHMARK_SUITE.runBenchmarks, 0);
13 window.setTimeout(testForCompletion, 0); 13 window.setTimeout(testForCompletion, 0);
14 }); 14 });
15 } 15 }
16 16
17 testForCompletion() { 17 testForCompletion() {
18 Element element = document.query('#testResultScore'); 18 Element element = document.query('#testResultScore');
19 RegExp re = new RegExp('Score: [0-9]+'); 19 RegExp re = new RegExp('Score: [0-9]+');
20 print(element.text); 20 print(element.text);
21 Expect.isTrue(re.hasMatch(element.text)); 21 Expect.isTrue(re.hasMatch(element.text));
22 callbackDone(); 22 callbackDone();
23 } 23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698