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

Unified Diff: LayoutTests/accessibility/hidden-legend.html

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well Created 7 years, 2 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: LayoutTests/accessibility/hidden-legend.html
diff --git a/LayoutTests/accessibility/hidden-legend.html b/LayoutTests/accessibility/hidden-legend.html
deleted file mode 100644
index c18327407f470e60e052db81c4b12b39fa64e006..0000000000000000000000000000000000000000
--- a/LayoutTests/accessibility/hidden-legend.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<body>
-<script src="../fast/js/resources/js-test-pre.js"></script>
-
-<style>
-#form2 legend {position:absolute; left:-9999px;}
-#form3 legend {display:none;}
-</style>
-
-<form action="#" method="post" id="form1">
-<fieldset tabindex=0 role="group" id="fieldset1">
-<legend>Pick your favourite colour:</legend>
-<input type="radio" name="colours3" value="red3" id="red3"> <label for="red3">red</label>
-<input type="radio" name="colours3" value="yellow3" id="yellow3"> <label for="yellow3">yellow</label>
-</fieldset>
-</form>
-
-<form action="#" method="post" id="form2">
-<fieldset tabindex=0 role="group" id="fieldset2">
-<legend>Pick your favourite colour:</legend>
-<input type="radio" name="colours3" value="red3" id="red3"> <label for="red3">red</label>
-<input type="radio" name="colours3" value="yellow3" id="yellow3"> <label for="yellow3">yellow</label>
-</fieldset>
-</form>
-
-<form action="#" method="post" id="form3">
-<fieldset tabindex=0 role="group" id="fieldset3">
-<legend>Pick your favourite colour:</legend>
-<input type="radio" name="colours3" value="red3" id="red3"> <label for="red3">red</label>
-<input type="radio" name="colours3" value="yellow3" id="yellow3"> <label for="yellow3">yellow</label>
-</fieldset>
-</form>
-
-<div id="console"></div>
-<script>
-description("This tests that the legend is still used as the title UI element even when off-screen (but not when display:none is used)")
-
-if (window.testRunner && window.accessibilityController) {
-
- // 1st case: testing when a fieldset uses an unmodified legend. The title UI element
- // should be the legend (which is the first child).
- document.getElementById('fieldset1').focus();
- var fieldset1 = accessibilityController.focusedElement;
- shouldBeTrue("fieldset1.titleUIElement().isEqual(fieldset1.childAtIndex(0))");
-
- // 2nd case: a hidden legend should still be the title UI element.
- document.getElementById('fieldset2').focus();
- var fieldset2 = accessibilityController.focusedElement;
- shouldBeTrue("fieldset2.titleUIElement().isEqual(fieldset2.childAtIndex(0))");
-
- // 3rd case: a legend with display:none should not be a title UI element.
- document.getElementById('fieldset3').focus();
- var fieldset3 = accessibilityController.focusedElement;
- shouldBeTrue("fieldset3.titleUIElement() == null || !fieldset3.titleUIElement().isValid");
-}
-
-</script>
-
-<script src="../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
« no previous file with comments | « LayoutTests/accessibility/document-attributes-expected.txt ('k') | LayoutTests/accessibility/hidden-legend-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698