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

Unified Diff: pkg/polymer/test/transform/polyfill_injector_test.dart

Issue 23478015: Apply several phases only to entrypoint files (which currently are identified as (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/polymer/test/transform/polyfill_injector_test.dart
diff --git a/pkg/polymer/test/transform/polyfill_injector_test.dart b/pkg/polymer/test/transform/polyfill_injector_test.dart
index 08003253a53a39bddc02e180bc686a2ce792753c..4ccd148847fabdd147c8f5df1691d5d515023c27 100644
--- a/pkg/polymer/test/transform/polyfill_injector_test.dart
+++ b/pkg/polymer/test/transform/polyfill_injector_test.dart
@@ -18,6 +18,16 @@ void main() {
'a|web/test.html': '<!DOCTYPE html><html></html>',
});
+ testPhases('no changes under lib ', [[new PolyfillInjector()]], {
+ 'a|lib/test.html':
+ '<!DOCTYPE html><html><head></head><body>'
+ '<script type="application/dart" src="a.dart"></script>',
+ }, {
+ 'a|lib/test.html':
+ '<!DOCTYPE html><html><head></head><body>'
+ '<script type="application/dart" src="a.dart"></script>',
+ });
+
testPhases('with some script', [[new PolyfillInjector()]], {
'a|web/test.html':
'<!DOCTYPE html><html><head></head><body>'

Powered by Google App Engine
This is Rietveld 408576698