blob: bc78f1b7541851a4229b3edeb1cbb44c39eaa460 [file] [log] [blame]
<!DOCTYPE html>
<script>
function createMutationObserver(FunctionConstructor = Function) {
const mutationObserver = new parent.MutationObserver(new FunctionConstructor(`
this.callbackInvocations++;
`));
mutationObserver.callbackInvocations = 0;
mutationObserver.observe(parent.mutationObserverTestRoot, { childList: true });
return mutationObserver;
}
</script>