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

Unified Diff: test/emitter_test.dart

Issue 12225039: Support for observable models, fixes #259 (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Created 7 years, 10 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 | « test/directive_parser_test.dart ('k') | test/observe_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/emitter_test.dart
diff --git a/test/emitter_test.dart b/test/emitter_test.dart
index eef645bc1b9cc40c16349ca627ad58ef4688ccf3..2167815bce013ee8961cb2013687fff5415782a1 100644
--- a/test/emitter_test.dart
+++ b/test/emitter_test.dart
@@ -13,6 +13,7 @@ import 'package:unittest/compact_vm_config.dart';
import 'package:unittest/unittest.dart';
import 'package:web_ui/src/analyzer.dart';
import 'package:web_ui/src/code_printer.dart';
+import 'package:web_ui/src/dart_parser.dart';
import 'package:web_ui/src/emitters.dart';
import 'package:web_ui/src/file_system/path.dart' show Path;
import 'package:web_ui/src/html5_utils.dart';
@@ -267,7 +268,7 @@ main() {
'</head><body></body></html>';
var doc = parseDocument(html);
var fileInfo = analyzeNodeForTesting(doc, new Messages.silent());
- fileInfo.userCode = new DartCodeInfo('main', null, [], '');
+ fileInfo.inlinedCode = new DartCodeInfo('main', null, [], '');
var pathInfo = new PathInfo(new Path('a'), new Path('b'), true);
var emitter = new MainPageEmitter(fileInfo);
@@ -285,7 +286,7 @@ main() {
var doc = parseDocument(html);
var fileInfo = analyzeNodeForTesting(doc, new Messages.silent(),
filepath: 'a.html');
- fileInfo.userCode = new DartCodeInfo('main', null, [], '');
+ fileInfo.inlinedCode = new DartCodeInfo('main', null, [], '');
// Issue #207 happened because we used to mistakenly take the path of
// the external file when transforming the urls in the html file.
fileInfo.externalFile = new Path('dir/a.dart');
@@ -299,7 +300,7 @@ main() {
var doc = parseDocument(html);
var fileInfo = analyzeNodeForTesting(doc, new Messages.silent(),
filepath: 'dir/a.html');
- fileInfo.userCode = new DartCodeInfo('main', null, [], '');
+ fileInfo.inlinedCode = new DartCodeInfo('main', null, [], '');
// Issue #207 happened because we used to mistakenly take the path of
// the external file when transforming the urls in the html file.
fileInfo.externalFile = new Path('dir/a.dart');
@@ -313,7 +314,7 @@ main() {
var doc = parseDocument(html);
var fileInfo = analyzeNodeForTesting(doc, new Messages.silent(),
filepath: 'dir/a.html');
- fileInfo.userCode = new DartCodeInfo('main', null, [], '');
+ fileInfo.inlinedCode = new DartCodeInfo('main', null, [], '');
// Issue #207 happened because we used to mistakenly take the path of
// the external file when transforming the urls in the html file.
fileInfo.externalFile = new Path('dir/a.dart');
« no previous file with comments | « test/directive_parser_test.dart ('k') | test/observe_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698