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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single.html

Issue 2372913002: fixed <select> element isn't updated after its single option removing. (Closed)
Patch Set: remove anchor element and adjunst some indents Created 4 years, 3 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 | « AUTHORS ('k') | third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single.html b/third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single.html
new file mode 100644
index 0000000000000000000000000000000000000000..b07faaff0e3ab4c9102f67657e96bef21beee1db
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<title>Test for HTMLSelectElement.remove() on an Options object</title>
+
+<style type="text/css">
+select {
+ min-width: 100px;
+}
+</style>
+
+<select>
+ <option selected>hello</option>
+</select>
+
+<script>
+window.addEventListener('load', function() {
+ document.querySelector('option').remove();
+});
+</script>
« no previous file with comments | « AUTHORS ('k') | third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698