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

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

Issue 789873003: Update unit tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years 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 | « dart/pkg/compiler/lib/src/use_unused_api.dart ('k') | dart/tests/try/poi/library_updater_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/try/poi/apply_updates_test.dart
diff --git a/dart/tests/try/poi/apply_updates_test.dart b/dart/tests/try/poi/apply_updates_test.dart
index 303bdddcb942b4ccf5274863ee4f7c0ae933ba85..41bdff70040d3621d64acddffbf8822272bdb4b5 100644
--- a/dart/tests/try/poi/apply_updates_test.dart
+++ b/dart/tests/try/poi/apply_updates_test.dart
@@ -6,9 +6,6 @@
// after.
library trydart.library_updater_test;
-import 'dart:convert' show
- UTF8;
-
import 'package:dart2js_incremental/library_updater.dart' show
IncrementalCompilerContext,
LibraryUpdater,
@@ -17,10 +14,17 @@ import 'package:dart2js_incremental/library_updater.dart' show
import 'package:compiler/src/scanner/scannerlib.dart' show
PartialFunctionElement;
+import 'package:compiler/src/dart2jslib.dart' show
+ Script;
+
+import 'package:compiler/src/source_file.dart' show
+ StringSourceFile;
+
import 'compiler_test_case.dart';
import 'library_updater_test.dart' show
LibraryUpdaterTestCase,
+ newScriptFrom,
nolog;
class ApplyUpdateTestCase extends LibraryUpdaterTestCase {
@@ -44,7 +48,8 @@ class ApplyUpdateTestCase extends LibraryUpdaterTestCase {
context.registerUriWithUpdates([scriptUri]);
bool actualCanReuse =
- updater.canReuseLibrary(library, UTF8.encode(newSource));
+ updater.canReuseLibrary(
+ library, <Script>[newScriptFrom(library, newSource)]);
Expect.equals(expectedCanReuse, actualCanReuse);
Update update = updater.updates.single;
« no previous file with comments | « dart/pkg/compiler/lib/src/use_unused_api.dart ('k') | dart/tests/try/poi/library_updater_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698