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

Side by Side Diff: pkg/polymer/test/build/common.dart

Issue 225043004: Replace bootstrap logic with 'boot.js', use 'component/dart' mime-type and add (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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.build.common; 5 library polymer.test.build.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';
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 (solo ? solo_test : test)(testName, () { 134 (solo ? solo_test : test)(testName, () {
135 var helper = new TestHelper(phases, inputFiles, expectedMessages)..run(); 135 var helper = new TestHelper(phases, inputFiles, expectedMessages)..run();
136 return helper.checkAll(expectedFiles).whenComplete(() => helper.tearDown()); 136 return helper.checkAll(expectedFiles).whenComplete(() => helper.tearDown());
137 }); 137 });
138 } 138 }
139 139
140 const WEB_COMPONENTS_TAG = 140 const WEB_COMPONENTS_TAG =
141 '<script src="packages/web_components/platform.js"></script>\n' 141 '<script src="packages/web_components/platform.js"></script>\n'
142 '<script src="packages/web_components/dart_support.js"></script>\n'; 142 '<script src="packages/web_components/dart_support.js"></script>\n';
143 143
144 const INTEROP_TAG = '<script src="packages/browser/interop.js"></script>\n';
145 const DART_JS_TAG = '<script src="packages/browser/dart.js"></script>'; 144 const DART_JS_TAG = '<script src="packages/browser/dart.js"></script>';
146 145
147 const POLYMER_MOCKS = const { 146 const POLYMER_MOCKS = const {
147 'polymer|lib/polymer.html': '<!DOCTYPE html><html></html>',
148 'polymer|lib/polymer.dart': 148 'polymer|lib/polymer.dart':
149 'library polymer;\n' 149 'library polymer;\n'
150 'import "dart:html";\n' 150 'import "dart:html";\n'
151 'export "package:observe/observe.dart";\n' // for @observable 151 'export "package:observe/observe.dart";\n' // for @observable
152 'part "src/loader.dart";\n' // for @CustomTag and @initMethod 152 'part "src/loader.dart";\n' // for @CustomTag and @initMethod
153 'part "src/instance.dart";\n', // for @published and @ObserveProperty 153 'part "src/instance.dart";\n', // for @published and @ObserveProperty
154 154
155 'polymer|lib/src/loader.dart': 155 'polymer|lib/src/loader.dart':
156 'part of polymer;\n' 156 'part of polymer;\n'
157 'class CustomTag {\n' 157 'class CustomTag {\n'
(...skipping 18 matching lines...) Expand all
176 176
177 'observe|lib/observe.dart': 177 'observe|lib/observe.dart':
178 'library observe;\n' 178 'library observe;\n'
179 'export "src/metadata.dart";', 179 'export "src/metadata.dart";',
180 180
181 'observe|lib/src/metadata.dart': 181 'observe|lib/src/metadata.dart':
182 'library observe.src.metadata;\n' 182 'library observe.src.metadata;\n'
183 'class ObservableProperty { const ObservableProperty(); }\n' 183 'class ObservableProperty { const ObservableProperty(); }\n'
184 'const observable = const ObservableProperty();\n', 184 'const observable = const ObservableProperty();\n',
185 }; 185 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698