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

Side by Side Diff: LayoutTests/editing/inserting/6609479-1.html

Issue 13954003: Remove mail blockquote special case handling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 function log(msg)
5 {
6 document.getElementById('console').appendChild(document.createTe xtNode(msg + '\n'));
7 }
8
9 function test()
10 {
11 if (window.testRunner)
12 testRunner.dumpAsText();
13 var td = document.getElementById("td");
14 var text = td.firstChild;
15 var s = window.getSelection();
16 s.setBaseAndExtent(text, 3, text, 4);
17 document.execCommand("InsertHTML", true, "bar");
18 var tables = document.getElementsByTagName("table");
19 if (tables.length == 1)
20 log("Test Passed");
21 else
22 log ("Test Failed");
23 }
24 </script>
25 </head>
26 <body onload="test()">
27 <p>This tests that inserting html inside a table still works and doesn't break the table apart, even when in quoted content.</p>
28 <div contenteditable="true">
29 <blockquote type="cite"><table border="1" id="tb"><tr><td id="td">fo o baz</td></tr></table></blockquote>
30 </div>
31 <pre id="console"></pre>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698