https://github.com/web-platform-tests/wpt
Raw File
Tip revision: c2b8c888626597462c9e9261aa1bedd4c4edb850 authored by Frédéric Wang on 27 June 2018, 07:37:03 UTC
Convert to manual test, add a version where the click happens from a subframe
Tip revision: c2b8c88
idlharness.html
<!doctype html>
<title>ResizeObserver IDL tests</title>
<link rel="help" href="https://wicg.github.io/ResizeObserver/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<script>
  "use strict";

  promise_test(async () => {
    const idl_array = new IdlArray();
    const idl = await fetch("/interfaces/ResizeObserver.idl").then(r => r.text());
    idl_array.add_idls(idl);
    idl_array.add_objects({
      ResizeObserver: ["new ResizeObserver(entries => {})"],
    });
    idl_array.test();
  }, "Test IDL implementation of ResizeObserver");
</script>
back to top