The methods have been improved and now live in telemetry.js again.
We use these methods for tools that at least require timing.
MozReview-Commit-ID: 2CqBCA9j3XU
The accessing all menu button will be shown to the inspector, so this test will
use inspector's this button. This button didn't have an id, so this patch will
add id for testing.
MozReview-Commit-ID: 2xFXYKwpQoe
This test will check that popup menu of toolbox will be displayed under the
menu button. This test tolerates an error since some platform (like macOS)
will add the offset value. (i.e. eIntID_ContextMenuOffsetHorizontal and
eIntID_ContextMenuOffsetVertical)
MozReview-Commit-ID: 5TaM5JiNhdk
This patch will change test to use the async_task before touching this tests and
use the first decimal place when checking a result.
MozReview-Commit-ID: DBkvLtEmEa3
The openPopupAtScreen() use the zoomed css coordinate value as position value,
devtools's caller of this function use css pixel value without zoom. So position
of popup will missaligned if zooming out/in the devtool panel.
MozReview-Commit-ID: 4vvEssO41bO
Popup manager will eat click event when clicking outside of popup only if macOS
and Linux. This patch will add consumeoutesideclicks attribute to this popup in
order to prevent to react click event listener of a button which accessing to
this popup on all platform.
MozReview-Commit-ID: Sv3Hv9Olhn
Changes and notes:
- Created `devtools/client/shared/test/telemetry-test-helpers.js`, which
contains test helpers to aid in creating and running telemetry tests.
- Removed any telemetry monkeypatching as it is not dependable and no longer
needed (there is some left in GCLI but the test is now disabled because
we are removing GCLI soon anyhow).
- Because `telemetry-test-helpers.js` is imported by `shared-head.js` I
have had to make it available everywhere that shared-head.js is used.
- All telemetry tests have been rewritten to use the new helper.
- shared-head.js cannot be imported by tests inside
`devtools/client/performance/test/` because perf have custom `once` and
`waitFor` implementations that act differently from the ones inside
`shared-head.js`. This means I had to import the telemetry helpers into
`devtools/client/performance/test/head.js`
- Created `devtools/client/shared/test/browser_telemetry_misc.js` to be sure
to catch `DEVTOOLS_SCREEN_RESOLUTION_ENUMERATED_PER_USER` (we catch a few
others to be thorough).
- Disabled `browser_inspector_menu-02-copy-items.js`, which was failing to
test some expired scalars. I also corrected the way the scalars are logged
because it was completely wrong.
MozReview-Commit-ID: JjQEGM6hT61
The performance tool for browser chrome has been replaced by Gecko Profiler and perf-html,
so declutter the toolbar by removing it by default.
MozReview-Commit-ID: 88yFNLnZPXJ
We currently overflow the toolbar menu in a clean profile in the Browser Toolbox.
Scratchpad can be accessed from the parent process by opening the Scratchpad window
and targeting chrome, so this patch removes it from the default set.
MozReview-Commit-ID: 6esMvDCt6Um
This bounced because I was trying to access the toolbox after the ui was destroyed, which fails in tests. I will do a try run this time to make sure there are no issues.
MozReview-Commit-ID: 2iHpPLmm9lY
DevTools targets have used a local progress listener for a long time to track
tab navigation. However, this is redundant with server side code that does the
same thing.
Removing this from the target reduces differences between local and remote
debugging. It also simplifies one piece of the target, which is a massively
twisted module.
MozReview-Commit-ID: E7lm4GUFZQO
DevTools targets have used a local progress listener for a long time to track
tab navigation. However, this is redundant with server side code that does the
same thing.
Removing this from the target reduces differences between local and remote
debugging. It also simplifies one piece of the target, which is a massively
twisted module.
MozReview-Commit-ID: E7lm4GUFZQO