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

Unified Diff: tests/compiler/dart2js/patch_test.dart

Issue 1220333003: dart2js: Rename emitters. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 | « tests/compiler/dart2js/mock_libraries.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/patch_test.dart
diff --git a/tests/compiler/dart2js/patch_test.dart b/tests/compiler/dart2js/patch_test.dart
index 6f5987858fc1d46456b0e068171ce2e9c7008ad5..c198012667a29f0af9a458928645d19b54aac559 100644
--- a/tests/compiler/dart2js/patch_test.dart
+++ b/tests/compiler/dart2js/patch_test.dart
@@ -136,13 +136,13 @@ testPatchFunction() {
testPatchVersioned() {
- String oldPatch = "test(){return 'string';}";
- String newPatch = "test(){return 'new and improved string';}";
+ String fullPatch = "test(){return 'string';}";
+ String lazyPatch = "test(){return 'new and improved string';}";
String patchSource =
"""
- @patch_old $oldPatch
- @patch_new $newPatch
+ @patch_full $fullPatch
+ @patch_lazy $lazyPatch
""";
test(String patchVersion,
@@ -192,11 +192,11 @@ testPatchVersioned() {
}));
}
- test('old', patchText: oldPatch);
- test('new', patchText: newPatch);
+ test('full', patchText: fullPatch);
+ test('lazy', patchText: lazyPatch);
test('unknown', expectIsPatched: false,
expectedError: 'External method without an implementation.');
- test('old',
+ test('full',
defaultPatch: "@patch test(){}",
expectedInternalError: "Trying to patch a function more than once.");
}
« no previous file with comments | « tests/compiler/dart2js/mock_libraries.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698