mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
dom: add more WPT tests for document
This commit is contained in:
16
tests/wpt/dom/nodes/Document-createCDATASection.html
Normal file
16
tests/wpt/dom/nodes/Document-createCDATASection.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>document.createCDATASection must throw in HTML documents</title>
|
||||
<link rel="help" href="https://dom.spec.whatwg.org/#dom-document-createcdatasection">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<script>
|
||||
"use strict";
|
||||
|
||||
setup({ single_test: true });
|
||||
|
||||
assert_throws_dom("NotSupportedError", () => document.createCDATASection("foo"));
|
||||
|
||||
done();
|
||||
</script>
|
||||
Reference in New Issue
Block a user