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

Unified Diff: third_party/WebKit/LayoutTests/fast/html/details-keyboard-show-hide.html

Issue 2670273002: Move tests for DETAILS and SUMMARY elements to html/details_summary/. (Closed)
Patch Set: Created 3 years, 11 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
Index: third_party/WebKit/LayoutTests/fast/html/details-keyboard-show-hide.html
diff --git a/third_party/WebKit/LayoutTests/fast/html/details-keyboard-show-hide.html b/third_party/WebKit/LayoutTests/fast/html/details-keyboard-show-hide.html
deleted file mode 100644
index ec5b40369423f1f6bec34ef2f6cd826d3827ce6d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/html/details-keyboard-show-hide.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-
-<body>
-<p id="description"></p>
-<div id="console"></div>
-<details id="details"><summary id="summary"></summary><input></details>
-<script>
- function openAttribute(id) {
- return document.getElementById(id).open;
- }
-
- description("This test verifies that pressing the ENTER or SPACEBAR key when the &lt;summary&gt; has focus will toggle the &lt;details&gt; display. On expanding details.open will be true and vice versa.");
-
- if (window.eventSender) {
- var summary = document.getElementById("summary");
- summary.focus();
-
- shouldBeFalse('openAttribute("details")');
- debug("Toggle &lt;display&gt; using Enter key:");
- eventSender.keyDown("\r");
- shouldBeTrue('openAttribute("details")');
- eventSender.keyDown("\r");
- shouldBeFalse('openAttribute("details")');
-
- debug("Toggle &lt;display&gt; using Spacebar key:");
- eventSender.keyDown(" ");
- shouldBeTrue('openAttribute("details")');
- eventSender.keyDown(" ");
- shouldBeFalse('openAttribute("details")');
- } else {
- debug('There are tests using eventSender.');
- }
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698