OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../resources/js-test.js"></script> |
| 3 <style> |
| 4 @media print { |
| 5 /* Need something to trigger multicol layout when entering print mode, |
| 6 to trigger the original crash bug (division by zero). */ |
| 7 #multicol { width: 50%; } |
| 8 } |
| 9 </style> |
| 10 <div id="multicol" style="-webkit-columns:2;"> </div> |
| 11 <script> |
| 12 description("Test that an exception is thrown when attempting to set zero pa
ge height"); |
| 13 if (window.internals) { |
| 14 shouldThrow("internals.numberOfPages(100, 0)"); |
| 15 shouldThrow("internals.pageNumber(document.body, 100, 0)"); |
| 16 } else { |
| 17 testFailed("This test requires window.internals"); |
| 18 } |
| 19 </script> |
OLD | NEW |