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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application.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/selection-not-application.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application.html
deleted file mode 100644
index 0074e31759c9e076db7ff56fa50c3c60b355893a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>text field selection</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>
-<script>
- var types = ["hidden", "email", "datetime", "date", "month", "week", "time", "number", "range", "color", "checkbox", "radio", "file", "submit", "image", "reset", "button"]; //types for which the API doesn't apply
- var types2 = ["text", "search", "tel", "url", "password"]; //types for which the API applies
-
- types.forEach(function(type){
- test(function(){
- var el = document.createElement("input");
- el.type = type;
- assert_throws("InvalidStateError", function(){
- el.selectionStart;
- });
- assert_throws("InvalidStateError", function(){
- el.selectionEnd;
- });
- assert_throws("InvalidStateError", function(){
- el.selectionDirection;
- });
- assert_throws("InvalidStateError", function(){
- el.setRangeText("foobar");
- });
- assert_throws("InvalidStateError", function(){
- el.setSelectionRange(0, 1);
- });
- }, "text field selection for the input " + type);
- });
-
- types2.forEach(function(type) {
- test(function() {
- var el = document.createElement("input");
- el.type = type;
- assert_equals(el.selectionStart, 0);
- assert_equals(el.selectionEnd, 0);
- el.selectionStart = 1;
- el.selectionEnd = 1;
- el.selectionDirection = "forward";
- el.setRangeText("foobar");
- el.setSelectionRange(0, 1);
- }, "text field selection for the input " + type);
- });
-</script>

Powered by Google App Engine
This is Rietveld 408576698