<!DOCTYPE html>
<title>slotchanged event</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>

<div id=oldParent>
  <p id=target></p>
</div>
<div id=newParent></div>

<script>
async function runTest(oldParent, target, newParent) {
  const observations = [];
  const observer = new MutationObserver(mutationList => observations.push(mutationList));

  observer.observe(oldParent, {childList: true});
  observer.observe(target, {childList: true})