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

Issue 8355014: - Make sure to test all combinations of getters. (Closed)

Created:
9 years, 2 months ago by Ivan Posva
Modified:
9 years, 2 months ago
Reviewers:
gbracha, ngeoffray, hausner
CC:
reviews_dartlang.org
Visibility:
Public.

Description

- Make sure to test all combinations of getters. Committed: https://code.google.com/p/dart/source/detail?r=573

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -4 lines) Patch
M language/src/GetterClosureExecutionOrderTest.dart View 1 1 chunk +66 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Ivan Posva
Including Gilad to make sure that the test does follow what the specification states. -Ivan
9 years, 2 months ago (2011-10-19 20:29:23 UTC) #1
ngeoffray
Nice, thanks Ivan! LGTM!
9 years, 2 months ago (2011-10-19 20:40:38 UTC) #2
hausner
Nice! LGTM.
9 years, 2 months ago (2011-10-19 20:48:34 UTC) #3
gbracha
The original test was broken, because the rules for top function invocations are different. This ...
9 years, 2 months ago (2011-10-19 20:55:19 UTC) #4
Ivan Posva
9 years, 2 months ago (2011-10-19 21:26:16 UTC) #5
Thanks! Updated the test, submitting.

http://codereview.chromium.org/8355014/diff/1/language/src/GetterClosureExecu...
File language/src/GetterClosureExecutionOrderTest.dart (left):

http://codereview.chromium.org/8355014/diff/1/language/src/GetterClosureExecu...
language/src/GetterClosureExecutionOrderTest.dart:11: Expect.equals(1, counter);
On 2011/10/19 20:55:19, gbracha wrote:
> This should be 0. This is a top level getter, and when invoked it will be
> evaluated before its arguments. In other words, this part of the test is
> invalid.

Done.

http://codereview.chromium.org/8355014/diff/1/language/src/GetterClosureExecu...
File language/src/GetterClosureExecutionOrderTest.dart (right):

http://codereview.chromium.org/8355014/diff/1/language/src/GetterClosureExecu...
language/src/GetterClosureExecutionOrderTest.dart:32: Expect.equals(0, counter);
On 2011/10/19 20:55:19, gbracha wrote:
> This should expect counter = 1. See comment below.

Done.

http://codereview.chromium.org/8355014/diff/1/language/src/GetterClosureExecu...
language/src/GetterClosureExecutionOrderTest.dart:63: // Check static getters.
On 2011/10/19 20:55:19, gbracha wrote:
> This is valid per the current spec, though perhaps that should change to agree
> with the top level case.

Done.

Powered by Google App Engine
This is Rietveld 408576698