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

Issue 10981031: Convert raw strings in pub (and apidoc) to new syntax. (Closed)

Created:
8 years, 2 months ago by Bob Nystrom
Modified:
8 years, 2 months ago
Reviewers:
nweiz
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Convert raw strings in pub (and apidoc) to new syntax. Committed: https://code.google.com/p/dart/source/detail?r=12890

Patch Set 1 #

Total comments: 6

Patch Set 2 : Respond to review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -97 lines) Patch
M utils/apidoc/mdn/extract.dart View 2 chunks +6 lines, -6 lines 0 comments Download
M utils/pub/hosted_source.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/pub/version.dart View 2 chunks +6 lines, -6 lines 0 comments Download
M utils/pub/yaml/composer.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/pub_install_git_test.dart View 1 18 chunks +21 lines, -21 lines 0 comments Download
M utils/tests/pub/pub_install_hosted_test.dart View 16 chunks +16 lines, -16 lines 0 comments Download
M utils/tests/pub/pub_install_sdk_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M utils/tests/pub/pub_install_test.dart View 1 11 chunks +13 lines, -13 lines 0 comments Download
M utils/tests/pub/pub_update_git_test.dart View 10 chunks +12 lines, -12 lines 0 comments Download
M utils/tests/pub/pub_update_hosted_test.dart View 10 chunks +10 lines, -10 lines 0 comments Download
M utils/tests/pub/pub_update_test.dart View 4 chunks +5 lines, -5 lines 0 comments Download
M utils/tests/pub/test_pub.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/version_solver_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Bob Nystrom
8 years, 2 months ago (2012-09-26 00:31:09 UTC) #1
nweiz
lgtm Should we maybe change these tests so that their behavior when passed a string ...
8 years, 2 months ago (2012-09-26 00:49:52 UTC) #2
Bob Nystrom
Thanks https://codereview.chromium.org/10981031/diff/1/utils/tests/pub/pub_install_git_test.dart File utils/tests/pub/pub_install_git_test.dart (right): https://codereview.chromium.org/10981031/diff/1/utils/tests/pub/pub_install_git_test.dart#newcode125 utils/tests/pub/pub_install_git_test.dart:125: error: const RegExp('^Package "foo" doesn\'t have a ' ...
8 years, 2 months ago (2012-09-26 01:14:42 UTC) #3
Bob Nystrom
8 years, 2 months ago (2012-09-26 01:15:43 UTC) #4
On 2012/09/26 00:49:52, nweiz wrote:
> lgtm
> 
> Should we maybe change these tests so that their behavior when passed a string
> is to check for the existence of that string in the output, rather than doing
an
> exact match? That would make a lot of these regexps unnecessary.

I think it's still helpful to validate that it doesn't print extraneous stuff.
For example, I think we have tests that you *don't* get a warning if the root
package doesn't contain a lib directory. But we should definitely be able to
come up with something to simplify these.

> 
>
https://codereview.chromium.org/10981031/diff/1/utils/tests/pub/pub_install_g...
> File utils/tests/pub/pub_install_git_test.dart (right):
> 
>
https://codereview.chromium.org/10981031/diff/1/utils/tests/pub/pub_install_g...
> utils/tests/pub/pub_install_git_test.dart:125: error: const RegExp('^Package
> "foo" doesn\'t have a '
> Removing the escaping here is inconsistent with the style below where we use r
> for "'", despite that having no sensitive characters. Either use r here or
don't
> use r there.
> 
>
https://codereview.chromium.org/10981031/diff/1/utils/tests/pub/pub_install_g...
> utils/tests/pub/pub_install_git_test.dart:126: 'pubspec.yaml file.'),
> The '.'s here should be escaped.
> 
>
https://codereview.chromium.org/10981031/diff/1/utils/tests/pub/pub_install_t...
> File utils/tests/pub/pub_install_test.dart (right):
> 
>
https://codereview.chromium.org/10981031/diff/1/utils/tests/pub/pub_install_t...
> utils/tests/pub/pub_install_test.dart:18: error: const RegExp(r'^Could not
find
> a file named "pubspec.yaml"'),
> This "." should be escaped.

Powered by Google App Engine
This is Rietveld 408576698