Index: LayoutTests/fast/forms/select-popup-close-no-crash.html |
diff --git a/LayoutTests/fast/forms/select-popup-close-no-crash.html b/LayoutTests/fast/forms/select-popup-close-no-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..87b7f2baf9b815bb33e5480222a1e5d7cf5ae643 |
--- /dev/null |
+++ b/LayoutTests/fast/forms/select-popup-close-no-crash.html |
@@ -0,0 +1,31 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="resources/picker-common.js"></script> |
+</head> |
+<body> |
+<select id="menu"> |
+<option>foo</option> |
+<option>bar</option> |
+</select> |
+<form action="resources/popup-no-crash.html" id="form1"></form> |
+<script> |
+if (window.testRunner) { |
+ testRunner.waitUntilDone(); |
+ testRunner.dumpAsText(); |
+} |
+ |
+function openCallback() { |
+ document.getElementById('form1').submit(); |
+} |
+ |
+function errorCallback() { |
+ window.location = "resources/popup-no-crash.html"; |
+} |
+ |
+window.onload = function () { |
+ openPicker(document.getElementById('menu'), openCallback, errorCallback); |
+} |
+</script> |
+</body> |
+</html> |