WebCore/manual-tests/chromium/onchange-reload-popup.html
changeset 0 4f2f89ce4247
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/WebCore/manual-tests/chromium/onchange-reload-popup.html	Fri Sep 17 09:02:29 2010 +0300
@@ -0,0 +1,44 @@
+<html>
+<head>
+    <script type="text/javascript"> 
+
+    function addEvent(obj, evType, fn) {
+        if (obj.addEventListener){
+          obj.addEventListener(evType, fn, false);
+          return true;
+        } else if (obj.attachEvent){
+          var r = obj.attachEvent("on"+evType, fn);
+          return r;
+        } else {
+          return false;
+        }
+    }
+
+    function reloadSelect() {
+        var container = document.getElementById('container');
+        container.innerHTML = '<select id="menu"> \
+          <option value="abcd">abcd</option>\
+          <option value="defg">efgh</option>\
+        </select>';
+
+        var menu = document.getElementById('menu');
+        addEvent(menu, 'change', reloadSelect);
+    }
+
+    </script>
+</head>
+<body>
+    <p>Do the following and see if Chromium crashes.</p>
+    <ul>
+      <li>Click the select</li> 
+      <li>Press 'e' on your keyboard</li> 
+      <li>Click on the document but not the select itself.</li>
+    </ul>
+
+    <div id="container"/>
+    <script>
+        reloadSelect()
+    </script>
+    </div> 
+</body>
+</html>