mirror of
https://github.com/servo/servo.git
synced 2025-07-01 20:43:39 +01:00
20 lines
711 B
HTML
20 lines
711 B
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>
|