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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/the-input-element/valueMode.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/the-input-element/valueMode.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/the-input-element/valueMode.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/the-input-element/valueMode.html
deleted file mode 100644
index eec61e249f9810fc1497651d01b077b9ec16c95f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/the-input-element/valueMode.html
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>Input element value mode</title>
-<link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org">
-<script src="../../../../../../resources/testharness.js"></script>
-<script src="../../../../../../resources/testharnessreport.js"></script>
-<div id="log"></div>
-<script>
- var types = [
- { type: "hidden", mode: "default" },
- { type: "text", mode: "value", sanitizedValue: "foo" },
- { type: "search", mode: "value", sanitizedValue: "foo" },
- { type: "tel", mode: "value", sanitizedValue: "foo" },
- { type: "url", mode: "value", sanitizedValue: "foo" },
- { type: "email", mode: "value", sanitizedValue: "foo" },
- { type: "password", mode: "value", sanitizedValue: "foo" },
- { type: "datetime", mode: "value", sanitizedValue: "" },
- { type: "date", mode: "value", sanitizedValue: "" },
- { type: "month", mode: "value", sanitizedValue: "" },
- { type: "week", mode: "value", sanitizedValue: "" },
- { type: "time", mode: "value", sanitizedValue: "" },
- { type: "number", mode: "value", sanitizedValue: "" },
- { type: "range", mode: "value", sanitizedValue: "50" },
- { type: "color", mode: "value", sanitizedValue: "#000000" },
- { type: "checkbox", mode: "default/on" },
- { type: "radio", mode: "default/on" },
- { type: "submit", mode: "default" },
- { type: "image", mode: "default" },
- { type: "reset", mode: "default" },
- { type: "button", mode: "default" }
- ];
- for (var i = 0; i < types.length; i++) {
- test(function() {
- var input = document.createElement("input"),
- expected;
- input.type = types[i].type;
- input.value = "foo";
- switch(types[i].mode) {
- case "default":
- expected = "";
- break;
- case "default/on":
- expected = "on";
- break;
- case "value":
- expected = types[i].sanitizedValue;
- break;
- }
- assert_equals(input.value, expected);
- }, "value IDL attribute of input type " + types[i].type + " without value attribute");
-
- test(function() {
- var input = document.createElement("input"),
- expected;
- input.type = types[i].type;
- input.setAttribute("value", "bar");
- input.value = "foo";
- switch(types[i].mode) {
- case "default":
- expected = "bar";
- break;
- case "default/on":
- expected = "bar";
- break;
- case "value":
- expected = types[i].sanitizedValue;
- break;
- }
- assert_equals(input.value, expected);
- }, "value IDL attribute of input type " + types[i].type + " with value attribute");
- }
-</script>

Powered by Google App Engine
This is Rietveld 408576698