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

Issue 9149005: split out vm-specific tests (Closed)

Created:
8 years, 11 months ago by jimhug
Modified:
8 years, 6 months ago
Reviewers:
gbracha, kasperl, Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

split out vm-specific tests These two tests check for arbitrary precision integers and 4-byte unicode support. These features are part of the dart specification, but we have currently decided that they are not expected to be supported by a JS implementation of the language. This change keeps the general parts of these tests - but it splits out the features a JS implementation is not expected to support into their own tests so that they can be tracked separately.

Patch Set 1 #

Patch Set 2 : include new tests #

Patch Set 3 : updating comments per ivan #

Patch Set 4 : keeping test closer to original #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -71 lines) Patch
M tests/language/language.status View 3 chunks +0 lines, -4 lines 0 comments Download
M tests/language/src/BitOperationsTest.dart View 1 2 3 5 chunks +28 lines, -34 lines 3 comments Download
A + tests/language/src/BitOperationsVMTest.dart View 1 2 chunks +4 lines, -11 lines 0 comments Download
M tests/language/src/CharEscapeTest.dart View 1 2 2 chunks +4 lines, -22 lines 0 comments Download
A tests/language/src/CharEscapeVMTest.dart View 1 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jimhug
I'd prefer to commit this change using these test names that match the established conventions ...
8 years, 11 months ago (2012-01-09 16:18:31 UTC) #1
jimhug
Hi ivan, I've tried to accurately separate these two tests into parts that should work ...
8 years, 11 months ago (2012-01-11 17:57:50 UTC) #2
Ivan Posva
Adding Kasper for questions relating to the JS exemption. -Ivan http://codereview.chromium.org/9149005/diff/6001/tests/language/src/BitOperationsTest.dart File tests/language/src/BitOperationsTest.dart (right): http://codereview.chromium.org/9149005/diff/6001/tests/language/src/BitOperationsTest.dart#newcode23 ...
8 years, 11 months ago (2012-01-13 00:54:25 UTC) #3
kasperl
Thanks for looping me in. I'll discuss how we can start documenting the JS numeric ...
8 years, 11 months ago (2012-01-16 08:37:32 UTC) #4
Ivan Posva
8 years, 6 months ago (2012-06-25 23:24:34 UTC) #5
On 2012/01/16 08:37:32, kasperl wrote:
> Thanks for looping me in. I'll discuss how we can start documenting the JS
> numeric exemption better with Gilad later today.
> 
>
http://codereview.chromium.org/9149005/diff/6001/tests/language/src/BitOperat...
> File tests/language/src/BitOperationsTest.dart (right):
> 
>
http://codereview.chromium.org/9149005/diff/6001/tests/language/src/BitOperat...
> tests/language/src/BitOperationsTest.dart:73: Expect.equals(0, 0 >> 30);
> On 2012/01/13 00:54:25, Ivan Posva wrote:
> > Not sure about this. Does the JS exemption also redefine the masking
behaviour
> > of the shift operation? If not then these tests should likely not be
impacted.
> 
> This is an interesting question. We clearly need to specify the JS numeric
> exemption better. It might be nice to extend this file with a test case that
> shows that the current 'expected' behavior when compiled to JS is to mask the
> shift count -- e.g. let (4 >> 33) == 2. Maybe we should change the name of
this
> method accordingly?

Closing this review: Obsolete.

Powered by Google App Engine
This is Rietveld 408576698