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

Issue 23944004: Merge two language/scope_ tests (Closed)

Created:
7 years, 3 months ago by Søren Gjesse
Modified:
7 years, 3 months ago
Reviewers:
kustermann
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Merge two language/scope_ tests R=kustermann@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=27108

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -55 lines) Patch
M tests/language/language_analyzer.status View 1 chunk +1 line, -2 lines 0 comments Download
M tests/language/language_analyzer2.status View 1 chunk +1 line, -2 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 chunks +2 lines, -1 line 0 comments Download
D tests/language/scope_negative_test.dart View 1 chunk +0 lines, -24 lines 0 comments Download
M tests/language/scope_variable_test.dart View 1 1 chunk +32 lines, -26 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Søren Gjesse
7 years, 3 months ago (2013-09-04 09:15:28 UTC) #1
kustermann
LGTM with comment https://codereview.chromium.org/23944004/diff/1/tests/language/scope_variable_test.dart File tests/language/scope_variable_test.dart (right): https://codereview.chromium.org/23944004/diff/1/tests/language/scope_variable_test.dart#newcode15 tests/language/scope_variable_test.dart:15: Expect.equals(true, c == null); I'd use ...
7 years, 3 months ago (2013-09-04 09:28:42 UTC) #2
Søren Gjesse
https://codereview.chromium.org/23944004/diff/1/tests/language/scope_variable_test.dart File tests/language/scope_variable_test.dart (right): https://codereview.chromium.org/23944004/diff/1/tests/language/scope_variable_test.dart#newcode15 tests/language/scope_variable_test.dart:15: Expect.equals(true, c == null); On 2013/09/04 09:28:42, kustermann wrote: ...
7 years, 3 months ago (2013-09-04 10:16:16 UTC) #3
Søren Gjesse
Committed patchset #2 manually as r27108 (presubmit successful).
7 years, 3 months ago (2013-09-04 10:17:13 UTC) #4
kustermann
7 years, 3 months ago (2013-09-04 10:19:16 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/23944004/diff/1/tests/language/scope_variable...
File tests/language/scope_variable_test.dart (right):

https://codereview.chromium.org/23944004/diff/1/tests/language/scope_variable...
tests/language/scope_variable_test.dart:15: Expect.equals(true, c == null);
On 2013/09/04 10:16:16, Søren Gjesse wrote:
> On 2013/09/04 09:28:42, kustermann wrote:
> > I'd use one of these two instead:
> > 
> >   Expect.isTrue(c == null)
> >   Expect.equals(null, c)
> > 
> > It's kind of strange to do 'Expect.equals(true, c == null)'.
> 
> Done (I just copied some old code). Ended up using Expect.isNull.

'Expect.isNull' is even better in this case.

My comment was ment to be general: a few lines down we've the same
'Expect.equals()'.

Powered by Google App Engine
This is Rietveld 408576698