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

Unified Diff: third_party/WebKit/LayoutTests/fast/selectors/focus-within-display-none.html

Issue 2862013002: [selectors4] Remove :focus-within test that is now duplicated (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/LayoutTests/FlagExpectations/enable-blink-features=LayoutNG ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/selectors/focus-within-display-none.html
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/focus-within-display-none.html b/third_party/WebKit/LayoutTests/fast/selectors/focus-within-display-none.html
deleted file mode 100644
index 09ef5624ca79b35d245a44f8e35d8d2b2e936e11..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/selectors/focus-within-display-none.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<meta charset="utf-8">
-<script src=../../resources/testharness.js></script>
-<script src=../../resources/testharnessreport.js></script>
-<input id="input">
-<script>
- const input = document.getElementById("input");
- input.focus();
-
- async_test((t) => {
- window.requestAnimationFrame(() => {
- t.step(() => assert_true(input.matches(":focus"),
- "Check input mathces ':focus' after being focused"));
- t.step(() => assert_true(input.matches(":focus-within"),
- "Check input mathces ':focus-within' after being focused"));
-
- input.style.display = "none";
- window.requestAnimationFrame(() => {
- t.step(() => assert_false(input.matches(":focus"),
- "Check input doesn't math ':focus' after getting 'display: none'"));
- t.step(() => assert_false(input.matches(":focus-within"),
- "Check input doesn't math ':focus-within' after getting 'display: none'"));
- t.done();
- });
- });
- }, "Test ':focus-within' after 'display:none'");
-</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/FlagExpectations/enable-blink-features=LayoutNG ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698