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

Unified Diff: LayoutTests/imported/web-platform-tests/html/semantics/forms/form-control-infrastructure/form.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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: LayoutTests/imported/web-platform-tests/html/semantics/forms/form-control-infrastructure/form.html
diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/forms/form-control-infrastructure/form.html b/LayoutTests/imported/web-platform-tests/html/semantics/forms/form-control-infrastructure/form.html
new file mode 100644
index 0000000000000000000000000000000000000000..aa32560f3095fa785b652973b4ba624026e13b1b
--- /dev/null
+++ b/LayoutTests/imported/web-platform-tests/html/semantics/forms/form-control-infrastructure/form.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>HTMLInputElement#form</title>
+<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com">
+<script src="../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../resources/testharnessreport.js"></script>
+<div id="log"></div>
+<form id="form">
+<p><button id="button">button</button>
+<p><fieldset id="fieldset">fieldset</fieldset>
+<p><input id="input">
+<p><keygen id="keygen">
+<p><label id="label">label</label>
+<p><object id="object">object</object>
+<p><output id="output">output</output>
+<p><select id="select"><option>select</option></select>
+<p><textarea id="textarea">textarea</textarea>
+</form>
+<script>
+var form;
+setup(function() {
+ form = document.getElementById("form");
+ if (!form) {
+ throw new TypeError("Didn't find form");
+ }
+});
+
+var reassociateableElements = [
+ "button",
+ "fieldset",
+ "input",
+ "keygen",
+ "label",
+ "object",
+ "output",
+ "select",
+ "textarea",
+];
+
+reassociateableElements.forEach(function(localName) {
+ test(function() {
+ var button = document.getElementById(localName);
+ assert_equals(button.form, form);
+ }, localName + ".form");
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698