Add reftests to check that the reftest-print page dimensions are as expected.

This commit is contained in:
L. David Baron 2010-07-02 21:18:55 -07:00
parent 9737f5e893
commit 952ee9aa56
9 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,8 @@
<!DOCTYPE HTML>
<html class="reftest-print">
<title>Test that reftest-print page content height is 2 inches (3 inch page, half inch margins)</title>
<style>
body { margin: 0 }
div { height: 2.1in; }
</style>
<div>hello</div>

View File

@ -0,0 +1,8 @@
<!DOCTYPE HTML>
<html class="reftest-print">
<title>Test that reftest-print page content height is 2 inches (3 inch page, half inch margins)</title>
<style>
body { margin: 0 }
div { height: 2in; }
</style>
<div>hello</div>

View File

@ -0,0 +1,8 @@
<!DOCTYPE HTML>
<html class="reftest-print">
<title>Test that reftest-print page content height is 2 inches (3 inch page, half inch margins)</title>
<style>
body { margin: 0 }
</style>
<div>hello</div>
<div style="page-break-before: always">&nbsp;</div>

View File

@ -0,0 +1,7 @@
<!DOCTYPE HTML>
<html class="reftest-print">
<title>Test that reftest-print page content height is 2 inches (3 inch page, half inch margins)</title>
<style>
body { margin: 0 }
</style>
<div>hello</div>

View File

@ -0,0 +1,8 @@
<!DOCTYPE HTML>
<html class="reftest-print">
<title>Test that reftest-print page content width is 4 inches (5 inch page, half inch margins)</title>
<style>
body { margin: 0 }
div { background: blue; color: white; width: 3.9in; }
</style>
<div>hello</div>

View File

@ -0,0 +1,8 @@
<!DOCTYPE HTML>
<html class="reftest-print">
<title>Test that reftest-print page content width is 4 inches (5 inch page, half inch margins)</title>
<style>
body { margin: 0 }
div { background: blue; color: white; width: 4.1in; }
</style>
<div>hello</div>

View File

@ -0,0 +1,8 @@
<!DOCTYPE HTML>
<html class="reftest-print">
<title>Test that reftest-print page content width is 4 inches (5 inch page, half inch margins)</title>
<style>
body { margin: 0 }
div { background: blue; color: white; width: 4in; }
</style>
<div>hello</div>

View File

@ -0,0 +1,8 @@
<!DOCTYPE HTML>
<html class="reftest-print">
<title>Test that reftest-print page content width is 4 inches (5 inch page, half inch margins)</title>
<style>
body { margin: 0 }
div { background: blue; color: white; }
</style>
<div>hello</div>

View File

@ -70,3 +70,11 @@ include urlprefixtests.list
!= corners-2.html corners-2-ref.html
!= corners-3.html corners-3-ref.html
!= corners-4.html corners-4-ref.html
# Test that the harness gives the correct page dimensions.
!= page-width-3.9in.html page-width-4in.html
== page-width-4.1in.html page-width-4in.html
== page-width-auto.html page-width-4in.html
!= page-height-2in.html page-height-2.1in.html
== page-height-2in.html page-height-nobreak.html
== page-height-2.1in.html page-height-forcebreak.html