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

Unified Diff: LayoutTests/fast/html/crash-on-invalid-selection-index.html

Issue 761463002: Fix listbox selections with only disabled options. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated patch Created 6 years 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 | LayoutTests/fast/html/crash-on-invalid-selection-index-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/html/crash-on-invalid-selection-index.html
diff --git a/LayoutTests/fast/html/crash-on-invalid-selection-index.html b/LayoutTests/fast/html/crash-on-invalid-selection-index.html
new file mode 100644
index 0000000000000000000000000000000000000000..dd22285a55f9879251113f5a3b0d9626fd3e151f
--- /dev/null
+++ b/LayoutTests/fast/html/crash-on-invalid-selection-index.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<select multiple autofocus>
+ <option selected disabled></option>
+</select>
+<img src="foo.bar"></img>
+<p>PASS if it does not crash in debug.</p>
+<script>
+onload = function() {
+ document.execCommand("selectAll");
+
+ if (window.testRunner)
+ testRunner.dumpAsText();
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/html/crash-on-invalid-selection-index-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698