dart-sdk/tests
rnewquist 2917c1cb8f [io/http] Add a HTTP Client parameter on WebSocket.connect to allow a custom HTTP Client for web socket connections.
The WebSocket abstract class was changed to allow an optional parameter called customClient that takes in a HTTPClient and passes it to the WebSocket Implementation.
The WebSocket implementation takes the customClient, checks if its null, if its not null, it uses the customClient in place of the static HTTPClient that the WebSocket Implementation offers.
This custom client does not override the static HTTPClient, so all previous functionality remains the same when the customClient is not present.

TEST=testStaticClientUserAgentStaysTheSame() in web_socket_test.dart in standalone_2/standalone
TEST=new SecurityConfiguration(secure: true).runTests(); in web_socket_error_test.dart and web_socket_test.dart in standalone_2/standalone

Bug: https://github.com/dart-lang/sdk/issues/34284

Closes https://github.com/dart-lang/sdk/pull/46040
https://github.com/dart-lang/sdk/pull/46040

GitOrigin-RevId: 58fed38baa606a8a492d3729190afa5009cc2409
Change-Id: I042b1e3fa7a4effed076c0deeec1f86af0dfe26d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200262
Reviewed-by: Alexander Aprelev <aam@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2021-09-15 18:06:42 +00:00
..
co19 [co19] Re-enable fixed tests 2021-09-06 17:30:57 +00:00
co19_2 [co19] LibTests/typed_data tests skipped for dart2js 2021-08-16 08:07:34 +00:00
corelib Fix bug in Duration.toString(). 2021-09-10 14:58:47 +00:00
corelib_2 Fix bug in Duration.toString(). 2021-09-10 14:58:47 +00:00
dartdevc [ddc] Unify pkg:js types and allow subtyping between them 2021-07-30 00:33:54 +00:00
dartdevc_2 [ddc] Unify pkg:js types and allow subtyping between them 2021-07-30 00:33:54 +00:00
ffi [vm/ffi] Adds FFI transform for Handle -> Pointer. 2021-09-15 12:47:35 +00:00
ffi_2 [vm/ffi] Adds param number in trampoline null error 2021-09-04 07:22:03 +00:00
language master branch to main 2021-09-15 06:22:23 +00:00
language_2 master branch to main 2021-09-15 06:22:23 +00:00
lib Optimize js_util callConstructor for 0-4 arguments. 2021-09-13 22:43:10 +00:00
lib_2 Optimize js_util callConstructor for 0-4 arguments. 2021-09-13 22:43:10 +00:00
modular [ddc] Fix private class exposed by typedef 2021-04-05 18:54:56 +00:00
standalone [io/http] Add a HTTP Client parameter on WebSocket.connect to allow a custom HTTP Client for web socket connections. 2021-09-15 18:06:42 +00:00
standalone_2 [io/http] Add a HTTP Client parameter on WebSocket.connect to allow a custom HTTP Client for web socket connections. 2021-09-15 18:06:42 +00:00
web [dart2js] Improve type inference for createSentinel. 2021-09-13 21:59:20 +00:00
web_2 Remove obsolete internal dart2js annotations 2021-08-04 23:27:18 +00:00
legacy_status_dart2js.csv [dart2js] Remove obsolete unittests. 2020-05-12 17:16:39 +00:00
README.md Update tests/README to point to new doc. 2019-08-06 22:19:42 +00:00

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.