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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/innerText/setter-tests.js

Issue 2786903002: [innerText] Add more tests to setter.html. (Closed)
Patch Set: Created 3 years, 8 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 | « third_party/WebKit/LayoutTests/external/wpt/innerText/setter-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 testText("<div>", "abc", "abc", "Simplest possible test"); 1 testText("<div>", "abc", "abc", "Simplest possible test");
2 testHTML("<div>", "abc\ndef", "abc<br>def", "Newlines convert to <br> in non-whi te-space:pre elements"); 2 testHTML("<div>", "abc\ndef", "abc<br>def", "Newlines convert to <br> in non-whi te-space:pre elements");
3 testHTML("<pre>", "abc\ndef", "abc<br>def", "Newlines convert to <br> in <pre> e lement"); 3 testHTML("<pre>", "abc\ndef", "abc<br>def", "Newlines convert to <br> in <pre> e lement");
4 testHTML("<textarea>", "abc\ndef", "abc<br>def", "Newlines convert to <br> in <t extarea> element");
4 testHTML("<div style='white-space:pre'>", "abc\ndef", "abc<br>def", "Newlines co nvert to <br> in white-space:pre element"); 5 testHTML("<div style='white-space:pre'>", "abc\ndef", "abc<br>def", "Newlines co nvert to <br> in white-space:pre element");
5 testHTML("<div>", "abc\rdef", "abc<br>def", "CRs convert to <br> in non-white-sp ace:pre elements"); 6 testHTML("<div>", "abc\rdef", "abc<br>def", "CRs convert to <br> in non-white-sp ace:pre elements");
6 testHTML("<pre>", "abc\rdef", "abc<br>def", "CRs convert to <br> in <pre> elemen t"); 7 testHTML("<pre>", "abc\rdef", "abc<br>def", "CRs convert to <br> in <pre> elemen t");
7 testHTML("<div>", "abc\r\ndef", "abc<br>def", "Newline/CR pair converts to <br> in non-white-space:pre element"); 8 testHTML("<div>", "abc\r\ndef", "abc<br>def", "Newline/CR pair converts to <br> in non-white-space:pre element");
8 testHTML("<div>", "abc\n\ndef", "abc<br><br>def", "Newline/newline pair converts to two <br>s in non-white-space:pre element"); 9 testHTML("<div>", "abc\n\ndef", "abc<br><br>def", "Newline/newline pair converts to two <br>s in non-white-space:pre element");
9 testHTML("<div>", "abc\r\rdef", "abc<br><br>def", "CR/CR pair converts to two <b r>s in non-white-space:pre element"); 10 testHTML("<div>", "abc\r\rdef", "abc<br><br>def", "CR/CR pair converts to two <b r>s in non-white-space:pre element");
10 testHTML("<div style='white-space:pre'>", "abc\rdef", "abc<br>def", "CRs convert to <br> in white-space:pre element"); 11 testHTML("<div style='white-space:pre'>", "abc\rdef", "abc<br>def", "CRs convert to <br> in white-space:pre element");
11 testText("<div>", "abc<def", "abc<def", "< preserved"); 12 testText("<div>", "abc<def", "abc<def", "< preserved");
12 testText("<div>", "abc>def", "abc>def", "> preserved"); 13 testText("<div>", "abc>def", "abc>def", "> preserved");
13 testText("<div>", "abc&", "abc&", "& preserved"); 14 testText("<div>", "abc&", "abc&", "& preserved");
(...skipping 18 matching lines...) Expand all
32 testHTML("<div>", "abc\n", "abc<br>", "End with LF"); 33 testHTML("<div>", "abc\n", "abc<br>", "End with LF");
33 testHTML("<div>", "abc\r\n", "abc<br>", "End with CRLF"); 34 testHTML("<div>", "abc\r\n", "abc<br>", "End with CRLF");
34 35
35 // Setting innerText on these should not throw 36 // Setting innerText on these should not throw
36 ["area", "base", "basefont", "bgsound", "br", "col", "embed", "frame", "hr", 37 ["area", "base", "basefont", "bgsound", "br", "col", "embed", "frame", "hr",
37 "image", "img", "input", "keygen", "link", "menuitem", "meta", "param", 38 "image", "img", "input", "keygen", "link", "menuitem", "meta", "param",
38 "source", "track", "wbr", "colgroup", "frameset", "head", "html", "table", 39 "source", "track", "wbr", "colgroup", "frameset", "head", "html", "table",
39 "tbody", "tfoot", "thead", "tr"].forEach(function(tag) { 40 "tbody", "tfoot", "thead", "tr"].forEach(function(tag) {
40 testText(document.createElement(tag), "abc", "abc", "innerText on <" + tag + " > element"); 41 testText(document.createElement(tag), "abc", "abc", "innerText on <" + tag + " > element");
41 }); 42 });
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/external/wpt/innerText/setter-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698