mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Add reftests to check that the reftest-print page dimensions are as expected.
This commit is contained in:
parent
9737f5e893
commit
952ee9aa56
8
layout/reftests/reftest-sanity/page-height-2.1in.html
Normal file
8
layout/reftests/reftest-sanity/page-height-2.1in.html
Normal 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>
|
8
layout/reftests/reftest-sanity/page-height-2in.html
Normal file
8
layout/reftests/reftest-sanity/page-height-2in.html
Normal 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>
|
@ -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"> </div>
|
7
layout/reftests/reftest-sanity/page-height-nobreak.html
Normal file
7
layout/reftests/reftest-sanity/page-height-nobreak.html
Normal 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>
|
8
layout/reftests/reftest-sanity/page-width-3.9in.html
Normal file
8
layout/reftests/reftest-sanity/page-width-3.9in.html
Normal 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>
|
8
layout/reftests/reftest-sanity/page-width-4.1in.html
Normal file
8
layout/reftests/reftest-sanity/page-width-4.1in.html
Normal 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>
|
8
layout/reftests/reftest-sanity/page-width-4in.html
Normal file
8
layout/reftests/reftest-sanity/page-width-4in.html
Normal 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>
|
8
layout/reftests/reftest-sanity/page-width-auto.html
Normal file
8
layout/reftests/reftest-sanity/page-width-auto.html
Normal 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>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user