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

Side by Side Diff: third_party/WebKit/LayoutTests/html/details_summary/details-add-child-2.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 <script> 1 <script>
2 var createNewElement = function (tag, id, text) { 2 var createNewElement = function (tag, id, text) {
3 var result = document.createElement(tag); 3 var result = document.createElement(tag);
4 result.setAttribute('id',id); 4 result.setAttribute('id',id);
5 result.innerHTML = text; 5 result.innerHTML = text;
6 return result; 6 return result;
7 }; 7 };
8 8
9 var runTests = function () {details 9 var runTests = function () {details
10 var details = document.getElementById("detail"); 10 var details = document.getElementById("detail");
11 details.insertBefore(createNewElement("b", "toadd", "should have bold test") , details.firstChild); 11 details.insertBefore(createNewElement("b", "toadd", "should have bold test") , details.firstChild);
12 }; 12 };
13 </script> 13 </script>
14 14
15 <body onload="runTests()"> 15 <body onload="runTests()">
16 <details id="detail" open> 16 <details id="detail" open>
17 <summary id="summary">summary </summary> 17 <summary id="summary">summary </summary>
18 </details> 18 </details>
19 </body> 19 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698