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

Issue 10151014: Run dart2js directly from test.dart. (Closed)

Created:
8 years, 8 months ago by ahe
Modified:
8 years, 8 months ago
CC:
reviews_dartlang.org, ngeoffray, Emily Fortuna
Visibility:
Public.

Description

Run dart2js directly from test.dart. Committed: https://code.google.com/p/dart/source/detail?r=6936

Patch Set 1 #

Total comments: 11

Patch Set 2 : Fix browser tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -20 lines) Patch
M dart/lib/compiler/implementation/dart2js.dart View 5 chunks +16 lines, -6 lines 0 comments Download
M dart/tools/testing/dart/test_suite.dart View 1 9 chunks +46 lines, -14 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
ahe
8 years, 8 months ago (2012-04-25 12:11:05 UTC) #1
kasperl
LGTM. https://chromiumcodereview.appspot.com/10151014/diff/1/dart/tools/testing/dart/test_suite.dart File dart/tools/testing/dart/test_suite.dart (right): https://chromiumcodereview.appspot.com/10151014/diff/1/dart/tools/testing/dart/test_suite.dart#newcode446 dart/tools/testing/dart/test_suite.dart:446: 'd8${TestUtils.executableSuffix("d8")}'; Maybe TestUtils.executableSuffix("d8") into a local variable to ...
8 years, 8 months ago (2012-04-25 12:23:47 UTC) #2
ngeoffray
LGTM! https://chromiumcodereview.appspot.com/10151014/diff/1/dart/lib/compiler/implementation/dart2js.dart File dart/lib/compiler/implementation/dart2js.dart (right): https://chromiumcodereview.appspot.com/10151014/diff/1/dart/lib/compiler/implementation/dart2js.dart#newcode52 dart/lib/compiler/implementation/dart2js.dart:52: fail('No files to compile.'); No files -> No ...
8 years, 8 months ago (2012-04-25 12:24:54 UTC) #3
Bill Hesse
LGTM. https://chromiumcodereview.appspot.com/10151014/diff/1/dart/lib/compiler/implementation/dart2js.dart File dart/lib/compiler/implementation/dart2js.dart (right): https://chromiumcodereview.appspot.com/10151014/diff/1/dart/lib/compiler/implementation/dart2js.dart#newcode43 dart/lib/compiler/implementation/dart2js.dart:43: } else if (argument == '--allow-mock-compilation') { constant ...
8 years, 8 months ago (2012-04-25 12:46:26 UTC) #4
ahe
Hi Bill, Kasper, and Nicolas, Thank you for your comments. I'll address them in a ...
8 years, 8 months ago (2012-04-25 13:09:52 UTC) #5
ahe
8 years, 8 months ago (2012-04-25 13:49:41 UTC) #6
Comments addressed in: https://chromiumcodereview.appspot.com/10228003

https://chromiumcodereview.appspot.com/10151014/diff/1/dart/lib/compiler/impl...
File dart/lib/compiler/implementation/dart2js.dart (right):

https://chromiumcodereview.appspot.com/10151014/diff/1/dart/lib/compiler/impl...
dart/lib/compiler/implementation/dart2js.dart:43: } else if (argument ==
'--allow-mock-compilation') {
On 2012/04/25 12:46:26, Bill Hesse wrote:
> constant on RHS of comparison disagrees with above lines.

Done.

https://chromiumcodereview.appspot.com/10151014/diff/1/dart/lib/compiler/impl...
dart/lib/compiler/implementation/dart2js.dart:52: fail('No files to compile.');
On 2012/04/25 12:24:54, ngeoffray wrote:
> No files -> No file

Done.

https://chromiumcodereview.appspot.com/10151014/diff/1/dart/tools/testing/dar...
File dart/tools/testing/dart/test_suite.dart (right):

https://chromiumcodereview.appspot.com/10151014/diff/1/dart/tools/testing/dar...
dart/tools/testing/dart/test_suite.dart:394: for (var dummy in
optionsFromFile["vmOptions"]) {
On 2012/04/25 12:46:26, Bill Hesse wrote:
> This count will now be wrong for dart2js tests, since they eliminate the
> duplicate run for multiple vmoptions.  Please file a bug if it is not fixed.

Done.

https://chromiumcodereview.appspot.com/10151014/diff/1/dart/tools/testing/dar...
dart/tools/testing/dart/test_suite.dart:445: var d8 =
'${TestUtils.buildDir(configuration)}/'
On 2012/04/25 12:46:26, Bill Hesse wrote:
> I'd like to see the constructor of the d8 path in a helper function, that also
> checks its existence. 

Done.

https://chromiumcodereview.appspot.com/10151014/diff/1/dart/tools/testing/dar...
dart/tools/testing/dart/test_suite.dart:446:
'd8${TestUtils.executableSuffix("d8")}';
On 2012/04/25 12:23:47, kasperl wrote:
> Maybe TestUtils.executableSuffix("d8") into a local variable to make this
easier
> to grok?

Done.

Powered by Google App Engine
This is Rietveld 408576698