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

Side by Side Diff: sdk/lib/_internal/pub/test/build/allows_arbitrary_modes_test.dart

Issue 423823010: Support source_span spans in barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 years, 4 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) 2013, the Dart project authors. Please see the AUTHORS d.file 1 // Copyright (c) 2013, 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 '../descriptor.dart' as d; 7 import '../descriptor.dart' as d;
8 import '../test_pub.dart'; 8 import '../test_pub.dart';
9 9
10 const TRANSFORMER = """ 10 const TRANSFORMER = """
11 import 'dart:async'; 11 import 'dart:async';
12 12
13 import 'package:barback/barback.dart'; 13 import 'package:barback/barback.dart';
14 import 'package:source_maps/source_maps.dart';
15 14
16 class ModeTransformer extends Transformer { 15 class ModeTransformer extends Transformer {
17 final BarbackSettings settings; 16 final BarbackSettings settings;
18 ModeTransformer.asPlugin(this.settings); 17 ModeTransformer.asPlugin(this.settings);
19 18
20 String get allowedExtensions => '.txt'; 19 String get allowedExtensions => '.txt';
21 20
22 Future apply(Transform transform) { 21 Future apply(Transform transform) {
23 return new Future.value().then((_) { 22 return new Future.value().then((_) {
24 var id = transform.primaryInput.id.changeExtension(".out"); 23 var id = transform.primaryInput.id.changeExtension(".out");
(...skipping 27 matching lines...) Expand all
52 d.dir(appPath, [ 51 d.dir(appPath, [
53 d.dir('build', [ 52 d.dir('build', [
54 d.dir('web', [ 53 d.dir('web', [
55 d.file('foo.out', 'depeche') 54 d.file('foo.out', 'depeche')
56 ]) 55 ])
57 ]) 56 ])
58 ]).validate(); 57 ]).validate();
59 }); 58 });
60 }); 59 });
61 } 60 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/preprocess.dart ('k') | sdk/lib/_internal/pub/test/build/defaults_to_release_mode_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698