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

Side by Side Diff: LayoutTests/fast/dom/Document/createCDATASection.html

Issue 22911020: Block "]]>" in createCDataSection (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Simpler tests Created 7 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Document/createCDATASection-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <script>
8 var domParser = new DOMParser();
9 window.xmlDoc = domParser.parseFromString("<example></example>", "text/xml");
arv (Not doing code reviews) 2013/08/20 17:47:06 xmlDoc is not a property of window. Use var instea
arv (Not doing code reviews) 2013/08/20 17:47:06 You do not need to create a DOMParser for this tes
10 shouldBe('"createCDATASection" in window.xmlDoc', 'true');
arv (Not doing code reviews) 2013/08/20 17:47:06 s/window.xmlDoc/xmlDoc/
11 shouldBeEqualToString('window.xmlDoc.createCDATASection("Hello").data', "Hello") ;
12 shouldThrow('window.xmlDoc.createCDATASection("Ha]]>o")');
13 shouldBeEqualToString('window.xmlDoc.createCDATASection(null).data', "null");
14 </script>
15 <script src="../../js/resources/js-test-post.js"></script>
16 </body>
17 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Document/createCDATASection-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698