Commit Graph
1027 Commits
Author SHA1 Message Date
Simon Zünd bedbd4f3fe [e2e] Bump individual test timeout to 10 seconds
We are landing the timeout increase separatly from enabling the
pool implementation to collect more data for how the windows bots
behave w.r.t. to e2e test stability.

R=jarin@chromium.org

Bug: 1297458
Change-Id: I62d5c6c906031d0ff73adeeed5700fb3cffb391e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3649881
Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
Auto-Submit: Simon Zünd <szuend@chromium.org>
2022-05-16 09:23:56 +00:00
Simon Zünd 8acb7db049 Revert "Reland: [e2e] Use pre-allocated DevTools and target tabs"
This reverts commit 056ad78a21.

Reason for revert: Suspected to make e2e tests on the windows bot more flaky.

Original change's description:
> Reland: [e2e] Use pre-allocated DevTools and target tabs
>
> This CL relands https://crrev.com/c/3461563.
> The main difference is that while we enable the pool implementation,
> we configure the pool size to be 0 unconditionally. This way, we get
> the benefit of spinning up fresh DevTools and inspected tabs while
> preserving the old behavior of doing the setup of these tabs right
> before a test executes and not in the background.
>
> Original CL description:
> > [e2e] Use pre-allocated DevTools and target tabs
> >
> > This CL changes the conductor to use new DevTools frontend and target
> > tabs for each individual test. A pool prepares a set of frontend/target
> > tab pairs in the background so the conductor doesn't need to waste time
> > resetting tabs in between tests.
> >
> > For debugging e2e tests we disable the pool and use on-demand tab
> > creation instead. It would be annoying to deal with ~12 open tabs
> > and trying to find the right ones in a debugging session.
> >
> > This CL also increases the general e2e test timeout from 5 to 10
> > seconds. This is because of the more volatile nature of e2e tests
> > now. In some edge cases a tab for the currently running test might
> > not get enough CPU time to run in time. This can happen when a
> > serious of short running tests deplete the pool and multiple
> > Devtools frontend instances have to be prepared in the background.
> >
> > R=​jacktfranklin@chromium.org
> >
> > Bug: 1297458
> > Change-Id: I6b6c4a15e5d83f7e2bdc6082972993df179a5d87
> > Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3461563
> > Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
> > Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
> > Commit-Queue: Simon Zünd <szuend@chromium.org>
>
> Bug: 1297458
> Change-Id: Iac0294116f1a9e762a3847bcb0738955bba957b2
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3641403
> Commit-Queue: Simon Zünd <szuend@chromium.org>
> Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>

Bug: 1297458
Change-Id: I4758c4c9cb3e7919f12bccc28c9310ab7225c729
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3645451
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
Auto-Submit: Simon Zünd <szuend@chromium.org>
2022-05-13 10:06:13 +00:00
Wolfgang Beyer 5b433b0844 Add network request context menu entry for creating header override
This CL adds the ability to create header overrides from the list of
network requests in the network panel via the context menu.

If a local folder for storing local overrides has already been
configured beforehand, the context menu takes the user straight to the
'.headers' file where header overrides are to be specified. If
overrides have not been configured before, the user has to name a
local folder for storing overrides first.

Video: https://i.imgur.com/kLGlOtL.mp4

Bug: 1297533
Change-Id: I8b31fe41d922e1662da68320fcc188c596c0a058
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3542245
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-05-13 08:27:54 +00:00
Johan Bay f2ac64a53a Add test for revealing assigned slot elements
Bug: none
Change-Id: I04c2b99d05c121b7b39733686b5b118ec8edc78a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3642136
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Commit-Queue: Changhao Han <changhaohan@chromium.org>
Auto-Submit: Johan Bay <jobay@chromium.org>
2022-05-11 15:50:55 +00:00
Simon Zünd 056ad78a21 Reland: [e2e] Use pre-allocated DevTools and target tabs
This CL relands https://crrev.com/c/3461563.
The main difference is that while we enable the pool implementation,
we configure the pool size to be 0 unconditionally. This way, we get
the benefit of spinning up fresh DevTools and inspected tabs while
preserving the old behavior of doing the setup of these tabs right
before a test executes and not in the background.

