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

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

Issue 23757034: Rearranges the polymer package now that the old compiler is gone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/test/transform/common.dart ('k') | pkg/polymer/test/transform/polyfill_injector_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/transform/import_inliner_test.dart
diff --git a/pkg/polymer/test/transform/import_inliner_test.dart b/pkg/polymer/test/transform/import_inliner_test.dart
deleted file mode 100644
index b43d999d37e6c9b774f2500e5ef2710ba8d12250..0000000000000000000000000000000000000000
--- a/pkg/polymer/test/transform/import_inliner_test.dart
+++ /dev/null
@@ -1,372 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library polymer.test.transform.import_inliner_test;
-
-import 'package:polymer/src/transform/common.dart';
-import 'package:polymer/src/transform/import_inliner.dart';
-import 'package:unittest/compact_vm_config.dart';
-import 'package:unittest/unittest.dart';
-
-import 'common.dart';
-
-void main() {
- useCompactVMConfiguration();
- var phases = [[new ImportedElementInliner(new TransformOptions())]];
- testPhases('no changes', phases, {
- 'a|web/test.html': '<!DOCTYPE html><html></html>',
- }, {
- 'a|web/test.html': '<!DOCTYPE html><html></html>',
- });
-
- testPhases('empty import', phases, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="">' // empty href
- '</head></html>',
- 'a|web/test2.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import">' // no href
- '</head></html>',
- }, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '</head><body></body></html>',
- 'a|web/test2.html':
- '<!DOCTYPE html><html><head>'
- '</head><body></body></html>',
- });
-
- testPhases('shallow, no elements', phases, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test2.html">'
- '</head></html>',
- 'a|web/test2.html':
- '<!DOCTYPE html><html><head>'
- '</head></html>',
- }, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '</head><body></body></html>',
- 'a|web/test2.html':
- '<!DOCTYPE html><html><head>'
- '</head></html>',
- });
-
- testPhases('shallow, elements, one import', phases,
- {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test2.html">'
- '</head></html>',
- 'a|web/test2.html':
- '<!DOCTYPE html><html><head>'
- '</head><body><polymer-element>2</polymer-element></html>',
- }, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>2</polymer-element>'
- '</body></html>',
- 'a|web/test2.html':
- '<!DOCTYPE html><html><head>'
- '</head><body><polymer-element>2</polymer-element></html>',
- });
-
- testPhases('no transformation outside web/', phases,
- {
- 'a|lib/test.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test2.html">'
- '</head></html>',
- 'a|lib/test2.html':
- '<!DOCTYPE html><html><head>'
- '</head><body><polymer-element>2</polymer-element></html>',
- }, {
- 'a|lib/test.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test2.html">'
- '</head></html>',
- 'a|lib/test2.html':
- '<!DOCTYPE html><html><head>'
- '</head><body><polymer-element>2</polymer-element></html>',
- });
-
- testPhases('shallow, elements, many', phases,
- {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test2.html">'
- '<link rel="import" href="test3.html">'
- '</head></html>',
- 'a|web/test2.html':
- '<!DOCTYPE html><html><head>'
- '</head><body><polymer-element>2</polymer-element></html>',
- 'a|web/test3.html':
- '<!DOCTYPE html><html><head>'
- '</head><body><polymer-element>3</polymer-element></html>',
- }, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>2</polymer-element>'
- '<polymer-element>3</polymer-element>'
- '</body></html>',
- 'a|web/test2.html':
- '<!DOCTYPE html><html><head>'
- '</head><body><polymer-element>2</polymer-element></html>',
- 'a|web/test3.html':
- '<!DOCTYPE html><html><head>'
- '</head><body><polymer-element>3</polymer-element></html>',
- });
-
- testPhases('deep, elements, one per file', phases, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test2.html">'
- '</head></html>',
- 'a|web/test2.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="assets/b/test3.html">'
- '</head><body><polymer-element>2</polymer-element></html>',
- 'b|asset/test3.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="packages/c/test4.html">'
- '</head><body><polymer-element>3</polymer-element></html>',
- 'c|lib/test4.html':
- '<!DOCTYPE html><html><head>'
- '</head><body><polymer-element>4</polymer-element></html>',
- }, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>4</polymer-element>'
- '<polymer-element>3</polymer-element>'
- '<polymer-element>2</polymer-element></body></html>',
- 'a|web/test2.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>4</polymer-element>'
- '<polymer-element>3</polymer-element>'
- '<polymer-element>2</polymer-element></body></html>',
- 'b|asset/test3.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="packages/c/test4.html">'
- '</head><body><polymer-element>3</polymer-element></html>',
- 'c|lib/test4.html':
- '<!DOCTYPE html><html><head>'
- '</head><body><polymer-element>4</polymer-element></html>',
- });
-
- testPhases('deep, elements, many imports', phases, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test2a.html">'
- '<link rel="import" href="test2b.html">'
- '</head></html>',
- 'a|web/test2a.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test3a.html">'
- '<link rel="import" href="test3b.html">'
- '</head><body><polymer-element>2a</polymer-element></body></html>',
- 'a|web/test2b.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test4a.html">'
- '<link rel="import" href="test4b.html">'
- '</head><body><polymer-element>2b</polymer-element></body></html>',
- 'a|web/test3a.html':
- '<!DOCTYPE html><html><head>'
- '</head><body><polymer-element>3a</polymer-element></body></html>',
- 'a|web/test3b.html':
- '<!DOCTYPE html><html><head>'
- '</head><body><polymer-element>3b</polymer-element></body></html>',
- 'a|web/test4a.html':
- '<!DOCTYPE html><html><head>'
- '</head><body><polymer-element>4a</polymer-element></body></html>',
- 'a|web/test4b.html':
- '<!DOCTYPE html><html><head>'
- '</head><body><polymer-element>4b</polymer-element></body></html>',
- }, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>3a</polymer-element>'
- '<polymer-element>3b</polymer-element>'
- '<polymer-element>2a</polymer-element>'
- '<polymer-element>4a</polymer-element>'
- '<polymer-element>4b</polymer-element>'
- '<polymer-element>2b</polymer-element>'
- '</body></html>',
- 'a|web/test2a.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>3a</polymer-element>'
- '<polymer-element>3b</polymer-element>'
- '<polymer-element>2a</polymer-element>'
- '</body></html>',
- 'a|web/test2b.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>4a</polymer-element>'
- '<polymer-element>4b</polymer-element>'
- '<polymer-element>2b</polymer-element>'
- '</body></html>',
- 'a|web/test3a.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>3a</polymer-element>'
- '</body></html>',
- 'a|web/test3b.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>3b</polymer-element>'
- '</body></html>',
- 'a|web/test4a.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>4a</polymer-element>'
- '</body></html>',
- 'a|web/test4b.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>4b</polymer-element>'
- '</body></html>',
- });
-
- testPhases('imports cycle, 1-step lasso', phases, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test_1.html">'
- '</head></html>',
- 'a|web/test_1.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test_2.html">'
- '</head><body><polymer-element>1</polymer-element></html>',
- 'a|web/test_2.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test_1.html">'
- '</head><body><polymer-element>2</polymer-element></html>',
- }, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>2</polymer-element>'
- '<polymer-element>1</polymer-element></body></html>',
- 'a|web/test_1.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>2</polymer-element>'
- '<polymer-element>1</polymer-element></body></html>',
- 'a|web/test_2.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>1</polymer-element>'
- '<polymer-element>2</polymer-element></body></html>',
- });
-
- testPhases('imports cycle, 2-step lasso', phases, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test_1.html">'
- '</head></html>',
- 'a|web/test_1.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test_2.html">'
- '</head><body><polymer-element>1</polymer-element></html>',
- 'a|web/test_2.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test_3.html">'
- '</head><body><polymer-element>2</polymer-element></html>',
- 'a|web/test_3.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test_1.html">'
- '</head><body><polymer-element>3</polymer-element></html>',
- }, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>3</polymer-element>'
- '<polymer-element>2</polymer-element>'
- '<polymer-element>1</polymer-element></body></html>',
- 'a|web/test_1.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>3</polymer-element>'
- '<polymer-element>2</polymer-element>'
- '<polymer-element>1</polymer-element></body></html>',
- 'a|web/test_2.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>1</polymer-element>'
- '<polymer-element>3</polymer-element>'
- '<polymer-element>2</polymer-element></body></html>',
- 'a|web/test_3.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>2</polymer-element>'
- '<polymer-element>1</polymer-element>'
- '<polymer-element>3</polymer-element></body></html>',
- });
-
- testPhases('imports cycle, self cycle', phases, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test_1.html">'
- '</head></html>',
- 'a|web/test_1.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test_1.html">'
- '</head><body><polymer-element>1</polymer-element></html>',
- }, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>1</polymer-element></body></html>',
- 'a|web/test_1.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>1</polymer-element></body></html>',
- });
-
- testPhases('imports DAG', phases, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test_1.html">'
- '<link rel="import" href="test_2.html">'
- '</head></html>',
- 'a|web/test_1.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test_3.html">'
- '</head><body><polymer-element>1</polymer-element></body></html>',
- 'a|web/test_2.html':
- '<!DOCTYPE html><html><head>'
- '<link rel="import" href="test_3.html">'
- '</head><body><polymer-element>2</polymer-element></body></html>',
- 'a|web/test_3.html':
- '<!DOCTYPE html><html><head>'
- '</head><body><polymer-element>3</polymer-element></body></html>',
- }, {
- 'a|web/test.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>3</polymer-element>'
- '<polymer-element>1</polymer-element>'
- '<polymer-element>2</polymer-element></body></html>',
- 'a|web/test_1.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>3</polymer-element>'
- '<polymer-element>1</polymer-element></body></html>',
- 'a|web/test_2.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>3</polymer-element>'
- '<polymer-element>2</polymer-element></body></html>',
- 'a|web/test_3.html':
- '<!DOCTYPE html><html><head>'
- '</head><body>'
- '<polymer-element>3</polymer-element></body></html>',
- });
-}
« no previous file with comments | « pkg/polymer/test/transform/common.dart ('k') | pkg/polymer/test/transform/polyfill_injector_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698