mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
acbe938068
This refactoring achieves a few things: 1. Removing the duplication between the different check_use_counter_xxx functions. 2. Increasing the number of repetitions that BrowserTestUtils.waitForCondition uses so that we have intermittently failures resulting from it reaching its maximum repetitions. 3. Checking all telemetry histograms from the one document at once, rather than re-loading the document for each histogram checked. (This saves a lot of time, and was the cause of macOS timeouts after the -moz-appearance use counter checks were added.) 4. A change to use a CSS property use counter as a sentinel to determine whether telemetry has been reported yet, rather than the number of documents destroyed, since the browser might be loading various other documents in the background that can cause us to advance the test before telemetry has been reported. Differential Revision: https://phabricator.services.mozilla.com/D78416
18 lines
671 B
XML
18 lines
671 B
XML