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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/form-submission-0/form-data-set-usv-form.html

Issue 2697453005: Import wpt@758b3b4cfa805067f36121333ba031e583d3a62c (Closed)
Patch Set: Add -expected.txt files. Created 3 years, 10 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/external/wpt/html/semantics/forms/form-submission-0/form-data-set-usv-form.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/form-submission-0/form-data-set-usv-form.html b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/form-submission-0/form-data-set-usv-form.html
new file mode 100644
index 0000000000000000000000000000000000000000..ce87abd9570be5001caff24ee7fdec7d1bec3a5a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/form-submission-0/form-data-set-usv-form.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>This is the form that will be submitted</title>
+
+<form action="form-echo.py" method="post" enctype="text/plain">
+ <input id="input1" type="text">
+ <select id="input2">
+ <option selected>option
+ </select>
+ <input id="input3" type="radio" checked>
+ <input id="input4" type="checkbox" checked>
+</form>
+
+<script>
+"use strict";
+
+const form = document.querySelector("form");
+
+for (let el of Array.from(form.querySelectorAll("input"))) { // Firefox/Edge support
+ el.name = el.id + "\uDC01";
+ el.value = el.id + "\uDC01";
+}
+
+const select = document.querySelector("select");
+select.name = select.id + "\uDC01";
+select.firstElementChild.value = select.id + "\uDC01";
+</script>

Powered by Google App Engine
This is Rietveld 408576698