| Index: tests/compiler/dart2js/patch_test.dart
|
| diff --git a/tests/compiler/dart2js/patch_test.dart b/tests/compiler/dart2js/patch_test.dart
|
| index 9bb6b960386590d6c759f9160df89ea00014dc58..5ac187ecfbb5dc788aa2fcf05d691d66bd8e4f17 100644
|
| --- a/tests/compiler/dart2js/patch_test.dart
|
| +++ b/tests/compiler/dart2js/patch_test.dart
|
| @@ -13,14 +13,10 @@
|
| Compiler applyPatch(String script, String patch) {
|
| String core = "$DEFAULT_CORELIB\n$script";
|
| MockCompiler compiler = new MockCompiler(coreSource: core);
|
| -
|
| var uri = new Uri("core.dartp");
|
| - var patchScript = new Script(uri, new MockFile(patch));
|
| - var patchLibrary = new LibraryElement(patchScript);
|
| -
|
| - compiler.patchParser.scanLibraryElements(patchLibrary);
|
| - compiler.applyLibraryPatch(compiler.coreLibrary, patchLibrary);
|
| -
|
| + compiler.sourceFiles[uri.toString()] = new MockFile(patch);
|
| + compiler.patchParser.patchLibrary(uri, compiler.coreLibrary);
|
| + compiler.applyClassPatches(compiler.coreLibrary);
|
| return compiler;
|
| }
|
|
|
|
|