gecko-dev/dom/base/test/file_use_counter_svg_currentScale.svg
Cameron McCormack acbe938068 Bug 1642261 - Part 3: Refactor browser_use_counters.js. r=emilio
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
2020-06-05 08:34:36 +00:00

18 lines
671 B
XML