Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/testing/web-platform/tests/svg/struct/scripted/svg-checkIntersection-001.svg
<?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>