e(() => assert_true(promiseResolved)))
        .then(
          t.step_func(() => {
            promiseResolved = true;
          }),
          t.unreached_func()
        );
    }, "Test that the callback is called after the Promise returned by watchAvailability() resolves.");
  </script>
</html>
