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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/radio/radio-group-remove-required.html

Issue 1632493002: Precisely account for required buttons in a radio group. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix oilpan compilation Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/radio/radio-group-remove-required-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/radio/radio-group-remove-required.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/radio/radio-group-remove-required.html b/third_party/WebKit/LayoutTests/fast/forms/radio/radio-group-remove-required.html
new file mode 100644
index 0000000000000000000000000000000000000000..1dc7e534c4ac4b7cbf203e531f2bd5bcbf05d4c3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/radio/radio-group-remove-required.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body>
+<form>
+<input type=radio name=requiredRadio id=rbutton required>
+</form>
+<script>
+description('Removing a named required radio button shouldn\'t assert');
+
+var radio = document.getElementById('rbutton');
+shouldBeTrue('document.getElementsByName("requiredRadio")[0].required');
+shouldBeTrue('radio.required');
+radio.parentElement.removeChild(radio);
+shouldBeTrue('radio.required');
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/radio/radio-group-remove-required-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698