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

Side by Side Diff: test/transformer/exclusion/works_on_dart2js_test.dart

Issue 1215833002: Use the new test runner. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.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 pub_tests; 5 library pub_tests;
6 6
7 import 'package:scheduled_test/scheduled_stream.dart'; 7 import 'package:scheduled_test/scheduled_stream.dart';
8 import 'package:scheduled_test/scheduled_test.dart'; 8 import 'package:scheduled_test/scheduled_test.dart';
9 9
10 import '../../descriptor.dart' as d; 10 import '../../descriptor.dart' as d;
11 import '../../test_pub.dart'; 11 import '../../test_pub.dart';
12 import '../../serve/utils.dart'; 12 import '../../serve/utils.dart';
13 13
14 main() { 14 main() {
15 initConfig();
16 withBarbackVersions("any", () { 15 withBarbackVersions("any", () {
17 integration("works on the dart2js transformer", () { 16 integration("works on the dart2js transformer", () {
18 d.dir(appPath, [ 17 d.dir(appPath, [
19 d.pubspec({ 18 d.pubspec({
20 "name": "myapp", 19 "name": "myapp",
21 "transformers": [ 20 "transformers": [
22 { 21 {
23 "\$dart2js": { 22 "\$dart2js": {
24 "\$include": ["web/a.dart", "web/b.dart"], 23 "\$include": ["web/a.dart", "web/b.dart"],
25 "\$exclude": "web/a.dart" 24 "\$exclude": "web/a.dart"
(...skipping 19 matching lines...) Expand all
45 server.stdout.expect(consumeThrough(emitsLines( 44 server.stdout.expect(consumeThrough(emitsLines(
46 "[Info from Dart2JS]:\n" 45 "[Info from Dart2JS]:\n"
47 "Compiling myapp|web/b.dart..."))); 46 "Compiling myapp|web/b.dart...")));
48 server.stdout.expect(consumeThrough("Build completed successfully")); 47 server.stdout.expect(consumeThrough("Build completed successfully"));
49 48
50 requestShould404("c.dart.js"); 49 requestShould404("c.dart.js");
51 endPubServe(); 50 endPubServe();
52 }); 51 });
53 }); 52 });
54 } 53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698