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

Issue 8241008: Refactors some helper functions in ResolverTest back down to ResolverTestCase (Closed)

Created:
9 years, 2 months ago by zundel
Modified:
9 years, 2 months ago
Reviewers:
jbrosenberg
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Refactors some helper functions in ResolverTest back down to ResolverTestCase I intend to make a new test for exercising compile time constants and want to use the same infrastructure. Committed: https://code.google.com/p/dart/source/detail?r=382

Patch Set 1 : Added a nice printing of the source on error #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -402 lines) Patch
M compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java View 9 chunks +150 lines, -386 lines 2 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java View 8 chunks +207 lines, -16 lines 3 comments Download

Messages

Total messages: 4 (0 generated)
zundel
I want to use these convenience methods defined in ResolverTest in another test, so I ...
9 years, 2 months ago (2011-10-12 17:51:10 UTC) #1
zundel
http://codereview.chromium.org/8241008/diff/4001/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java File compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java (left): http://codereview.chromium.org/8241008/diff/4001/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java#oldcode681 compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java:681: private static DartUnit makeUnit(DartNode... topLevelElements) { This stuff moved ...
9 years, 2 months ago (2011-10-12 21:25:28 UTC) #2
jbrosenberg
LGTM w/1 small Q http://codereview.chromium.org/8241008/diff/4001/compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java File compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java (left): http://codereview.chromium.org/8241008/diff/4001/compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java#oldcode169 compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java:169: public InterfaceType getNumType() { Did ...
9 years, 2 months ago (2011-10-12 21:43:38 UTC) #3
zundel
9 years, 2 months ago (2011-10-13 00:45:38 UTC) #4
r382

Thanks for the review!

http://codereview.chromium.org/8241008/diff/4001/compiler/javatests/com/googl...
File compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java
(left):

http://codereview.chromium.org/8241008/diff/4001/compiler/javatests/com/googl...
compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java:169:
public InterfaceType getNumType() {
On 2011/10/12 21:43:38, jbrosenberg wrote:
> Did you mean to remove this one?

Its still hanging around.  I replaced the body with return numType; and moved it
to be by int and double.

Powered by Google App Engine
This is Rietveld 408576698