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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/script-text.xhtml

Issue 1515563002: Import web-platform-tests@5dbe45af3ad3a933c03187c72f1c12cbe2877703 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 <?xml version="1.0" encoding="utf-8"?>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>HTMLScriptElement.text</title>
5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-script-text"/ >
6 <script src="../../../../../../resources/testharness.js"/>
7 <script src="../../../../../../resources/testharnessreport.js"/>
8 </head>
9 <body>
10 <div id="log"></div>
11 <script>
12 <x>7;</x>
13 <![CDATA[
14 var x = "y";
15 ]]>
16 </script>
17 <script>
18 var script;
19 setup(function() {
20 script = document.body.getElementsByTagName("script")[0];
21 })
22 test(function() {
23 assert_equals(script.text, '\n\n\n var x = "y";\n\n')
24 assert_equals(script.textContent, '\n7;\n\n var x = "y";\n\n')
25 }, "Getter with CDATA section")
26 </script>
27 </body>
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698