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

Unified Diff: third_party/pexpect/examples/table_test.html

Issue 1398903002: Add third_party/pexpect (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@end-to-end-test
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/pexpect/examples/ssh_tunnel.py ('k') | third_party/pexpect/examples/topip.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pexpect/examples/table_test.html
diff --git a/third_party/pexpect/examples/table_test.html b/third_party/pexpect/examples/table_test.html
new file mode 100644
index 0000000000000000000000000000000000000000..5dba0ecf0c89f1bcd1633bf214d15f26c78960f7
--- /dev/null
+++ b/third_party/pexpect/examples/table_test.html
@@ -0,0 +1,106 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<html>
+<head>
+<title>TEST</title>
+</head>
+<style type="text/css">
+a {color: #9f9; text-decoration: none}
+a:hover {color: #0f0}
+hr {color: #0f0}
+html,table,body,textarea,input,form
+{
+font-family: "Courier New", Courier, mono;
+font-size: 8pt;
+color: #0c0;
+background-color: #020;
+margin:0;
+padding:0;
+border:0;
+}
+input { background-color: #010; }
+textarea {
+border-width:1;
+border-style:solid;
+border-color:#0c0;
+padding:3;
+margin:3;
+}
+</style>
+<script>
+var foo="" +
+" 123456789012345678901234567890123456789012345 789012345678901234567890123456789"+
+"0 2345678901234567890123456789012345678901234 6 89012345678901234567890123456789"+
+"01 34567890123456789012345678901234567890123 567 9012345678901234567890123456789"+
+"012 456789012345678901234567890123456789012 45678 012345678901234567890123456789"+
+"0123 5678901234567890123456789012345678901 3456789 12345678901234567890123456789"+
+"01234 67890123456789012345678901234567890 234567890 2345678901234567890123456789"+
+"012345 789012345678901234567890123456789 12345678901 345678901234567890123456789"+
+"0123456 8901234567890123456789012345678 0123456789012 45678901234567890123456789"+
+"01234567 90123456789012345678901234567 901234567890123 5678901234567890123456789"+
+"012345678 012345678901234567890123456 89012345678901234 678901234567890123456789"+
+"0123456789 1234567890123456789012345 7890123456789012345 78901234567890123456789"+
+"01234567890 23456789012345678901234 678901234567890123456 8901234567890123456789"+
+"012345678901 345678901234567890123 56789012345678901234567 901234567890123456789"+
+"0123456789012 4567890123456789012 4567890123456789012345678 0123456789012345678 "+
+"01234567890123 56789012345678901 345678901234567890123456789 12345678901234567 9"+
+"012345678901234 678901234567890 23456789012 567 01234567890 234567890123456 89"+
+"0123456789012345 7890123456789 123457789012 567 012345678901 3456789012345 789"+
+"01234567890123456 89012345678 012345678901234567890123456789012 45678901234 6789"+
+"012345678901234567 901234567 90123456789 12345678901 34567890123 567890123 56789"+
+"0123456789012345678 0123456 8901234567890 3456789 2345678901234 6789012 456789"+
+"01234567890123456789 12345 7890123456789012 0123456789012345 78901 3456789"+
+"012345678901234567890 234 67890123456789012345678901234567890123456 890 23456789"+
+"0123456789012345678901 3 5678901234567890123456789012345678901234567 9 123456789"+
+"01234567890123456789012 456789012345678901234567890123456789012345678 0123456789";
+function start2()
+{
+ // get the reference for the body
+ //var mybody = document.getElementsByTagName("body")[0];
+ var mybody = document.getElementById("replace_me");
+ var myroot = document.getElementById("a_parent");
+ mytable = document.createElement("table");
+ mytablebody = document.createElement("tbody");
+ mytable.setAttribute("border","0");
+ mytable.setAttribute("cellspacing","0");
+ mytable.setAttribute("cellpadding","0");
+ for(var j = 0; j < 24; j++)
+ {
+ mycurrent_row = document.createElement("tr");
+ for(var i = 0; i < 80; i++)
+ {
+ mycurrent_cell = document.createElement("td");
+ offset = (j*80)+i;
+ currenttext = document.createTextNode(foo.substring(offset,offset+1));
+ mycurrent_cell.appendChild(currenttext);
+ mycurrent_row.appendChild(mycurrent_cell);
+ }
+ mytablebody.appendChild(mycurrent_row);
+ }
+ mytable.appendChild(mytablebody);
+ myroot.replaceChild(mytable,mybody);
+ //mybody.appendChild(mytable);
+}
+</script>
+<body onload="start2();">
+<table align="LEFT" border="0" cellspacing="0" cellpadding="0">
+<div id="a_parent">
+<span id="replace_me">
+<tr align="left" valign="left">
+ <td>/</td>
+ <td>h</td>
+ <td>o</td>
+ <td>m</td>
+ <td>e</td>
+ <td>/</td>
+ <td>n</td>
+ <td>o</td>
+ <td>a</td>
+ <td>h</td>
+ <td>/</td>
+ <td>&nbsp;</td>
+</tr>
+</table>
+</span>
+</div>
+</body>
+</html>
« no previous file with comments | « third_party/pexpect/examples/ssh_tunnel.py ('k') | third_party/pexpect/examples/topip.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698