assertion test for bug 595727
authorJesse Ruderman <jruderman@gmail.com> and Karl Tomlinson <karlt+@karlt.net>
Mon, 08 Nov 2010 09:21:20 +1300
changeset 57076 44cc8965647ed6a07aebdb3876ce520b2b96fca1
parent 57075 fe299c0eb02408d289387f78a51301de69c100f3
child 57077 a4acedb0dc7e439ca8b20fc77484444814871dee
push idunknown
push userunknown
push dateunknown
bugs595727
milestone2.0b8pre
assertion test for bug 595727
gfx/tests/crashtests/595727-1.html
gfx/tests/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/gfx/tests/crashtests/595727-1.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<head>
+<script>
+
+function doTest()
+{
+  var r = document.documentElement;
+  while(r.firstChild) { r.removeChild(r.firstChild); }
+  var body = document.createElementNS("http://www.w3.org/1999/xhtml", "body"); 
+  r.appendChild(body); 
+  body.contentEditable = "true"; 
+  document.execCommand("inserthtml", false, "<span style=\"position:relative;left:0.8px\">a<select></select>a</span>"); 
+
+  document.documentElement.removeAttribute("class");
+}
+
+document.addEventListener("MozReftestInvalidate", doTest, false);
+</script>
+</head>
+
+<body></body>
+</html>
--- a/gfx/tests/crashtests/crashtests.list
+++ b/gfx/tests/crashtests/crashtests.list
@@ -75,8 +75,9 @@ load 490777-1.html
 load 532726-1.html
 load 538065-1.html
 load 546870-1.html
 load balinese-letter-spacing.html
 load 580100-1.html
 load 580212-1.html
 skip-if(gtk2Widget) load 580233-1.html
 load 580719-1.html
+load 595727-1.html