mirror of
https://github.com/servo/servo
synced 2026-04-29 19:07:38 +02:00
Update web-platform-tests to revision 5dbe45af3ad3a933c03187c72f1c12cbe2877703
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>HTMLScriptElement.text</title>
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-script-text"/>
|
||||
<script src="/resources/testharness.js"/>
|
||||
<script src="/resources/testharnessreport.js"/>
|
||||
</head>
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
<x>7;</x>
|
||||
<![CDATA[
|
||||
var x = "y";
|
||||
]]>
|
||||
</script>
|
||||
<script>
|
||||
var script;
|
||||
setup(function() {
|
||||
script = document.body.getElementsByTagName("script")[0];
|
||||
})
|
||||
test(function() {
|
||||
assert_equals(script.text, '\n\n\n var x = "y";\n\n')
|
||||
assert_equals(script.textContent, '\n7;\n\n var x = "y";\n\n')
|
||||
}, "Getter with CDATA section")
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user