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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/select-event.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/semantics/forms/textfieldselection/select-event.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/select-event.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/select-event.html
deleted file mode 100644
index b726bfac6bf5a3cef1244de4caf2ee3c7269abdb..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/select-event.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>text field selection: select()</title>
-<link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org">
-<link rel=help href="https://html.spec.whatwg.org/multipage/#textFieldSelection">
-<script src="../../../../../../resources/testharness.js"></script>
-<script src="../../../../../../resources/testharnessreport.js"></script>
-<div id="log"></div>
-<textarea>foobar</textarea>
-<script>
- var input_types = ["text", "search", "tel", "url", "password"],
- t1 = async_test("select() on textarea queues select event"),
- q1 = false;
-
- input_types.forEach(function(type) {
- var input = document.createElement("input"),
- t = async_test("select() on input type " + type + " queues select event"),
- q = false;
- t.step(function() {
- input.type = type;
- input.value = "foobar";
- document.body.appendChild(input);
- input.onselect = t.step_func_done(function(e) {
- assert_true(q, "event should be queued");
- assert_true(e.isTrusted, "event is trusted");
- assert_true(e.bubbles, "event bubbles");
- assert_false(e.cancelable, "event is not cancelable");
- });
- input.select();
- q=true;
- });
- });
-
- document.querySelector("textarea").onselect = t1.step_func_done(function(e) {
- assert_true(q1, "event should be queued");
- assert_true(e.isTrusted, "event is trusted");
- assert_true(e.bubbles, "event bubbles");
- assert_false(e.cancelable, "event is not cancelable");
- });
-
- t1.step(function() {
- document.querySelector("textarea").select();
- q1=true;
- });
-</script>

Powered by Google App Engine
This is Rietveld 408576698