Ben Konyi
f247613737
Reland "[ VM / Service ] Migrated Observatory service tests from package:unittest to package:test and package:expect."
...
This reverts commit 32ed244f63 .
Reason for revert: Hopefully clear up bot failures
Original change's description:
> Revert "Reland "[ VM / Service ] Migrated Observatory service tests from package:unittest to package:test and package:expect.""
>
> This reverts commit d03b7ea721 .
>
> Reason for revert: Hitting assert in VM (https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket.appspot.com/8885275470407956944/+/steps/test_results/0/logs/new_test_failures__logs_/0 )
>
> Original change's description:
> > Reland "[ VM / Service ] Migrated Observatory service tests from package:unittest to package:test and package:expect."
> >
> > This reverts commit 01dc1756c4 .
> >
> > Change-Id: I1c9186947af2368ff48c02a392da9ced85770335
> > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140254
> > Commit-Queue: Ben Konyi <bkonyi@google.com >
> > Reviewed-by: Ryan Macnak <rmacnak@google.com >
>
> TBR=bkonyi@google.com ,rmacnak@google.com
>
> Change-Id: I640adf8e96672476f46fc1f4580a7231b5cfd8fe
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140379
> Reviewed-by: Ben Konyi <bkonyi@google.com >
> Commit-Queue: Ben Konyi <bkonyi@google.com >
TBR=bkonyi@google.com ,rmacnak@google.com
Change-Id: I3127f2f39e64e87daa5ae0c02e14cd24cb586f5f
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140480
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2020-03-21 06:28:36 +00:00
Ben Konyi
32ed244f63
Revert "Reland "[ VM / Service ] Migrated Observatory service tests from package:unittest to package:test and package:expect.""
...
This reverts commit d03b7ea721 .
Reason for revert: Hitting assert in VM (https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket.appspot.com/8885275470407956944/+/steps/test_results/0/logs/new_test_failures__logs_/0 )
Original change's description:
> Reland "[ VM / Service ] Migrated Observatory service tests from package:unittest to package:test and package:expect."
>
> This reverts commit 01dc1756c4 .
>
> Change-Id: I1c9186947af2368ff48c02a392da9ced85770335
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140254
> Commit-Queue: Ben Konyi <bkonyi@google.com >
> Reviewed-by: Ryan Macnak <rmacnak@google.com >
TBR=bkonyi@google.com ,rmacnak@google.com
Change-Id: I640adf8e96672476f46fc1f4580a7231b5cfd8fe
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140379
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2020-03-21 00:45:50 +00:00
Ben Konyi
d03b7ea721
Reland "[ VM / Service ] Migrated Observatory service tests from package:unittest to package:test and package:expect."
...
This reverts commit 01dc1756c4 .
Change-Id: I1c9186947af2368ff48c02a392da9ced85770335
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140254
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2020-03-20 20:16:56 +00:00
Ben Konyi
01dc1756c4
Revert "[ VM / Service ] Migrated Observatory service tests from package:unittest to package:test and package:expect."
...
This reverts commit a4c6356df3 .
Reason for revert: external_service_notification_invocation_test failing on at least AOT
Original change's description:
> [ VM / Service ] Migrated Observatory service tests from package:unittest to package:test and package:expect.
>
> Tests which previously used 'expect' in the target process have been
> changed to use 'Expect.*' as 'package:test' throws an exception when
> using 'expect' outside of a 'test(...)' scope.
>
> Change-Id: I4e031cafd19f294bfcb1deb6a253b42b4122e653
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140160
> Commit-Queue: Ben Konyi <bkonyi@google.com >
> Reviewed-by: Ryan Macnak <rmacnak@google.com >
TBR=bkonyi@google.com ,rmacnak@google.com ,asiva@google.com
Change-Id: I242156e0868d6bd0a3b6d7f7db94c22001d5dbc4
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140221
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2020-03-20 00:29:10 +00:00
Ben Konyi
a4c6356df3
[ VM / Service ] Migrated Observatory service tests from package:unittest to package:test and package:expect.
...
Tests which previously used 'expect' in the target process have been
changed to use 'Expect.*' as 'package:test' throws an exception when
using 'expect' outside of a 'test(...)' scope.
Change-Id: I4e031cafd19f294bfcb1deb6a253b42b4122e653
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140160
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2020-03-19 23:44:50 +00:00
Ryan Macnak
0039aff1e3
[test] Remove use of --error_on_bad_type and --error_on_bad_override.
...
Change-Id: I5b74a4265b25051acfbb35ae9721160b03988121
Reviewed-on: https://dart-review.googlesource.com/c/78708
Reviewed-by: Siva Annamalai <asiva@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2018-10-09 16:46:48 +00:00
Ryan Macnak
a4f3b53fe8
Reapply "Partial static mode changes for vm-service and tests (part 3)."
...
Remove use of castTo, which is not yet available in the prebuilt SDK used to build Observatory.
Bug: https://github.com/dart-lang/sdk/issues/31587
Change-Id: Ia118710a2c4dca1851935d284e1a78a9c6517256
Reviewed-on: https://dart-review.googlesource.com/34022
Reviewed-by: Siva Annamalai <asiva@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2018-01-11 01:31:17 +00:00
Jens Johansen
37c28f8661
Revert "Reapply "Partial static mode changes for vm-service and tests (part 3).""
...
This reverts commit c9f6e8695d .
Reason for revert: Change brakes Observatory:
```
$ out/ReleaseX64/dart --observe hello.dart
Observatory listening on http://127.0.0.1:8181/
Hello, world!
vm-service: isolate(348927110) 'hello.dart:main()' has no debugger attached and is paused at exit. Connect to Observatory at http://127.0.0.1:8181/ to debug.
```
Going to the website I get
```
Unexpected exception:
NoSuchMethodError: method not found: 'castTo'
Receiver: ""
Arguments: [Instance of 'it']
StackTrace:
main.dart.js 2017:3 Object.f
main.dart.js 2203:30 Object.qn
main.dart.js 21316:11 b3.aQ
main.dart.js 20634:6 b3.c2
main.dart.js 20643:8 TZ.$1
main.dart.js 36992:29 UB.$0
main.dart.js 36982:9 Ux.nq
main.dart.js 36990:30 UC.$1
main.dart.js 36992:29 UB.$0
main.dart.js 36982:9 Ux.nq
===== asynchronous gap ===========================
main.dart.js 4840:12 Zh.e4
main.dart.js 3930:17 L.lK
main.dart.js 3932:28 L.ad
main.dart.js 20621:12 b3.dart.ba.lE
main.dart.js 20621:112 b3.dart.ba.lE
main.dart.js 20603:22 b3.cD
===== asynchronous gap ===========================
main.dart.js 4840:12 Zh.e4
main.dart.js 3930:17 L.lK
main.dart.js 3932:28 L.ad
main.dart.js 20621:12 ms.dart.ba.lE
main.dart.js 20621:112 ms.dart.ba.lE
main.dart.js 15829:10 Y4.bs
```
and Observatory is completely broken.
From https://github.com/dart-lang/sdk/issues/31397 it seems that Observatory uses an "old" sdk, i.e. we cannot use new stuff as castTo.
Original change's description:
> Reapply "Partial static mode changes for vm-service and tests (part 3)."
>
> Fix dynamic mode static warnings.
>
> Bug: https://github.com/dart-lang/sdk/issues/31587
> Change-Id: I966349f5409f911efacd11f08ffd469373bcd434
> Reviewed-on: https://dart-review.googlesource.com/33540
> Commit-Queue: Ryan Macnak <rmacnak@google.com >
> Reviewed-by: Siva Annamalai <asiva@google.com >
TBR=rmacnak@google.com ,asiva@google.com
Change-Id: I775544cb5ab212cc836bc63181bdce31d19380b8
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/sdk/issues/31587
Reviewed-on: https://dart-review.googlesource.com/33800
Commit-Queue: Jens Johansen <jensj@google.com >
Reviewed-by: Jens Johansen <jensj@google.com >
2018-01-10 12:21:53 +00:00
Ryan Macnak
c9f6e8695d
Reapply "Partial static mode changes for vm-service and tests (part 3)."
...
Fix dynamic mode static warnings.
Bug: https://github.com/dart-lang/sdk/issues/31587
Change-Id: I966349f5409f911efacd11f08ffd469373bcd434
Reviewed-on: https://dart-review.googlesource.com/33540
Commit-Queue: Ryan Macnak <rmacnak@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
2018-01-10 01:28:39 +00:00
Ryan Macnak
e8d9d945f3
Revert "Partial static mode changes for vm-service and tests (part 3)."
...
This reverts commit 6ccd7b8ac2 .
Reason for revert: analyzer failures
Original change's description:
> Partial static mode changes for vm-service and tests (part 3).
>
> Bug: https://github.com/dart-lang/sdk/issues/31587
> Change-Id: I812fd4cd8e74875ce7ada9886035137af2fef73a
> Reviewed-on: https://dart-review.googlesource.com/33100
> Reviewed-by: Siva Annamalai <asiva@google.com >
TBR=rmacnak@google.com ,asiva@google.com
Change-Id: Ic368fc23f58e02cafbaf6ae81dbcbffc3dcced13
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/sdk/issues/31587
Reviewed-on: https://dart-review.googlesource.com/33240
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2018-01-09 02:37:56 +00:00
Ryan Macnak
6ccd7b8ac2
Partial static mode changes for vm-service and tests (part 3).
...
Bug: https://github.com/dart-lang/sdk/issues/31587
Change-Id: I812fd4cd8e74875ce7ada9886035137af2fef73a
Reviewed-on: https://dart-review.googlesource.com/33100
Reviewed-by: Siva Annamalai <asiva@google.com >
2018-01-09 01:40:10 +00:00
Ryan Macnak
b59923de58
Partial static mode changes for vm-service tests.
...
Bug: https://github.com/dart-lang/sdk/issues/31587
Change-Id: I9fc7d83aab68ee2b30d71f8a3a75b74fa4dde55e
Reviewed-on: https://dart-review.googlesource.com/30390
Commit-Queue: Ryan Macnak <rmacnak@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
2017-12-19 17:45:55 +00:00
Jacob Richman
4360e99d18
Revert "Fix observatory tests broken by running dartfmt."
...
This reverts commit b1f7e6d94673b098c93c187fe3efc45c15f27edc.
BUG=
Committed: https://github.com/dart-lang/sdk/commit/62be0eacfbb36bdc92a05c7c35bb4506621b6a3a
Review-Url: https://codereview.chromium.org/2767533002 .
2017-03-21 10:07:26 -07:00
Jacob Richman
62be0eacfb
Revert "Fix observatory tests broken by running dartfmt."
...
This reverts commit b1f7e6d94673b098c93c187fe3efc45c15f27edc.
BUG=
Review-Url: https://codereview.chromium.org/2767533002 .
2017-03-20 22:19:22 -07:00
Jacob Richman
88f8aacd5f
Re-apply rolled back CL to apply dartfmt to runtime.
...
Fix observatory tests broken by running dartfmt due to line and column changes.
Temporarily reverted formatting for evaluate_activation_test.dart as dartfmt doesn't yet handle multitests.
BUG=
R=johnmccutchan@google.com
Review-Url: https://codereview.chromium.org/2759973004 .
2017-03-20 21:44:59 -07:00
Ryan Macnak
ea4744a06f
Revert "Run dartfmt on all files under runtime."
...
This reverts commit 15f393f189 .
The change caused many service test failures due to changed line numbers.
TBR=jacobr@google.com
Review-Url: https://codereview.chromium.org/2762583003 .
2017-03-20 13:42:55 -07:00
Jacob Richman
15f393f189
Run dartfmt on all files under runtime.
...
I've omitted files where the formatter output is significantly uglier
than the original code and I'll send those files in a separate CL
with options for how to make the code look reasonable while still
taking advantage of the formatter.
BUG=
R=johnmccutchan@google.com
Review-Url: https://codereview.chromium.org/2751423005 .
2017-03-20 13:13:50 -07:00
John McCutchan
7656cedf47
Refactor service tests in preparation of running on sky_shell
...
- Split service test common helper into separate file.
- Make many tests easier to adapt to line number changes.
- Refactor test launching in preparation of running these tests against sky_shell
- Pass --testee-mode as an environment variable instead of of a command line flag because Flutter applications cannot receive command line arguments.
BUG=
R=rmacnak@google.com
Review URL: https://codereview.chromium.org/1726773002 .
2016-02-23 10:51:48 -08:00
John McCutchan
e577dd8438
Remove --compile_all from all but one service test
...
BUG=
Review URL: https://codereview.chromium.org//1286493004 .
2015-08-10 14:20:05 -07:00
John McCutchan
390a44ccdf
Make Observatory analyzer clean
...
BUG=
Review URL: https://codereview.chromium.org//1267033002 .
2015-07-31 14:57:55 -07:00
Ryan Macnak
0979a7b23e
Async-step, first cut.
...
Also fix inclusion of internal variables from outer scopes in var descriptors.
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//1241673003 .
2015-07-16 13:05:37 -07:00