// 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.code_extractor_test; import 'package:polymer/src/transform/code_extractor.dart'; import 'package:unittest/compact_vm_config.dart'; import 'common.dart'; void main() { useCompactVMConfiguration(); testPhases('no changes', [[new InlineCodeExtractor()]], { 'a|test.html': '', }, { 'a|test.html': '', }); testPhases('single script', [[new InlineCodeExtractor()]], { 'a|test.html': '
' '', }, { 'a|test.html': '' '' '', 'a|test.html.0.dart': 'main() { }', }); testPhases('multiple scripts', [[new InlineCodeExtractor()]], { 'a|test.html': '' '' '', }, { 'a|test.html': '' '' '' '', 'a|test.html.0.dart': 'main1() { }', 'a|test.html.1.dart': 'main2() { }', }); testPhases('multiple deeper scripts', [[new InlineCodeExtractor()]], { 'a|test.html': '' '' '