Liam Appelbe
7df1498352
[nnbd/libs] Fixing more strong mode tests
...
Change-Id: I5c9080ed75112479ddbeaf6485a5beab3bcb2717
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/142209
Reviewed-by: Alexander Markov <alexmarkov@google.com >
Reviewed-by: Jonas Termansen <sortie@google.com >
Commit-Queue: Liam Appelbe <liama@google.com >
2020-04-03 17:30:09 +00:00
Jonas Termansen
3433d8cfc3
[nnbd] Migrate standalone/io to NNBD.
...
The tests are also now dartfmt.
Bug: https://github.com/dart-lang/sdk/issues/40040
Change-Id: I8dece8097b37b70d47a5374dae2f3fadb0fc4b90
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134338
Commit-Queue: Jonas Termansen <sortie@google.com >
Reviewed-by: Bob Nystrom <rnystrom@google.com >
2020-02-07 14:41:36 +00:00
Siva Annamalai
bc4860b0cb
Most VM specific tests in standalone have been moved to standalone_2 and are being run in the regular bot tests. These tests are for VM functionality like io, process API etc. and have no strong mode implications. Currently we are running these tests twice once from standalone and once from standalone_2.
...
This CL removes these redundant tests from the standalone directory.
Bug:
Change-Id: Ib0adfa67fffa4de486e847698e18353fb4dd8a46
Reviewed-on: https://dart-review.googlesource.com/18429
Commit-Queue: Siva Annamalai <asiva@google.com >
Reviewed-by: Zach Anderson <zra@google.com >
2017-11-07 23:00:00 +00:00
William Hesse
7bf2788bcc
Restore all deleted tests to tests/standalone from migration to standalone_2
...
We are no longer deleting tests from the Dart 1 test directories when we
add them to the _2 directories. This reverts the part of change
https://dart-review.googlesource.com/c/sdk/+/12240 that modifies
the tests/standlone directory.
Bug:
Change-Id: Ie26b185234d0d18736a2fa13b77c5fd42cbb7e92
Reviewed-on: https://dart-review.googlesource.com/12287
Reviewed-by: Morten Krogh-jespersen <mkroghj@google.com >
2017-10-09 10:46:55 +00:00
Siva Annamalai
bd2a8e1d60
Reland migrate most of the tests in standalone to be strong mode clean and move them to standalone_2 directory.
...
Bug:
Change-Id: I4ca50f315361422db1d4356055862463bfe1d6f3
Reviewed-on: https://dart-review.googlesource.com/12240
Reviewed-by: Siva Annamalai <asiva@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Siva Annamalai <asiva@google.com >
2017-10-07 01:29:36 +00:00
Siva Annamalai
ff32187145
Revert "Migrate most of the tests in standalone to be strong mode clean and move"
...
This reverts commit c85563f582 .
Reason for revert: <INSERT REASONING HERE>
Original change's description:
> Migrate most of the tests in standalone to be strong mode clean and move
> them to standalone_2 directory.
>
> Change-Id: I9887b8d6d4d86001e4660b400224b881205e6273
> Reviewed-on: https://dart-review.googlesource.com/6080
> Reviewed-by: Ben Konyi <bkonyi@google.com >
TBR=bkonyi@google.com ,asiva@google.com
Change-Id: I3c7b6081f17fca45e7828603538f50d06417e2be
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/12020
Reviewed-by: Siva Annamalai <asiva@google.com >
Commit-Queue: Siva Annamalai <asiva@google.com >
2017-10-06 17:24:20 +00:00
Siva Annamalai
c85563f582
Migrate most of the tests in standalone to be strong mode clean and move
...
them to standalone_2 directory.
Change-Id: I9887b8d6d4d86001e4660b400224b881205e6273
Reviewed-on: https://dart-review.googlesource.com/6080
Reviewed-by: Ben Konyi <bkonyi@google.com >
2017-10-06 17:07:34 +00:00
Jacob Richman
2dcd56ef43
Format all tests.
...
There are far too many files here to review everyone carefully.
Spot checking most of the diffs look good as test code is generally written
with less care than application code so lots of ugly formatting get through.
If people notice files where the automated formatting bothers them feel free
to comment indicating file names and I'll move spaces within comments to make
the formatting cleaner and use comments to force block formatting as I have
done for other case where formatting looked bad.
BUG=
R=efortuna@google.com
Review-Url: https://codereview.chromium.org/2771453003 .
2017-04-17 14:53:02 -07:00
Lasse Reichstein Holst Nielsen
c41ae15713
Specify FutureOr.
...
R=eernst@google.com , floitsch@google.com
Review-Url: https://codereview.chromium.org/2664263002 .
2017-02-03 08:02:09 +01:00
keertip
1d6bd5255d
Revert "Make HTTP headers use a growing buffer, not a fixed-size 8K one."
...
This reverts commit 5119795422 .
BUG=
R=dgrove@google.com
Review-Url: https://codereview.chromium.org/2650583005 .
2017-01-23 14:57:27 -08:00
Lasse R.H. Nielsen
5119795422
Make HTTP headers use a growing buffer, not a fixed-size 8K one.
...
Issue #28251
BUG= http://dartbug.com/28251
R=sgjesse@google.com
Review-Url: https://codereview.chromium.org/2618523005 .
2017-01-13 10:12:19 +01:00
ajohnsen@google.com
491442573f
Use a re-usable buffer for writing HTTP headers. This includes a new header limit of 8192 bytes.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//65043019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30335 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-18 10:27:50 +00:00
ajohnsen@google.com
9c7ba71d61
Don't close existing connection on HttpServer close (and stream cancel).
...
This also fixes several issues exposed by this.
BUG=http://code.google.com/p/dart/issues/detail?id=14317
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//36643002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29083 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 14:18:25 +00:00
sgjesse@google.com
b1a115db63
Fix errors in dart:io tests found by the analyzer
...
TBR=ajohnsen@google.com
BUG=
Review URL: https://codereview.chromium.org//23896002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27057 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-03 14:02:21 +00:00
sgjesse@google.com
18c75d3dc2
Update dart:io tests to use asyncStart/asyncEnd
...
R=ajohnsen@google.com
BUG=http://dartbug.com/12977
Review URL: https://codereview.chromium.org//23886004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27054 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-03 13:42:56 +00:00
sgjesse@google.com
2fdb878ebe
Change the signature for all network bind calls.
...
All the bind calls on RawServerSocket, ServerSocket,
RawSecureServerSocket, SecureServerSocket and HttpServer (and
bindSecure on HttpServer) now have mandatory address and port
parameters. All the rest of the parameters are named optional
(including backlog).
The address parameter can be an InternetAddress or a String for all
these calls.
R=ajohnsen@google.com , whesse@google.com
BUG=
Review URL: https://codereview.chromium.org//14640008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22227 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-01 09:14:04 +00:00
ager@google.com
431954b584
Rename dart:typeddata to dart:typed_data.
...
R=asiva@google.com , floitsch@google.com , srdjan@google.com
BUG=
Review URL: https://codereview.chromium.org//14426006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21871 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 11:54:54 +00:00
ajohnsen@google.com
dcaf52732e
Remove StreamSink(replaced by EventSink) and make IOSink extend EventSink.
...
With this change 'writeBytes' was renamed to 'add'.
BUG=
Review URL: https://codereview.chromium.org//14150002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21275 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 12:54:19 +00:00
ajohnsen@google.com
21451e1d3d
Remove HttpClientRequest.response, as it's identical to HttpClientRequest.done.
...
BUG=
Review URL: https://codereview.chromium.org//14055003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21198 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 12:54:23 +00:00
ajohnsen@google.com
f270244862
Delay HttpClientResponse until HttpClientRequest is fully sent.
...
BUG=
Review URL: https://codereview.chromium.org//13861005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21144 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 10:48:59 +00:00
floitsch@google.com
8fd6d0aafd
Remove Expect from core library.
...
Committed: https://code.google.com/p/dart/source/detail?r=19755
Reverted: http://code.google.com/p/dart/source/detail?r=19756
Review URL: https://codereview.chromium.org//12212016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20996 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 19:43:16 +00:00
asiva@google.com
b368804b23
- Use dart:typeddata in the tests instead of dart:scalarlist
...
- delete byte_array_test.dart as a dart:typeddata version of this test
is present in typed_data_test.dart
Review URL: https://codereview.chromium.org//12507012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20600 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-28 00:35:37 +00:00
ajohnsen@google.com
959193b500
Buffer the entire http header to one packet, and buffer other data in chunks of 4-16 kb.
...
BUG=https://code.google.com/p/dart/issues/detail?id=8871
Review URL: https://codereview.chromium.org//12655003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19857 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-12 12:13:36 +00:00
floitsch@google.com
5dc8107c53
Revert "Remove Expect from core library."
...
This reverts commit 19755.
Review URL: https://codereview.chromium.org//12743005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19756 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-09 03:19:07 +00:00
floitsch@google.com
12dbd2fd70
Remove Expect from core library.
...
Review URL: https://codereview.chromium.org//12212016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19755 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-09 02:40:37 +00:00
sgjesse@google.com
b6096848b1
Make IOSink implement StringSink
...
Besides adding the StringSink methods I also added writeBytes and
deprecated both add and addString.
To handle the encoding of strings the IOSike has an encoding
property. This property is mutable in situation when it makes sense to
change encoding of what is written. The exception here is for HTTP
where the encoding is determined from the header and the encoding
cannot be changed.
R=ajohnsen@google.com , ager@google.com , nweiz@google.com
BUG=
Review URL: https://codereview.chromium.org//12504006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19676 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 10:06:28 +00:00
sgjesse@google.com
a7f2f94695
Add missing files from previous commit
...
TBR=ager@google.com
BUG=
Review URL: https://codereview.chromium.org//12328037
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18821 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-21 12:08:34 +00:00