Original CL description:
> [e2e] Use pre-allocated DevTools and target tabs
>
> This CL changes the conductor to use new DevTools frontend and target
> tabs for each individual test. A pool prepares a set of frontend/target
> tab pairs in the background so the conductor doesn't need to waste time
> resetting tabs in between tests.
>
> For debugging e2e tests we disable the pool and use on-demand tab
> creation instead. It would be annoying to deal with ~12 open tabs
> and trying to find the right ones in a debugging session.
>
> This CL also increases the general e2e test timeout from 5 to 10
> seconds. This is because of the more volatile nature of e2e tests
> now. In some edge cases a tab for the currently running test might
> not get enough CPU time to run in time. This can happen when a
> serious of short running tests deplete the pool and multiple
> Devtools frontend instances have to be prepared in the background.
>
> R=​jacktfranklin@chromium.org
>
> Bug: 1297458
> Change-Id: I6b6c4a15e5d83f7e2bdc6082972993df179a5d87
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3461563
> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
> Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
> Commit-Queue: Simon Zünd <szuend@chromium.org>

Bug: 1297458
Change-Id: Iac0294116f1a9e762a3847bcb0738955bba957b2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3641403
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
2022-05-11 08:40:14 +00:00
Wolfgang Beyer ecdb1c9323 Add sandboxed FileSystem to hosted mode (enables using local overrides)
Adding a sandboxed file system via `window.webkitRequestFileSystem` to
hosted mode enables using local overrides in hosted mode. Since e2e-
tests run in hosted mode, this enables adding e2e tests for local
overrides. This CL adds a first such e2e-test testing a simple response
header override.

Bug: 1313436
Change-Id: I6eb3e2ff9de336fa62648647fe48042009743d18
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3620364
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-05-10 15:03:01 +00:00
Andres Olivares b2084edb02 Remove console.log statements
They sneaked in https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3621873

Bug: none
Change-Id: I5e07e1835c7d96f6304fa2b2f178cecb7253f3b0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3631609
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-09 07:41:50 +00:00
Andres Olivares f2faa9d72d Disable flaky pseudo-states e2e tests
Tests have failed on recent CQ runs in all platforms. It's worth noting that failures were all caught on release builds.

Mac
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815098232361232049/+/u/E2E_tests/stdout

Win
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815206380887210001/+/u/E2E_tests/stdout

Linux
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815165899262442401/+/u/E2E_tests/stdout

Bug: 1280763
Change-Id: Ie7a60aa175507befae9031cb9daf8f425619a25b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627735
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2022-05-06 15:23:08 +00:00
Wolfgang Beyer 2390df881c Fix another flaky e2e-test in network_test.ts
Bug: 1093287
Change-Id: I99ce4fe42839a77f6b56a8b2fea7a28df0ceb713
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3629858
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-05-06 11:43:38 +00:00
Wolfgang Beyer 57f2920874 Fix flaky e2e-tests in network_test.ts
Bug: 1093287
Change-Id: I2b9c91b78f9f2e7e42091786ad11013dffdc5cbf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3629778
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-05-06 11:37:20 +00:00
Kim-Anh Tran e805dda363 [e2e] Re-enable source map test
This increases the timeout for the source map tests.

Fixed: 1321567
Change-Id: I7871b049bf7ad76f953e9b5205510c81f4d412e5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627770
Reviewed-by: Andres Olivares <andoli@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
2022-05-05 19:13:01 +00:00
Andres Olivares 07dca225ab Disable styles pane test on all platforms
It's failing in windows too:
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815098231520056337/+/u/E2E_tests/stdout

Bug: 1318314
Change-Id: I07e6856b66a26e0cfa18674c026b6f5375a9be9e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627734
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-05 13:17:23 +00:00
Andres Olivares 2d54e4a35d Disable flaky breakpoint e2e test on other windows
This test was disabled on mac only, however it has failed recently on
on win too:

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815165904605034497/+/u/E2E_tests/stdout

Bug: 1321713
Change-Id: Iaf6f095b0888a93b5b28892bd18caf43ed7599f7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627736
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Kateryna Prokopenko <kprokopenko@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-04 22:30:40 +00:00
Andres Olivares 3ad1a317f7 Disable flaky workflow_test e2e test on mac
Flakiness examples:

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815202273940362209/+/u/E2E_tests/stdout

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815204224733476289/+/u/E2E_tests/stdout

Bug: 1322534
Change-Id: If36fd8c1993a2766cc85e9d527a5d42a188852fa
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627999
Commit-Queue: Nancy Li <nancyly@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Nancy Li <nancyly@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-04 17:47:00 +00:00
Andres Olivares f7adffea54 Disable flaky sources tab e2e test on all platforms
This test has failed recently on other platforms too:

