Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/struct/scripted/svg-checkIntersection-001.svg - WPT Dashboard Interop Dashboard
<?xml version="1.0" encoding="UTF-8"?>
<h:script src="/resources/testharness.js"/>
<h:script src="/resources/testharnessreport.js"/>
<script>
const test = async_test('checkIntersection() / checkEnclosure() with null ref. element');
window.onload = test.step_func_done(() => {
const root = document.documentElement;
assert_throws_js(TypeError, () => root.checkIntersection(null, root.createSVGRect()));
assert_throws_js(TypeError, () => root.checkEnclosure(null, root.createSVGRect()));
});
</script>
<!-- This test passes if it does not crash. -->
<text>PASS</text>
</svg>