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

Side by Side Diff: third_party/WebKit/LayoutTests/html/details_summary/details-open-toggle-event.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="help" href="http://www.whatwg.org/specs/web-apps/current-work/multipa ge/interactive-elements.html#attr-details-open"> 4 <link rel="help" href="http://www.whatwg.org/specs/web-apps/current-work/multipa ge/interactive-elements.html#attr-details-open">
5 <script src="../../resources/js-test.js"></script> 5 <script src="../../resources/js-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <details id="details" ontoggle="handleToggleEventFromHTMLAttribute(event)"> 8 <details id="details" ontoggle="handleToggleEventFromHTMLAttribute(event)">
9 <summary>details</summary> 9 <summary>details</summary>
10 <input> 10 <input>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 65 }
66 66
67 var details = document.getElementById("details"); 67 var details = document.getElementById("details");
68 shouldBe("details.ontoggle.__proto__", "Function.prototype"); 68 shouldBe("details.ontoggle.__proto__", "Function.prototype");
69 details.addEventListener("toggle", handleToggleEvent); 69 details.addEventListener("toggle", handleToggleEvent);
70 shouldBeFalse("details.open"); 70 shouldBeFalse("details.open");
71 testToogleEventFired(); 71 testToogleEventFired();
72 </script> 72 </script>
73 </body> 73 </body>
74 </html> 74 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698