bug 312784 - crash test by Boris Zbarsky.
authorBob Clary <bclary@bclary.com>
Fri, 24 Apr 2009 10:08:08 -0700
changeset 27721 2057466b414a717d3ceed620a3a42d0523e42b21
parent 27720 e7bb6f9cd17566cc62ec59adf4bcf0609f256dac
child 27722 811d3a773dc03bedd441bd4f3a63904eb84c79a0
push id6720
push userbclary@mozilla.com
push dateFri, 24 Apr 2009 17:10:36 +0000
treeherdermozilla-central@a1e84240b5c9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs312784
milestone1.9.2a1pre
bug 312784 - crash test by Boris Zbarsky.
layout/xul/base/src/grid/crashtests/312784-1.xul
layout/xul/base/src/grid/crashtests/crashtests.list
new file mode 100755
--- /dev/null
+++ b/layout/xul/base/src/grid/crashtests/312784-1.xul
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+<script type="application/x-JavaScript">
+function crash() {
+  document.getElementById("test").style.display = "none";
+}
+
+function clickit() {
+  var button = document.getElementById('button');
+  var evt = document.createEvent("MouseEvents");
+  evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
+  button.dispatchEvent(evt);
+}
+
+window.onload = clickit;
+
+</script>
+
+        <grid>
+          <columns>
+            <column/>
+          </columns>
+          <rows id="test">
+	    <row><button label="placeholder"/></row>
+          </rows>
+        </grid>
+<button id="button" label="Crash me" onclick="crash()"/>
+</window>
--- a/layout/xul/base/src/grid/crashtests/crashtests.list
+++ b/layout/xul/base/src/grid/crashtests/crashtests.list
@@ -1,9 +1,10 @@
 load 306911-crash.xul
 load 306911-grid-testcases.xul
 load 306911-grid-testcases2.xul
 load 311710-1.xul
+load 312784-1.xul
 load 321066-1.xul
 load 321073-1.xul
 load 382750-1.xul
 load 400790-1.xul
 load 423802-crash.xul