commit | 0f49f23be497be7b334cd1056c0fc9c008ee37a9 | [log] [tgz] |
---|---|---|
author | Ömer Sinan Ağacan <omersa@google.com> | Wed May 31 18:06:55 2023 +0000 |
committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed May 31 18:06:55 2023 +0000 |
tree | 9a037a56d0547fd7775ac18dbbbe92f79dd5cb44 | |
parent | d083c636850a7ecc9a5f84ad2d1db3593742a532 [diff] |
[dart2wasm] Add support for testing in Chrome d8 doesn't have some of the JS and HTML functions we need for event and micro-task scheduling. In [1] we add mock functions to allow running in d8, but that means the mock event loop can run differently than the actual Chrome event loop, so we need to test in Chrome. This CL adds support for this. [1]: https://dart-review.googlesource.com/c/sdk/+/305201 New failing tests with the new configuration: language/nnbd/static_errors/unchecked_use_of_nullable_test/30 broke (RuntimeError -> Pass, expected RuntimeError) language/regress/regress24935_test/01 broke (RuntimeError -> Pass, expected RuntimeError) language/unsorted/flatten_test/01 broke (RuntimeError -> Pass, expected RuntimeError) language/unsorted/flatten_test/05 broke (RuntimeError -> Pass, expected RuntimeError) language/unsorted/flatten_test/09 broke (RuntimeError -> Pass, expected RuntimeError) lib/js/export/static_interop_mock/proto_test is new and failed (CompileTimeError, expected Pass) lib/js/static_interop_test/constants_test is new and failed (CompileTimeError, expected Pass) lib/js/static_interop_test/futurevaluetype_test is new and failed (CompileTimeError, expected Pass) lib/js/static_interop_test/supertype_transform_test is new and failed (CompileTimeError, expected Pass) New passing tests with the new configuration: co19/Language/Expressions/Function_Invocation/async_generator_invokation_t10 was fixed (Fail -> Pass) co19/Language/Libraries_and_Scripts/Scripts/top_level_main_t01 was fixed (RuntimeError -> Pass) co19/Language/Libraries_and_Scripts/Scripts/top_level_main_t06 was fixed (RuntimeError -> Pass) co19/Language/Statements/Yield_and_Yield_Each/Yield/execution_async_A01_t07 was fixed (RuntimeError -> Pass) co19/Language/Statements/Yield_and_Yield_Each/Yield_Each/execution_async_A03_t03 was fixed (Fail -> Pass) co19/Language/Statements/Yield_and_Yield_Each/Yield_Each/execution_async_A03_t07 was fixed (Fail -> Pass) co19/Language/Statements/Yield_and_Yield_Each/Yield_Each/execution_async_A03_t08 was fixed (RuntimeError -> Pass) co19/Language/Statements/Yield_and_Yield_Each/Yield_Each/execution_async_A03_t09 was fixed (RuntimeError -> Pass) co19/Language/Statements/Yield_and_Yield_Each/Yield_Each/execution_async_A03_t11 was fixed (Fail -> Pass) co19/LibTest/async/Future/Future.delayed_A01_t02 was fixed (RuntimeError -> Pass) co19/LibTest/async/Stream/Stream.periodic_A01_t01 was fixed (RuntimeError -> Pass) co19/LibTest/async/Stream/Stream.periodic_all_t01 was fixed (RuntimeError -> Pass) co19/LibTest/async/Stream/Stream.periodic_all_t02 was fixed (RuntimeError -> Pass) co19/LibTest/async/Stream/Stream.periodic_all_t03 was fixed (RuntimeError -> Pass) co19/LibTest/async/StreamController/StreamController.broadcast_Stream_all_A01_t01 was fixed (RuntimeError -> Pass) co19/LibTest/async/StreamController/StreamController.broadcast_Stream_all_A01_t02 was fixed (RuntimeError -> Pass) co19/LibTest/async/StreamController/StreamController.broadcast_Stream_all_A01_t03 was fixed (RuntimeError -> Pass) co19/LibTest/async/StreamController/StreamController.broadcast_Stream_all_A02_t01 was fixed (RuntimeError -> Pass) co19/LibTest/async/StreamController/StreamController.broadcast_Stream_all_A02_t02 was fixed (RuntimeError -> Pass) co19/LibTest/async/StreamController/StreamController.broadcast_Stream_all_A02_t03 was fixed (RuntimeError -> Pass) co19/LibTest/async/StreamController/stream_all_A01_t01 was fixed (RuntimeError -> Pass) co19/LibTest/async/StreamController/stream_all_A01_t02 was fixed (RuntimeError -> Pass) co19/LibTest/async/StreamController/stream_all_A02_t01 was fixed (RuntimeError -> Pass) co19/LibTest/async/StreamController/stream_all_A02_t02 was fixed (RuntimeError -> Pass) co19/LibTest/async/StreamController/stream_all_A02_t03 was fixed (RuntimeError -> Pass) co19/LibTest/async/Timer/Timer.periodic_A01_t01 was fixed (RuntimeError -> Pass) co19/LibTest/async/Timer/Timer_A01_t01 was fixed (RuntimeError -> Pass) co19/LibTest/core/Stopwatch/elapsedTicks_A01_t01 was fixed (RuntimeError -> Pass) corelib/throw_half_surrogate_pair_test/01 was fixed (NonUtf8Output -> RuntimeError) corelib/throw_half_surrogate_pair_test/02 was fixed (NonUtf8Output -> RuntimeError) language/async/return_throw_test was fixed (RuntimeError -> Pass) language/async_star/async_star_await_for_test was fixed (RuntimeError -> Pass) language/async_star/async_star_test was fixed (RuntimeError -> Pass) language/async_star/yield_test was fixed (Fail -> Pass) language/async_star/yieldstar_test was fixed (Fail -> Pass) language/import/conditional_string_test is new and succeeded (Pass) language/regress/regress21795_test was fixed (RuntimeError -> Pass) language/regress/regress23244_test was fixed (RuntimeError -> Pass) lib/async/multiple_timer_test was fixed (RuntimeError -> Pass) lib/async/periodic_timer2_test was fixed (RuntimeError -> Pass) lib/async/periodic_timer3_test was fixed (RuntimeError -> Pass) lib/async/periodic_timer4_test was fixed (RuntimeError -> Pass) lib/async/schedule_microtask_test was fixed (RuntimeError -> Pass) lib/async/slow_consumer2_test succeeded again (Pass -> skipped) lib/async/stream_timeout_test was fixed (RuntimeError -> skipped) lib/async/timer_isActive_test was fixed (RuntimeError -> Pass) lib/async/timer_repeat_test was fixed (RuntimeError -> Pass) lib/async/timer_test was fixed (RuntimeError -> Pass) Change-Id: I2c2f837b4a6093a1a9aad357df21a04a6907ab6f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/305941 Reviewed-by: Alexander Thomas <athom@google.com> Reviewed-by: Jackson Gardner <jacksongardner@google.com> Commit-Queue: Ömer Ağacan <omersa@google.com>
Dart is:
Optimized for UI: Develop with a programming language specialized around the needs of user interface creation.
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app.
Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web.
Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).
Dart is free and open source.
See LICENSE and PATENT_GRANT.
Visit dart.dev to learn more about the language, tools, and to find codelabs.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
Our API reference documentation is published at api.dart.dev, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.