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

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

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
OLDNEW
(Empty)
1 Test that an exception is thrown when attempting to set zero page height
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS internals.numberOfPages(100, 0) threw exception TypeError: Failed to execut e 'numberOfPages' on 'Internals': Page width and height must be larger than 0..
7 PASS internals.pageNumber(document.body, 100, 0) threw exception TypeError: Fail ed to execute 'pageNumber' on 'Internals': Page width and height must be larger than 0..
8 PASS successfullyParsed is true
9
10 TEST COMPLETE
11  
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/printing/page-height-zero.html ('k') | third_party/WebKit/Source/core/page/PrintContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698