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

Unified Diff: third_party/WebKit/LayoutTests/printing/pageProperty-with-multicol.html

Issue 1510353002: PrintContext::pageProperty() shouldn't use 0 as page height. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No need to call updateLayout() manually. PrintContext::begin() does it for us. Created 5 years 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/printing/pageProperty-with-multicol-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/printing/pageProperty-with-multicol.html
diff --git a/third_party/WebKit/LayoutTests/printing/pageProperty-with-multicol.html b/third_party/WebKit/LayoutTests/printing/pageProperty-with-multicol.html
new file mode 100644
index 0000000000000000000000000000000000000000..68ba8ac91d267cf2296e61437155769233401fcc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/printing/pageProperty-with-multicol.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src="../resources/js-test.js"></script>
+<style>
+ @page { margin:0 77px; }
+</style>
+<div style="-webkit-columns:3;">
+ <br>
+ <br>
+</div>
+<script>
+ description("Test that special layout for pageProperty() doesn't crash or cause trouble when the document contains multicol.");
+ if (window.internals) {
+ shouldBeEqualToString("internals.pageProperty('margin-left', 0)", "77");
+ } else {
+ testFailed("This test can be run only with window.internals enabled");
+ }
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/printing/pageProperty-with-multicol-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698