summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/constrained_files
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-12 22:34:30 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-12 22:34:30 +0000
commit9287786db88d9e05150a796d8aa73131a713453d (patch)
tree5619c53dd1c75ae8270ab72056aac21636f1d86a /chrome/test/data/constrained_files
parent2969763caf40459ced64b909f60768a8b991e308 (diff)
downloadchromium_src-9287786db88d9e05150a796d8aa73131a713453d.zip
chromium_src-9287786db88d9e05150a796d8aa73131a713453d.tar.gz
chromium_src-9287786db88d9e05150a796d8aa73131a713453d.tar.bz2
Test to make sure issue 4737 doesn't regress.
Review URL: http://codereview.chromium.org/13800 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6942 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data/constrained_files')
-rw-r--r--chrome/test/data/constrained_files/window_blur_test.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/chrome/test/data/constrained_files/window_blur_test.html b/chrome/test/data/constrained_files/window_blur_test.html
new file mode 100644
index 0000000..7332e44
--- /dev/null
+++ b/chrome/test/data/constrained_files/window_blur_test.html
@@ -0,0 +1,24 @@
+<html>
+ <head>
+ <title>Blur test</title>
+ <script>
+ function buildPopupWindow() {
+ var w = window.open("", 'popupwindow','width=300,height=300,toolbar=no,' +
+ 'menubar=no,scrollbars=np,resizable=yes,' +
+ 'scrollbars=np,location=no,directories=no,status=no')
+ var d = w.document;
+ d.open();
+ d.write("<title>Shouldn't have onblur called</title><body " +
+ "onblur='self.close()'><center>Closed?</center></body>")
+ d.close();
+ }
+ </script>
+ </head>
+<body onClick="buildPopupWindow();">
+<h1>Blur test</h1>
+<p>This tests that a created popup window doesn't immediately receive a blur
+event because of bad window handling code. For this test to pass, the onblur=""
+handler in the popup must not be called and the window count must remain at two
+for a few seconds.</p>
+</body>
+</html>