<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<div id=target>foo</div>
<!-- This version is in the main repo, and tests that NO use counters fire. -->
<script>
test(() => {
const target = document.getElementById('target');
// This is all mutation event related use counters from web_feature.mojom:
const allCounters = [143, 144, 145, 146, 147, 148,
4885, 4886, 4887, 4888, 4889, 4890, 4891, 4892];
// Trigger all mutation event types.
target.remove();
document.body.appendChild(target);
target.setAttribute('foo','bar');
target.removeAttribute('foo');
target.firstChild.textContent = "bar";
allCounters.forEach(counter => {
assert_false(internals.isUseCounted(document, counter));
});
}, 'Use of Mutation Events is NOT use-counted.');
</script>