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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/editing/focus/focus-management/focus-event-targets-simple.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/editing/focus/focus-management/focus-event-targets-simple.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/editing/focus/focus-management/focus-event-targets-simple.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/editing/focus/focus-management/focus-event-targets-simple.html
deleted file mode 100644
index 90d37bf1e7ce320d8e0f3b1e18cdcbc645b85ea1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/editing/focus/focus-management/focus-event-targets-simple.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="utf-8">
- <title>Focus events fire at correct targets in correct order in simple case</title>
- <link rel="author" title="Chris Rebert" href="http://chrisrebert.com">
- <link rel="help" href="https://html.spec.whatwg.org/#focus-update-steps">
- <link rel="help" href="https://html.spec.whatwg.org/#focus-chain">
- <meta name="flags" content="dom">
- <script src="../../../../../../resources/testharness.js"></script>
- <script src="../../../../../../resources/testharnessreport.js"></script>
-</head>
-<body>
- <input type="text" id="a">
- <script>
-// Record all the focus event targets in an array.
-// Modulo special cases in the "focus update steps" algorithm,
-// this should be the same as the new focus chain, except in reverse order.
-var newFocusChainReversedNotQuite = [];
-var pushTarget = function (e) {
- newFocusChainReversedNotQuite.push(e.target);
-};
-// Window is the root node for event dispatch per https://html.spec.whatwg.org/multipage/webappapis.html#events-and-the-window-object
-window.addEventListener('focus', pushTarget, true);// Use event capturing since focus event doesn't bubble
-var input = document.getElementById('a');
-input.focus();
-window.removeEventListener('focus', pushTarget, true);
-test(function() {
- assert_array_equals(newFocusChainReversedNotQuite, [input], "Exactly 1 focus event should fire and its target should be the input");
-}, "Focus events fire at correct targets in correct order in simple case");
- </script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698