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

Unified 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, 12 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/printing/page-height-zero-expected.txt
diff --git a/third_party/WebKit/LayoutTests/printing/page-height-zero-expected.txt b/third_party/WebKit/LayoutTests/printing/page-height-zero-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..eb4b6860adfedee387778759076cb5740a11c450
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/printing/page-height-zero-expected.txt
@@ -0,0 +1,11 @@
+Test that an exception is thrown when attempting to set zero page height
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS internals.numberOfPages(100, 0) threw exception TypeError: Failed to execute 'numberOfPages' on 'Internals': Page width and height must be larger than 0..
+PASS internals.pageNumber(document.body, 100, 0) threw exception TypeError: Failed to execute 'pageNumber' on 'Internals': Page width and height must be larger than 0..
+PASS successfullyParsed is true
+
+TEST COMPLETE
« 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