| 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');
|
| });
|
|
|