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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/form-added-to-table.html

Issue 2972623002: Convert fast/forms/form-added-to-table.html using testharness. (Closed)
Patch Set: Created 3 years, 5 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 | « no previous file | third_party/WebKit/LayoutTests/platform/linux/fast/forms/form-added-to-table-expected.png » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
3 <script> 5 <script>
6 var t = async_test();
4 function loaded() { 7 function loaded() {
5 var selection = window.getSelection(); 8 var selection = window.getSelection();
6 var range = document.createRange(); 9 var range = document.createRange();
7 range.selectNode(document.getElementById("selectMe")); 10 range.selectNode(document.getElementById("selectMe"));
8 selection.addRange(range); 11 selection.addRange(range);
9 12
10 var table = document.createElement("table"); 13 var table = document.createElement("table");
11 document.getElementById('form').appendChild(table); 14 document.getElementById('form').appendChild(table);
15 t.done();
12 } 16 }
13 </script> 17 </script>
14 </head> 18 </head>
15 <body onload="loaded()"> 19 <body onload="loaded()">
16 <table><tr><td id="selectMe">This test passes if it does not crash.</td></tr><fo rm style="display:inline" id="form"></form></table> 20 <table><tr><td id="selectMe">This test passes if it does not crash.</td></tr><fo rm style="display:inline" id="form"></form></table>
17 </body> 21 </body>
18 </html> 22 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/fast/forms/form-added-to-table-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698