4 <title>Test for Bug 48984 - [Chromium] @media print crash due to paged media support</title>
12 Click the print button and see if Chromium crashes.
13 <input type="button" value="print" onclick="testManually()"/>
16 function testManually() {
17 document.documentElement.style.display = "none";
21 if (window.testRunner) {
22 testRunner.dumpAsText();
24 // The test passes if the following line doesn't cause a crash.
25 testRunner.pageSizeAndMarginsInPixels(0, 100, 200, 1, 2, 3, 4);
27 document.getElementById("output").innerHTML = "PASS";
29 // Remove the display: none; rule. Otherwise, DumpRenderTree dumps weird stuff.
30 document.styleSheets[0].removeRule(0);