forked from mirrors/gecko-dev
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
14 lines
434 B
HTML
14 lines
434 B
HTML
<!doctype html>
|
|
<style>
|
|
div {
|
|
background-image: none;
|
|
padding: 10px;
|
|
-moz-transform: scale(10);
|
|
/* Just a property we're unlikely to implement */
|
|
-webkit-padding-start: 58.5;
|
|
/* Sentinel use counter to signal that telemetry for this document has been captured */
|
|
marker-mid: initial;
|
|
}
|
|
</style>
|
|
<!-- We currently count even if we don't match it, but well just in case we change that... -->
|
|
<div></div>
|