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

Issue 11883033: Fixed utf8 encoding/decoding issues in the testing scripts (Closed)

Created:
7 years, 11 months ago by kustermann
Modified:
7 years, 11 months ago
CC:
reviews_dartlang.org, ahe
Visibility:
Public.

Description

Fixed utf8 encoding/decoding issues in the testing scripts Committed: https://code.google.com/p/dart/source/detail?r=17057

Patch Set 1 #

Patch Set 2 : #

Total comments: 11

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -40 lines) Patch
M tests/standalone/io/test_runner_test.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M tools/testing/dart/multitest.dart View 3 chunks +4 lines, -9 lines 0 comments Download
M tools/testing/dart/test_progress.dart View 4 chunks +7 lines, -6 lines 0 comments Download
M tools/testing/dart/test_runner.dart View 1 7 chunks +11 lines, -8 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 2 chunks +7 lines, -15 lines 0 comments Download
A tools/testing/dart/utils.dart View 1 2 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
kustermann
7 years, 11 months ago (2013-01-15 10:15:48 UTC) #1
kustermann
On 2013/01/15 10:15:48, kustermann wrote: There are a few places left, where we do "somestring".charCodes. ...
7 years, 11 months ago (2013-01-15 10:20:41 UTC) #2
ricow1
LGTM, as discussed offline we should get some input from Mads if this is ever ...
7 years, 11 months ago (2013-01-15 10:25:37 UTC) #3
kustermann
https://codereview.chromium.org/11883033/diff/2001/tools/testing/dart/multitest.dart File tools/testing/dart/multitest.dart (right): https://codereview.chromium.org/11883033/diff/2001/tools/testing/dart/multitest.dart#newcode71 tools/testing/dart/multitest.dart:71: bytes = null; On 2013/01/15 10:25:37, ricow1 wrote: > ...
7 years, 11 months ago (2013-01-15 10:31:01 UTC) #4
ricow1
https://codereview.chromium.org/11883033/diff/2001/tools/testing/dart/multitest.dart File tools/testing/dart/multitest.dart (right): https://codereview.chromium.org/11883033/diff/2001/tools/testing/dart/multitest.dart#newcode71 tools/testing/dart/multitest.dart:71: bytes = null; On 2013/01/15 10:31:01, kustermann wrote: > ...
7 years, 11 months ago (2013-01-15 10:33:00 UTC) #5
ahe
DBC https://codereview.chromium.org/11883033/diff/2001/tools/testing/dart/multitest.dart File tools/testing/dart/multitest.dart (right): https://codereview.chromium.org/11883033/diff/2001/tools/testing/dart/multitest.dart#newcode63 tools/testing/dart/multitest.dart:63: String contents = decodeUtf8(bytes); I would write this ...
7 years, 11 months ago (2013-01-15 10:36:18 UTC) #6
Mads Ager (google)
There are a number of commands from which we can get output here. I don't ...
7 years, 11 months ago (2013-01-15 10:36:53 UTC) #7
Mads Ager (google)
LGTM Ignore my previous comments. As you showed me offline you are using the utf ...
7 years, 11 months ago (2013-01-15 10:52:59 UTC) #8
kustermann
7 years, 11 months ago (2013-01-15 12:22:10 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/11883033/diff/2001/tools/testing/dart/multite...
File tools/testing/dart/multitest.dart (right):

https://codereview.chromium.org/11883033/diff/2001/tools/testing/dart/multite...
tools/testing/dart/multitest.dart:63: String contents = decodeUtf8(bytes);
On 2013/01/15 10:36:19, ahe wrote:
> I would write this as:
> 
> decodeUtf8(new File.fromPath(filePath).readAsBytesSync());
I saw your comment too late, sorry.

https://codereview.chromium.org/11883033/diff/2001/tools/testing/dart/multite...
tools/testing/dart/multitest.dart:71: bytes = null;
On 2013/01/15 10:33:00, ricow1 wrote:
> On 2013/01/15 10:31:01, kustermann wrote:
> > On 2013/01/15 10:25:37, ricow1 wrote:
> > > why do you do this?
> > 
> > It was there before ('chars = null') so I left it. I think peter put this in
> > because it allows the GC to collect the data even if the function hasn't
> ended.
> > On the other hand, the VM should be smart enough to figure out that the
> variable
> > is no longer referenced and not include it in the root-set?!
> I don't expect it to be that clever actually, it will still be alive here. Why
> did you move it down here?
> 
Just by accident, but this way 'bytes = null' and 'contents = null' are in one
place. It really shouldn't matter anyway, so I'll leave it.

Powered by Google App Engine
This is Rietveld 408576698