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> |