Win:
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815243057646828849/+/u/E2E_tests/stdout

Linux:
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815218728513982881/+/u/E2E_tests/stdout

Bug: 1321898
Change-Id: I839e665f22113a6088842ba40537239bb3466883
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627737
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-04 17:17:30 +00:00
Andres Olivares 5cae797b18 Disable flaky elements/sidebar-event-listeners e2e test
Has flaked recently on linux

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815243055983302049/+/u/E2E_tests/stdout

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815201771834262833/+/u/E2E_tests/stdout

Bug: 1322533
Change-Id: I4e33cb1e20f12f6d8cf9417b840d23b76603c95a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627997
Auto-Submit: Andres Olivares <andoli@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2022-05-04 16:59:30 +00:00
Andres Olivares 5aa9a8541a Deflake snippets e2e tests
These tests were reenabled recently in a deflake attempt at https://crrev.com/c/3596912. However, the tests remained flaky on the mac_relase bot. This is another attempt to deflake it. I ran 100 successful consecutive execs of each test with this CL's fix applied in the mac_release bot at https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815139412446297793/+/u/E2E_tests/stdout, so it is with greater confidence that it's deflaked this time

Bug: 1198160
Change-Id: Ib2d64de93a242cfa3caddae2b749ef50a35d2497
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3621873
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2022-05-04 09:51:02 +00:00
Benedikt Meurer 4cf9a8553f [e2e] Fix flakiness due to not waiting for Call Stack to update.
Fixed: 1321707
Change-Id: Ib56cdbe889d07e148bceacc4a86f8b1abee0273e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627329
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
2022-05-04 07:18:40 +00:00
Andres Olivares 5727d1f24d Skip snippets/breakpoint_test.ts e2e test on Mac
The test has been flaky on the bots:

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815560361203492641/+/u/E2E_tests/stdout

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815543099886327665/+/u/E2E_tests/stdout

Disabling for now.

Bug: 1321713
Change-Id: I6d54c88b7b9d86465c3b69b7e174345954bd82fe
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3621875
Reviewed-by: Kateryna Prokopenko <kprokopenko@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-03 15:14:58 +00:00
Jack Franklin e839c0cf22 Enable long import wrapping for JS imports
DISABLE_THIRD_PARTY_CHECK=big clang format run against all files in
front_end and test/

Bug: 1319340
Change-Id: I1fff63cb07544ccd0e3059fc901f9a48ff4af13b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3598879
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
2022-05-03 10:22:12 +00:00
Andres Olivares ecf2a202fa Skip sources/debug-raw-wasm_test.ts e2e test on mac
Due to flakiness:

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815454634348273553/+/u/E2E_tests/stdout

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815545078168639505/+/u/E2E_tests/stdout

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815615465522346625/+/u/E2E_tests/stdout

Bug: 1321898
Change-Id: Ia3e1be42e6011f96894ed0ecbf80cac7c41dac3b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3621877
Auto-Submit: Andres Olivares <andoli@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2022-05-03 06:59:14 +00:00
Andres Olivares ad001b2af4 Skip sources/can-break-with-wasm-sourcemaps_test.ts on mac
The test has been flaky recently on the Mac bot:

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815641271312814129/+/u/E2E_tests/stdout

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815532227356031937/+/u/E2E_tests/stdout

Disabling it for now

Bug: 1321707
Change-Id: I16b9cda9b8ad7d36a22a388494b70d6bd58198df
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3621874
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-03 05:38:38 +00:00
Andres Olivares 9015fee5e0 Disable flaky e2e test group in elements/style-pane-properties_test.ts
Almost all of these tests have flaked recently on linux and mac bots.

See for example

Linux

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8816212949772701041/+/u/E2E_tests/stdout
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8816088461973411297/+/u/E2E_tests/stdout
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815488470932382929/+/u/E2E_tests/stdout
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815725106686528017/+/u/E2E_tests/stdout

Mac

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815532227356031937/+/u/E2E_tests/stdout
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815454634348273553/+/u/E2E_tests/stdout
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815554958986594289/+/u/E2E_tests/stdout

I'm disabling for now.

Bug: 1318314
Change-Id: Idae8d05edfc241fb50a424bb6a366126c5695f78
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3620548
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Commit-Queue: Changhao Han <changhaohan@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-02 21:54:01 +00:00
Wolfgang Beyer 6b3584f0da Update reporting API test
Deprecations are in the process of being refactored in the backend.
Switching the test to a different report type which I expect to be more
stable.

