| Index: pkg/polymer/test/transform/script_compactor_test.dart
|
| diff --git a/pkg/polymer/test/transform/script_compactor_test.dart b/pkg/polymer/test/transform/script_compactor_test.dart
|
| index e12d3794a3bee69b432070d01a9566cb66b61d5b..1588bd10d0faca47d35c8169505292d5099dfc19 100644
|
| --- a/pkg/polymer/test/transform/script_compactor_test.dart
|
| +++ b/pkg/polymer/test/transform/script_compactor_test.dart
|
| @@ -13,24 +13,34 @@ void main() {
|
| useCompactVMConfiguration();
|
|
|
| testPhases('no changes', [[new ScriptCompactor()]], {
|
| - 'a|test.html': '<!DOCTYPE html><html></html>',
|
| + 'a|web/test.html': '<!DOCTYPE html><html></html>',
|
| }, {
|
| - 'a|test.html': '<!DOCTYPE html><html></html>',
|
| + 'a|web/test.html': '<!DOCTYPE html><html></html>',
|
| + });
|
| +
|
| + testPhases('no changes outside web/', [[new ScriptCompactor()]], {
|
| + 'a|lib/test.html':
|
| + '<!DOCTYPE html><html><head>'
|
| + '<script type="application/dart" src="a.dart"></script>',
|
| + }, {
|
| + 'a|lib/test.html':
|
| + '<!DOCTYPE html><html><head>'
|
| + '<script type="application/dart" src="a.dart"></script>',
|
| });
|
|
|
| testPhases('single script', [[new ScriptCompactor()]], {
|
| - 'a|test.html':
|
| + 'a|web/test.html':
|
| '<!DOCTYPE html><html><head>'
|
| '<script type="application/dart" src="a.dart"></script>',
|
| }, {
|
| - 'a|test.html':
|
| + 'a|web/test.html':
|
| '<!DOCTYPE html><html><head></head><body>'
|
| '<script type="application/dart" '
|
| 'src="test.html_bootstrap.dart"></script>'
|
| '<script src="packages/browser/dart.js"></script>'
|
| '</body></html>',
|
|
|
| - 'a|test.html_bootstrap.dart':
|
| + 'a|web/test.html_bootstrap.dart':
|
| '''library app_bootstrap;
|
|
|
| import 'package:polymer/polymer.dart';
|
| @@ -47,7 +57,7 @@ void main() {
|
| });
|
|
|
| testPhases('several scripts', [[new ScriptCompactor()]], {
|
| - 'a|test.html':
|
| + 'a|web/test.html':
|
| '<!DOCTYPE html><html><head>'
|
| '<script type="application/dart" src="a.dart"></script>'
|
| '<script type="application/dart" src="b.dart"></script>'
|
| @@ -56,14 +66,14 @@ void main() {
|
| '</div>'
|
| '<script type="application/dart" src="d.dart"></script>',
|
| }, {
|
| - 'a|test.html':
|
| + 'a|web/test.html':
|
| '<!DOCTYPE html><html><head></head><body><div></div>'
|
| '<script type="application/dart" '
|
| 'src="test.html_bootstrap.dart"></script>'
|
| '<script src="packages/browser/dart.js"></script>'
|
| '</body></html>',
|
|
|
| - 'a|test.html_bootstrap.dart':
|
| + 'a|web/test.html_bootstrap.dart':
|
| '''library app_bootstrap;
|
|
|
| import 'package:polymer/polymer.dart';
|
|
|