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

Unified Diff: tests/try/poi/apply_updates_test.dart

Issue 1892733003: fix tests (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/dart2js_incremental/lib/library_updater.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/try/poi/apply_updates_test.dart
diff --git a/tests/try/poi/apply_updates_test.dart b/tests/try/poi/apply_updates_test.dart
index e8c8429d3c56028f493fe6fa0f44e5bdb9600c41..6c7c6cda4ff9347380363963c0630dc7cc45b1cb 100644
--- a/tests/try/poi/apply_updates_test.dart
+++ b/tests/try/poi/apply_updates_test.dart
@@ -40,7 +40,7 @@ class ApplyUpdateTestCase extends LibraryUpdaterTestCase {
Future run() => loadMainApp().then((LibraryElement library) {
// Capture the current version of [before] before invoking the [updater].
PartialFunctionElement before = library.localLookup(expectedUpdate);
- var beforeNode = before.parseNode(compiler.parsing);
+ var beforeNode = before.parseNode(compiler.parsingContext);
var context = new IncrementalCompilerContext();
LibraryUpdater updater =
@@ -56,10 +56,10 @@ class ApplyUpdateTestCase extends LibraryUpdaterTestCase {
// Check that the [updater] didn't modify the changed element.
Expect.identical(before, update.before);
- Expect.identical(beforeNode, before.parseNode(compiler.parsing));
+ Expect.identical(beforeNode, before.parseNode(compiler.parsingContext));
PartialFunctionElement after = update.after;
- var afterNode = after.parseNode(compiler.parsing);
+ var afterNode = after.parseNode(compiler.parsingContext);
// Check that pretty-printing the elements match [source] (before), and
// [newSource] (after).
@@ -72,7 +72,7 @@ class ApplyUpdateTestCase extends LibraryUpdaterTestCase {
// Check that the update was applied by pretty-printing [before]. Make no
// assumptions about [after], as the update may destroy that element.
- beforeNode = before.parseNode(compiler.parsing);
+ beforeNode = before.parseNode(compiler.parsingContext);
Expect.notEquals(source, '$beforeNode');
Expect.stringEquals(newSource, '$beforeNode');
});
« no previous file with comments | « pkg/dart2js_incremental/lib/library_updater.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698