Fixed: 1321131
Change-Id: I20f9a4891bb482cc6006bdbf7a00c458f3a9ed3f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3620360
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Maksim Sadym <sadym@chromium.org>
2022-05-02 13:44:55 +00:00
Andres Olivares dea2959218 Skip flaky source map e2e test on windows
Bug:1321567
Change-Id: I8bdfe4ea22eb7ceea928be4b154ce337d38bc7ea
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3620536
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2022-05-02 13:27:55 +00:00
Maksim Sadym 9563425f4b Disable failing test to unblock roll.
Bug: 1321131
Change-Id: Ia701749ca57d77c315d9d0577ba6d116408e92c7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3613882
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
Commit-Queue: Maksim Sadym <sadym@chromium.org>
2022-04-29 16:30:23 +00:00
Ari Chivukula a68cb30948 [i18n DevTool Deprecation Issue] (16) Cleanup Deprecations {DEVTOOLS}
At long last, we can remove the old unused fields now that no
deprecation messages are untranslated.

This CL is part of a series:
(1) Remove legacy info
(2) Translate issue title
(3) Translate demo Issue {CHROMIUM}
(4) Translate demo Issue {DEVTOOLS}
(5) Document new deprecation process
(6) Add milestone and status links
(7) Document milestone and status links
(8) Migrate DeprecationInfo::WithDetails {CHROMIUM}
(9) Roll deps
(10) Migrate DeprecationInfo::WithDetails {DEVTOOLS}
(11) Document changes in development process
(12) Migrate DeprecationInfo::* {CHROMIUM}
(13) Roll deps
(14) Migrate DeprecationInfo::* {DEVTOOLS}
(15) Cleanup Deprecations {CHROMIUM}
(16) Cleanup Deprecations {DEVTOOLS}
(17) Final documentation tweaks

DISABLE_THIRD_PARTY_CHECK=Fields are being removed, so we have to touch non-gen code

Bug: 1264960
Change-Id: If5a286a50cafc073ff99f5e0d8f3d38d5e8ba83a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3613607
Auto-Submit: Ari Chivukula <arichiv@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Commit-Queue: Ari Chivukula <arichiv@chromium.org>
2022-04-28 11:45:32 +00:00
Ergün Erdoğmuş 029ac9db0b Add shortcuts for toggling debugger and navigator sidebars in Sources panel
Renamed `DebuggingActionDelegate` to `ActionDelegate` for SourcesPanel
since all the actions there acts on the panel itself
and with the introduction of these two actions,
they are not only related to debugging anymore

Fixed: 1226363
Change-Id: I0c472f4f2ffcdb78ea6824771f9540882550984c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3392021
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org>
2022-04-27 15:02:11 +00:00
Jaroslav Sevcik 8e1a99324b Debugger: Show inline values at variable definitions
Bug: chromium:1316340
Change-Id: Ibe91a775103a05fd49370a92830dbd92b845001b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3586909
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
2022-04-27 08:53:38 +00:00
Danil Somsikov e245206485 Fix flakiness when reading console message in e2e tests
Bug: none
Change-Id: I757992648379ac824432e67ef863998cb0daf688
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3607832
Reviewed-by: Maksim Sadym <sadym@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
Auto-Submit: Danil Somsikov <dsv@chromium.org>
2022-04-27 08:29:38 +00:00
Dan Clark a3e8d3633d Restore ordering of pseudos in style pane
When trying to re-enable the test disabled in [1], I noticed that [2]
inadvertently changed the order in which highlight pseudos are listed
relative to other pseudos in the style pane.

This change restores the initial ordering, which is that ::before
pseudos are listed first followed by all other pseudos in
alphabetical order.

[1] https://chromium-review.googlesource.com/c/chromium/src/+/3584106
[2] https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3603063

Bug: 1024156, 1164461
Change-Id: Ic2758995593da20739b58245a7d48243963fd18a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3608841
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2022-04-27 08:11:02 +00:00
Dan Clark 70ffb7f7bd Mark overridden rules for custom highlights
The change [1] added style pane support for indicating that highlight
rules are overridden in the highight cascade (showing them as
crossed-out). However, custom highlights were left out because custom
highlights of different names would otherwise be shown as overriding
each other, since all custom highlights were grouped into the same
cascade.

This change enables support for custom highlights by splitting
them up into separate cascades for each highlight name.

See [2] for a screenshot of this.

