Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: third_party/WebKit/LayoutTests/printing/page-height-zero.html

Issue 1552703003: Internals: throw an exception when page height or width is 0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use js-test.js , which provides shouldThrow() Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/printing/page-height-zero-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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;">&nbsp;</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>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/printing/page-height-zero-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698