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

Side by Side Diff: LayoutTests/editing/execCommand/insert-list-xml.xhtml

Issue 1167033002: Remove layout tests that run execCommand on non-HTML documents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix doctype Created 5 years, 6 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 <mat:diff xmlns:mat="http://www.w3.org/1998/Math/MathML"> 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 <html xmlns="http://www.w3.org/1999/xhtml"> 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <head> 3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <script type="text/javascript"> 4 <head>
5 if (window.testRunner) 5 <script type="text/javascript">
6 testRunner.dumpAsText(); 6 if (window.testRunner)
7 testRunner.dumpAsText();
7 8
8 function start() 9 function start()
9 { 10 {
10 // select the span that's editable 11 // select the span that's editable
11 document.getElementById("insertlisthere").focus(); 12 document.getElementById("insertlisthere").focus();
12 13
13 // insert an ordered list into the span 14 // insert an ordered list into the span
14 document.execCommand("insertorderedlist", false, null); 15 document.execCommand("insertorderedlist", false, null);
15 log(document.getElementById("insertlisthere").outerHTML); 16 log(document.getElementById("insertlisthere").outerHTML);
16 log("PASS"); 17 log("PASS");
17 } 18 }
18 function log(str) { 19 function log(str) {
19 var li = document.createElement("li"); 20 var li = document.createElement("li");
20 li.appendChild(document.createTextNode(str)); 21 li.appendChild(document.createTextNode(str));
21 var console = document.getElementById("console"); 22 var console = document.getElementById("console");
22 console.appendChild(li); 23 console.appendChild(li);
23 } 24 }
24 </script> 25 </script>
25 </head> 26 </head>
26 <body onload="start();"> 27 <body onload="start();">
27 <div contenteditable="true" id="insertlisthere">.</div> 28 <div contenteditable="true" id="insertlisthere">.</div>
28 <ul id="console"></ul> 29 <ul id="console"></ul>
29 </body> 30 </body>
30 </html> 31 </html>
31 </mat:diff>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698