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

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

Issue 569403003: update tests to use error message templates everywhere instead of hardcoded values (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/polymer/test/build/code_extractor.dart ('k') | pkg/polymer/test/build/linter_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.import_inliner_test; 5 library polymer.test.build.import_inliner_test;
6 6
7 import 'dart:convert'; 7 import 'dart:convert';
8 import 'package:polymer/src/build/common.dart'; 8 import 'package:polymer/src/build/common.dart';
9 import 'package:polymer/src/build/import_inliner.dart'; 9 import 'package:polymer/src/build/import_inliner.dart';
10 import 'package:polymer/src/build/messages.dart';
10 import 'package:unittest/compact_vm_config.dart'; 11 import 'package:unittest/compact_vm_config.dart';
11 import 'package:unittest/unittest.dart'; 12 import 'package:unittest/unittest.dart';
12 import 'common.dart'; 13 import 'common.dart';
13 14
14 part 'code_extractor.dart'; 15 part 'code_extractor.dart';
15 16
16 final phases = [[new ImportInliner(new TransformOptions())]]; 17 final phases = [[new ImportInliner(new TransformOptions())]];
17 18
18 void main() { 19 void main() {
19 useCompactVMConfiguration(); 20 useCompactVMConfiguration();
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 '"end":{' 698 '"end":{'
698 '"url":"web/test.html",' 699 '"url":"web/test.html",'
699 '"offset":62,' 700 '"offset":62,'
700 '"line":0,' 701 '"line":0,'
701 '"column":62' 702 '"column":62'
702 '},' 703 '},'
703 '"text":"<link rel=\\"import\\" href=\\"foo.html\\">"' 704 '"text":"<link rel=\\"import\\" href=\\"foo.html\\">"'
704 '}' 705 '}'
705 '}]}', 706 '}]}',
706 }, [ 707 }, [
707 'error: Failed to inline HTML import: ' 708 'error: ${INLINE_IMPORT_FAIL.create({
708 'Could not find asset a|web/foo.html. (web/test.html 0 27)', 709 'error': 'Could not find asset a|web/foo.html.'}).snippet} '
710 '(web/test.html 0 27)',
709 ]); 711 ]);
710 } 712 }
711 713
712 void stylesheetTests() { 714 void stylesheetTests() {
713 715
714 testPhases('empty stylesheet', phases, { 716 testPhases('empty stylesheet', phases, {
715 'a|web/test.html': 717 'a|web/test.html':
716 '<!DOCTYPE html><html><head>' 718 '<!DOCTYPE html><html><head>'
717 '<link rel="stylesheet" href="">' // empty href 719 '<link rel="stylesheet" href="">' // empty href
718 '</head></html>', 720 '</head></html>',
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 '<script rel="import" href="../../../packages/b/bar/bar.js"></script>', 1110 '<script rel="import" href="../../../packages/b/bar/bar.js"></script>',
1109 'b|lib/bar/bar.js': 1111 'b|lib/bar/bar.js':
1110 'console.log("here");', 1112 'console.log("here");',
1111 }, { 1113 }, {
1112 'a|web/test/well/test.html': 1114 'a|web/test/well/test.html':
1113 '<!DOCTYPE html><html><head></head><body>' 1115 '<!DOCTYPE html><html><head></head><body>'
1114 '<script rel="import" href="../../packages/b/bar/bar.js"></script>' 1116 '<script rel="import" href="../../packages/b/bar/bar.js"></script>'
1115 '</body></html>', 1117 '</body></html>',
1116 }); 1118 });
1117 } 1119 }
OLDNEW
« no previous file with comments | « pkg/polymer/test/build/code_extractor.dart ('k') | pkg/polymer/test/build/linter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698