An alternative approach would be to change the inspector protocol
and the StyleResolver on the Blink side such that custom
highlights start out grouped by highlight name. However the
necessary style resolver changes look to be complex enough that
it's probably simpler (or at least not more complicated overall)
to arrange things on the DevTools side.

[1] https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3563627
[2] https://docs.google.com/document/d/1WHYEp6JfMjsAZLghCJa03HG5FEQEzRCi-naa5dmlQr4/edit?usp=sharing
Bug: 1024156, 1164461
Change-Id: Ib684889b347d9797b6f9c993fe6626053deb8c1a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3603063
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Johan Bay <jobay@chromium.org>
Commit-Queue: Dan Clark <daniec@microsoft.com>
2022-04-26 17:46:47 +00:00
Andres Olivares 6c27d09a12 Deflake snippets e2e tests
Fixed: 1198160
Change-Id: I59a1b15ccd649b822c17d28887f3797535e0a406
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3596912
Auto-Submit: Andres Olivares <andoli@chromium.org>
Reviewed-by: Victor Porof <victorporof@chromium.org>
Commit-Queue: Victor Porof <victorporof@chromium.org>
2022-04-25 20:58:11 +00:00
Kim-Anh Tran 56b0b874e8 [e2e] Re-enable linear memory inspector test
Bug: 1169143
Change-Id: Id1c6c0b2a0705467c00b447ff5faffd433f0ae57
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3598792
Auto-Submit: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-04-25 13:21:46 +00:00
Kim-Anh Tran 20a00260f8 [e2e] Disable flaky styles-pane-properties_test
Disables two tests that are flaky on the linux bot:
The Styles pane/can jump to a CSS variable definition
The Styles pane/can jump to an unexpanded CSS variable

Bug: 1318314
Change-Id: I299b0058e0a38cb8395bac6f1b4483ca0922ad89
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3598790
Auto-Submit: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Commit-Queue: Changhao Han <changhaohan@chromium.org>
2022-04-25 08:23:56 +00:00
Wolfgang Beyer c4b6220179 Un-flake issues-toolbar e2e tests
Fixed: 1317582
Change-Id: I78c4f04c9304137c7a2707ca8e30483a3d5d1e40
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3602505
Auto-Submit: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
2022-04-25 05:39:36 +00:00
Kim-Anh Tran 179ef7b21c [e2e] Increase timeout for instrumentation breakpoint tests
Tests are slow and timeout on windows and mac. Increase
the timeout for these tests.

Bug: none
Change-Id: Id4af32e23c7197e331464997b885bc37e60e12c4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3598882
Auto-Submit: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2022-04-22 07:57:22 +00:00
Andres Olivares 4f41399291 Tentatively re enable can-format-sourcecode_test.ts e2e test
Fixed: 1184104
Change-Id: Iea3c15df97365ee08100759ebbeb573a3ea4d32d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3600058
Auto-Submit: Andres Olivares <andoli@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
2022-04-22 06:05:07 +00:00
Dan Clark 621ed5035d Mark inherited and overridden rules for highlights
As a follow-up to [1], this change makes two updates for inherited
highlight pseudos:

- Draw a strikethrough through overridden styles.
- Don't grey-out non-inherited properties in the context of highlight
pseudos, since the highlight cascade treats all valid properties as if
they were inherited [2].

See [3] for screenshots of the change.

For now, custom highlights are not included in this change. Custom
highlights are currently grouped together into the same
`DOMInheritanceCascade` regardless of highlight name, so custom
highlight styles could be shown as overridden by styles from a
highlight with a different name. To fix this, custom highlights
would need to be divided into separate inheritance cascades.
This is nontrivial, so that work will be split up into a separate
change.

[1] https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3502175
[2] https://www.w3.org/TR/css-pseudo-4/#highlight-cascade
[3] https://docs.google.com/document/d/1hU-KL5-WIbTWSH46N7xaP8SBm69QAMiyg5jOY7ZHVTU/edit

Bug: 1024156
Change-Id: Ib32d862bba1ce1843b55d3e85f0e6e9f3a2447e3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3563627
Reviewed-by: Delan Azabani <dazabani@igalia.com>
Reviewed-by: Johan Bay <jobay@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Dan Clark <daniec@microsoft.com>
2022-04-21 16:52:26 +00:00
Alex Rudenko 2d5482ab23 Enable a shortcuts test
Fixed: 1149346
Change-Id: Ia9ddcc3d114de647027b51ccdd8ecb85e08f4465
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3598793
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2022-04-21 13:33:37 +00:00
Victor Porof d250d0e8c9 Re-enable webaudio_test.ts
I suspect this is the same issue as with the autocompletion tests.

