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

Unified Diff: LayoutTests/fast/forms/select-popup-close-no-crash.html

Issue 920433002: Gracefully handle a disconnected popup menu client on disposing open popup. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rework test, mac-friendly Created 5 years, 10 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
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>
« no previous file with comments | « LayoutTests/fast/forms/resources/popup-no-crash.html ('k') | LayoutTests/fast/forms/select-popup-close-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698