Chromium Code Reviews| 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..d0610c832ae945f1ac31a2bda3a525729ce019f5 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single.html |
| @@ -0,0 +1,26 @@ |
| +<style type="text/css"> |
|
zino
2016/09/28 17:07:14
Need <!DOCTYPE html>
|
| + #s { |
| + min-width: 100px; |
| + } |
| +</style> |
| + |
| +<title>Test for HTMLSelectElement.remove() on an Options object</title> |
| + |
| +<select id="s"> |
|
zino
2016/09/28 17:07:14
We don't need id attributes here if they doesn't b
|
| + <option id="o" selected >hello</option> |
| +</select> |
| + |
| +<a id="a" herf="#">Remove option</a> |
| + |
| +<script> |
| +function load() { |
|
zino
2016/09/28 17:07:14
This is unnecessary.
|
| + var removeLink = document.querySelector('a'); |
| + removeLink.addEventListener('click', () => { |
| + document.querySelector('option').remove(); |
| + }); |
| + removeLink.click(); |
| + |
| +} |
| +window.onload = load; |
|
zino
2016/09/28 17:07:14
This is unnecessary.
|
| +</script> |
| + |