Bug: 1086519
Change-Id: If1a4d9cc4872bb3603f3fc12f9bdd1e3eb2b3219
Signed-off-by: Victor Porof <victorporof@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3598875
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
2022-04-21 11:56:10 +00:00
Alex Rudenko 7a79953f02 Enable a security panel test
Fixed: 1183304
Change-Id: Ib9a5e423d74448428ad7aed8fa1555c449cd0272
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3598791
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2022-04-21 10:06:56 +00:00
Kim-Anh Tran f58a83ed9c Reland "Enable synchronization on instrumentation breakpoints"
This is a reland of commit 1b596f3b4b.

Changes:
1. Gated behind an experiment
2. Removed changes that are currently not used since it's gated
   (i.e. test changes)

Original change's description:
> Enable synchronization on instrumentation breakpoints
>
> This CL introduces the synchronization point for setting
> breakpoints on new scripts using instrumentation breakpoints.
>
> Instrumentation breakpoints will trigger at the first statement
> of a newly run script. Afterwards we wait for all resources
> that we need to set a breakpoint (if one is cached for that
> particular script), set it, and resume.
>
> Note: this will not correctly synchronize the case where we
> just opened DevTools or just created a new target, as at this
> point some scripts might have started running. For this, we
> need to synchronize the Debugger.enable call, which is something
> that is left to take care of.
>
> Bug: chromium:1229541, chromium:1133307, chromium:1300509
> Change-Id: I44e9b053a7cf64cc1f477a68ce9389cd92a1d05d
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3470237
> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
> Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
> Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>

Bug: chromium:1229541, chromium:1133307, chromium:1300509
Change-Id: I19553ddac9530fa3ccac6b245a3dd89da88c6d51
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3542248
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
2022-04-21 07:43:46 +00:00
Andres Olivares 2b6db68517 Tentatively re enable classes-pane e2e test
Fixed: 1184627
Change-Id: Icda05a64495f8bc571398741bfde7a80394e55ba
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3596976
Auto-Submit: Andres Olivares <andoli@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2022-04-21 05:21:46 +00:00
Victor Porof 1d37c50f8b Use appropriate keyboard shortcut on macos in can-search-in-extension-panel_test.ts
Bug: 1249774
Change-Id: I85dc1290077456736661aa4debb30c59d0e12316
Signed-off-by: Victor Porof <victorporof@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3595995
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Victor Porof <victorporof@chromium.org>
2022-04-20 19:16:05 +00:00
Benedikt Meurer c43d843544 [e2e] Fix and reenable ServiceWorker frame tree test.
Fixed: chromium:1231056
Change-Id: Ie3aa85256e7fd8832db11253e06624b155d24b0e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3595990
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-04-20 13:29:35 +00:00
Benedikt Meurer c480d4f9c8 [e2e] Fix and re-enable WebAssembly stepping tests.
The underlying cause of the test failures has been addressed by
breakpoint fixes.

Bug: chromium:1134120
Fixed: chromium:1177714
Change-Id: I5aab475834101c39d229b50a9daa76b3fa295a0c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3595986
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
2022-04-20 13:07:45 +00:00
Benedikt Meurer 20fac7a3bc [e2e] Re-enable issues-link test.
The back-end functionality was brought back, but the test was forgotten.

Bug: chromium:1241860
Change-Id: Iccbabcb6cadac4aac851d0e752362d617d797556
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3596241
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
2022-04-20 12:54:35 +00:00
Mathias Bynens fc681862d0 Re-enable pseudo-class tests
I tested 100 local runs on my MacBook without any failures or flakes.
Let’s re-enable these tests to get detailed information from the bots.

Bug: chromium:1280763
Change-Id: I0c389a9504c573073ca3ebb9784b5c5a4717dc1a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3596790
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
2022-04-20 12:50:25 +00:00
Benedikt Meurer 7e9e9d7442 [e2e] Improve and re-enable CSP Issues to Sources tests.
This depends on the Chromium fix in https://crrev.com/c/3594080, which
ensures that the back-end is not sending invalid scriptIds.

Fixed: chromium:1157427
Bug: chromium:1158782, chromium:1317608
Change-Id: I328ec4519057054b4511a5a1c70599503d2b3695
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3595980
Reviewed-by: Kateryna Prokopenko <kprokopenko@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2022-04-20 12:27:35 +00:00