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

Unified Diff: utils/tests/pub/version_solver_test.dart

Issue 10981031: Convert raw strings in pub (and apidoc) to new syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 8 years, 3 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 | « utils/tests/pub/test_pub.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/version_solver_test.dart
diff --git a/utils/tests/pub/version_solver_test.dart b/utils/tests/pub/version_solver_test.dart
index 47238b56c1c85cb8e3dead6cfc37780a06a0b432..af63e5e6b9e6c32c4b7429d762b4d1eb114a0595 100644
--- a/utils/tests/pub/version_solver_test.dart
+++ b/utils/tests/pub/version_solver_test.dart
@@ -469,7 +469,7 @@ class MockSource extends Source {
dependencyStrings.forEach((name, constraint) {
var parsed = parseSource(name);
var description = parsed.first;
- var packageName = description.replaceFirst(new RegExp(@"-[^-]+$"), "");
+ var packageName = description.replaceFirst(new RegExp(r"-[^-]+$"), "");
dependencies.add(new PackageRef(packageName, parsed.last,
new VersionConstraint.parse(constraint), description));
});
@@ -521,7 +521,7 @@ Future fakeAsync(callback()) {
}
Pair<String, Source> parseSource(String name) {
- var match = new RegExp(@"(.*) from (.*)").firstMatch(name);
+ var match = new RegExp(r"(.*) from (.*)").firstMatch(name);
if (match == null) return new Pair<String, Source>(name, source1);
switch (match[2]) {
case 'mock1': return new Pair<String, Source>(match[1], source1);
« no previous file with comments | « utils/tests/pub/test_pub.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698