OLD | NEW |
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('smoketest_lib'); | 5 library smoketest_lib; |
6 | 6 |
7 #import("benchmark_lib.dart"); | 7 import 'benchmark_lib.dart'; |
8 #import("dart:html"); | 8 import 'dart:html'; |
9 | 9 |
10 /** | 10 /** |
11 * This is a sample no-op benchmark to ensure that dart2js has not dramatically | 11 * This is a sample no-op benchmark to ensure that dart2js has not dramatically |
12 * broken Firefox. | 12 * broken Firefox. |
13 */ | 13 */ |
14 class Smoketest extends BenchmarkBase { | 14 class Smoketest extends BenchmarkBase { |
15 | 15 |
16 const Smoketest() : super("Smoketest"); | 16 const Smoketest() : super("Smoketest"); |
17 | 17 |
18 void run() {} | 18 void run() {} |
19 | 19 |
20 static void main() { | 20 static void main() { |
21 new Smoketest().report(); | 21 new Smoketest().report(); |
22 } | 22 } |
23 | 23 |
24 static void log(String str) { | 24 static void log(String str) { |
25 print(str); | 25 print(str); |
26 } | 26 } |
27 } | 27 } |
OLD | NEW |