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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-label-element/label-attributes.html

Issue 1999243002: Import wpt@5df9b57edb3307a87d5187804b29c8ddd2aa14e1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add expectations files (using run-webkit-tests --new-baseline) 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/wpt/html/semantics/forms/the-label-element/label-attributes.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-label-element/label-attributes.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-label-element/label-attributes.html
index 55ca76759cf7711d76f0b0e8aeb67934c307dee9..565f89d8e808abd3cc83420c4add71ddd3170ea1 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-label-element/label-attributes.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/the-label-element/label-attributes.html
@@ -121,14 +121,14 @@
// form attribute
test(function () {
- assert_equals(document.getElementById("lbl0").form, document.getElementById("fm"),
- "The 'form' property for a label with a form owner should return the form owner.");
- }, "A label's form attribute should return its form owner.");
+ assert_equals(document.getElementById("lbl0").form, null,
+ "The 'form' property for a label should return null if label.control is null.");
+ }, "A label in a form without a control");
test(function () {
- assert_equals(document.getElementById("lbl6").form, null,
- "The 'form' property for a label without a form owner should return null.");
- }, "Check that the labels property of a form control with no label returns a zero-length NodeList.");
+ assert_equals(document.getElementById("lbl6").form, document.getElementById("fm"),
+ "The 'form' property for a label should return label.control.form.");
+ }, "A label outside a form with a control inside the form");
// htmlFor attribute
test(function () {

Powered by Google App Engine
This is Rietveld 408576698