Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Unified Diff: LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/script-text.xhtml

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/script-text.xhtml
diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/script-text.xhtml b/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/script-text.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..d32782f4bca9e51f872f08fa1951015ef7d11341
--- /dev/null
+++ b/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/script-text.xhtml
@@ -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>

Powered by Google App Engine
This is Rietveld 408576698