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

Side by Side Diff: pkg/csslib/test/transform/common.dart

Issue 23576012: Added .scss transform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: cleanup Created 7 years, 3 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 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 polymer.test.transfom.common; 5 library polymer.test.transfom.common;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:barback/barback.dart'; 9 import 'package:barback/barback.dart';
10 import 'package:stack_trace/stack_trace.dart'; 10 import 'package:stack_trace/stack_trace.dart';
11 import 'package:unittest/unittest.dart'; 11 import 'package:unittest/unittest.dart';
12 12
13 String idToString(AssetId id) => '${id.package}|${id.path}'; 13 String idToString(AssetId id) => '${id.package}|${id.path}';
Siggi Cherem (dart-lang) 2013/09/08 20:31:33 please add a TODO about deleting this file (since
14 AssetId idFromString(String s) { 14 AssetId idFromString(String s) {
15 int index = s.indexOf('|'); 15 int index = s.indexOf('|');
16 return new AssetId(s.substring(0, index), s.substring(index + 1)); 16 return new AssetId(s.substring(0, index), s.substring(index + 1));
17 } 17 }
18 18
19 /** 19 /**
20 * A helper package provider that has files stored in memory, also wraps 20 * A helper package provider that has files stored in memory, also wraps
21 * [Barback] to simply our tests. 21 * [Barback] to simply our tests.
22 */ 22 */
23 class TestHelper implements PackageProvider { 23 class TestHelper implements PackageProvider {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 Map<String, String> inputFiles, Map<String, String> expectedFiles) { 91 Map<String, String> inputFiles, Map<String, String> expectedFiles) {
92 test(testName, () { 92 test(testName, () {
93 var helper = new TestHelper(phases, inputFiles)..run(); 93 var helper = new TestHelper(phases, inputFiles)..run();
94 return helper.checkAll(expectedFiles).then((_) => helper.tearDown()); 94 return helper.checkAll(expectedFiles).then((_) => helper.tearDown());
95 }); 95 });
96 } 96 }
97 97
98 const SHADOW_DOM_TAG = 98 const SHADOW_DOM_TAG =
99 '<script src="packages/shadow_dom/shadow_dom.min.js"></script>\n'; 99 '<script src="packages/shadow_dom/shadow_dom.min.js"></script>\n';
100 100
101 const INTEROP_TAG = '<script src="packages/browser/interop.js"></script>\n'; 101 const INTEROP_TAG = '<script src="packages/browser/interop.js"></script>\n';
Siggi Cherem (dart-lang) 2013/09/08 20:31:33 delete these two constants (you probably don't nee
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698