Bug 878037 - print preview crash test for printing a bullet with an animated image. r=smaug
authorJoe Drew <joe@drew.ca>
Thu, 06 Jun 2013 13:35:41 -0400
changeset 145775 34656a2a1234e2bafaddcc578430051bfc8d64a2
parent 145774 65c588d76efa3040aeb99312a83c71b026bd3e24
child 145776 9e276a0276b9058609a51697964178ba65a4bc18
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs878037
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 878037 - print preview crash test for printing a bullet with an animated image. r=smaug
layout/base/tests/chrome/Makefile.in
layout/base/tests/chrome/animated.gif
layout/base/tests/chrome/printpreview_helper.xul
--- a/layout/base/tests/chrome/Makefile.in
+++ b/layout/base/tests/chrome/Makefile.in
@@ -30,16 +30,17 @@ MOCHITEST_CHROME_FILES = \
 	test_default_background.xul \
 	     default_background_window.xul \
 	test_no_clip_iframe.xul \
 	     no_clip_iframe_window.xul \
 	     no_clip_iframe_subdoc.html \
 	test_prerendered_transforms.html \
 	test_printpreview.xul \
 	     printpreview_helper.xul \
+	     animated.gif \
 	test_printpreview_bug396024.xul \
 	     printpreview_bug396024_helper.xul \
 	test_printpreview_bug482976.xul \
 	     printpreview_bug482976_helper.xul \
 	test_scrolling_repaints.html \
 	test_transformed_scrolling_repaints.html \
 	test_transformed_scrolling_repaints_2.html \
 	test_transformed_scrolling_repaints_3.html \
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..b2895487bd5df3407a207bd50acd668fff0fd032
GIT binary patch
literal 527
zc${<hbhEHbOkqf2XkcXc&%p5i|9{1wES!uCj0`#qK;R9OVPM+R)4%fcTmHp!w%qF8
zd~eTh{<cRR)1GxMdv$8tJMQD3e6D}%eg5m*_ka96T<u2|eeCejny%RJnX}hxdB}^E
zU1yWl-&!~QHE;OAN1Lvu_}QP#GTi;w_3-KUmD}><Pk)ZJiGTIIJWOeYXaq+=#0rfQ
zKc1gppQ)bdZkf*6eskH%V>6#+vUzQ9w@`iM79~|Gbxg{AMb<2-*H3PlduL~NNUyFw
zzWUW}))=id$6MyC*>mR3n?F3Vy0*TtxwXA>bAuQdP&{M;_Rt0*J@lS|1MDFcr%7kj
zieL74ExeR9DeJ73{H=EaueUZG4%V}@wllx{YV}Up)Wf}>ewt;(@Be(l>i&H840Q{4
zj`SOCE0$Fp^LQq~_EPnx>&n#5ZO7f0@2tH3;O2Ent_DprsjR4_QEl$OPJW0wBGvxN
z^L5MW=UUNRU$|v-Y<yyJYI?vP`V)ZW32Cq=0`Pc(<p|bTIkOBLD_2&1?K+#a{m#1Y
U*|nX=pKSWs<G1?yY9<D20B+X@R{#J2
--- a/layout/base/tests/chrome/printpreview_helper.xul
+++ b/layout/base/tests/chrome/printpreview_helper.xul
@@ -239,16 +239,33 @@ function runTest4end() {
 
 // This is a crash test for bug 595337
 function runTest5() {
   window.frames[0].document.body.innerHTML =
     '<iframe style="position: fixed; visibility: hidden; bottom: 10em;"></iframe>' +
     '<input contenteditable="true" style="display: table; page-break-before: left; width: 10000px;">';
   printpreview();
   exitprintpreview();
+
+  setTimeout(runTest6, 0);
+}
+
+// Crash test for bug 878037
+function runTest6() {
+  window.frames[0].document.body.innerHTML =
+    '<style> li { list-style-image: url("animated.gif"); } </style>' +
+    '<li>Firefox will crash if you try and print this page</li>';
+
+  setTimeout(runTest6end, 500);
+}
+
+function runTest6end() {
+  printpreview();
+  exitprintpreview();
+
   finish();
 }
 
 ]]></script>
 <table style="border: 1px solid black;" xmlns="http://www.w3.org/1999/xhtml">
 <tr><th>Print preview canvas 1</th><th>Print preview canvas 2</th></tr>
 <tr>
 <td><canvas height="300" width="300"></canvas></td>