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

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: 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..d82ffe7db46f3fd8bf146a81d546a302b3a502f7
--- /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 cause trouble when the document contains multicol.");
+ if (window.testRunner) {
rune 2015/12/09 23:56:38 You should check for window.internals. With --expo
mstensho (USE GERRIT) 2015/12/10 09:07:32 Done. So much for copy-pasting from a decade old
+ shouldBeEqualToString("internals.pageProperty('margin-left', 0)", "77");
+ } else {
+ testFailed("This test can be run only with window.testRunner");
+ }
+</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