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

Side by Side Diff: LayoutTests/editing/style/script-tests/push-down-implicit-styles-mac.js

Issue 23111004: Re-land "[css3-text] Implement text-decoration property shorthand" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased after Alexis' function name changes in CSSComputedStyleDeclaration.cpp 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 | Annotate | Revision Log
OLDNEW
1 description('Test to make sure we push down inline styles properly.'); 1 description('Test to make sure we push down inline styles properly.');
2 2
3 if (window.internals) 3 if (window.internals)
4 internals.settings.setEditingBehavior('mac'); 4 internals.settings.setEditingBehavior('mac');
5 var testContainer = document.createElement("div"); 5 var testContainer = document.createElement("div");
6 testContainer.contentEditable = true; 6 testContainer.contentEditable = true;
7 document.body.appendChild(testContainer); 7 document.body.appendChild(testContainer);
8 8
9 function testSingleToggle(toggleCommand, selector, initialContents, expectedCont ents) 9 function testSingleToggle(toggleCommand, selector, initialContents, expectedCont ents)
10 { 10 {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 testSingleToggle("underline", selectLastTwoWords, '<u>hello <b>world</b> webkit< /u>', '<u>hello </u><b>world</b> webkit'); 64 testSingleToggle("underline", selectLastTwoWords, '<u>hello <b>world</b> webkit< /u>', '<u>hello </u><b>world</b> webkit');
65 testSingleToggle("underline", selectLastTwoWords, '<u>hello <b>world webkit</b>< /u>', '<u>hello </u><b>world webkit</b>'); 65 testSingleToggle("underline", selectLastTwoWords, '<u>hello <b>world webkit</b>< /u>', '<u>hello </u><b>world webkit</b>');
66 testSingleToggle("underline", selectSecondWord, '<u>hello <b>world webkit</b></u >', '<u>hello</u> <b>world<u> webkit</u></b>'); 66 testSingleToggle("underline", selectSecondWord, '<u>hello <b>world webkit</b></u >', '<u>hello</u> <b>world<u> webkit</u></b>');
67 testSingleToggle("underline", selectSecondWord, '<u><b>hello world</b> webkit</u >', '<b><u>hello</u> world</b><u> webkit</u>'); 67 testSingleToggle("underline", selectSecondWord, '<u><b>hello world</b> webkit</u >', '<b><u>hello</u> world</b><u> webkit</u>');
68 testSingleToggle("underline", selectSecondWord, '<u><strike>hello world</strike> </u>', '<strike><u>hello</u> world</strike>'); 68 testSingleToggle("underline", selectSecondWord, '<u><strike>hello world</strike> </u>', '<strike><u>hello</u> world</strike>');
69 testSingleToggle("underline", selectSecondWord, '<u><strike>hello world webkit</ strike></u>', '<strike><u>hello</u> world<u> webkit</u></strike>'); 69 testSingleToggle("underline", selectSecondWord, '<u><strike>hello world webkit</ strike></u>', '<strike><u>hello</u> world<u> webkit</u></strike>');
70 testSingleToggle("underline", selectSecondWord, '<u><strike>hello world</strike> webkit</u>', '<strike><u>hello</u> world</strike><u> webkit</u>'); 70 testSingleToggle("underline", selectSecondWord, '<u><strike>hello world</strike> webkit</u>', '<strike><u>hello</u> world</strike><u> webkit</u>');
71 testSingleToggle("underline", selectSecondWord, '<u>hello <em><code>world webkit </code></em> rocks</u>', '<u>hello</u> <em><code>world<u> webkit</u></code></em> <u> rocks</u>'); 71 testSingleToggle("underline", selectSecondWord, '<u>hello <em><code>world webkit </code></em> rocks</u>', '<u>hello</u> <em><code>world<u> webkit</u></code></em> <u> rocks</u>');
72 72
73 testSingleToggle("strikeThrough", selectAll, '<s style="color: blue;">hello worl d</strike>', '<span style="color: blue;">hello world</span>'); 73 testSingleToggle("strikeThrough", selectAll, '<s style="color: blue;">hello worl d</strike>', '<span style="color: blue;">hello world</span>');
74 testSingleToggle("strikeThrough", selectFirstWord, '<s style="color: blue;"><div >hello</div> <b>world</b> webkit</strike>', '<span style="color: blue;"><div>hel lo</div> <b style="text-decoration: line-through;">world</b><strike> webkit</str ike></span>'); 74 testSingleToggle("strikeThrough", selectFirstWord, '<s style="color: blue;"><div >hello</div> <b>world</b> webkit</strike>', '<span style="color: blue;"><div>hel lo</div> <b style="text-decoration-line: line-through;">world</b><strike> webkit </strike></span>');
75 75
76 document.body.removeChild(testContainer); 76 document.body.removeChild(testContainer);
77 77
78 var successfullyParsed = true; 78 var successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698