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

Side by Side Diff: third_party/WebKit/LayoutTests/html/details_summary/details-replace-text.html

Issue 2670273002: Move tests for DETAILS and SUMMARY elements to html/details_summary/. (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 span { display: inline-block; font-family: monospace; } 4 span { display: inline-block; font-family: monospace; }
5 </style> 5 </style>
6 <script> 6 <script>
7 function test() 7 function test()
8 { 8 {
9 var summary = document.getElementById("s2"); 9 var summary = document.getElementById("s2");
10 var text = summary.previousSibling; 10 var text = summary.previousSibling;
11 text.data = " "; 11 text.data = " ";
12 } 12 }
13 13
14 function runTest() 14 function runTest()
15 { 15 {
16 if (window.testRunner) 16 if (window.testRunner)
17 document.getElementById("run").click(); 17 document.getElementById("run").click();
18 } 18 }
19 </script> 19 </script>
20 <body onload="runTest()"> 20 <body onload="runTest()">
21 <details open> 21 <details open>
22 <span id="s1">Details1</span> 22 <span id="s1">Details1</span>
23 <summary>Summary</summary> 23 <summary>Summary</summary>
24 Text<span id="s2">Details2</span> 24 Text<span id="s2">Details2</span>
25 </details> 25 </details>
26 <input id="run" type="button" value="click" onclick="test()"> 26 <input id="run" type="button" value="click" onclick="test()">
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698