36 lines
836 B
HTML
36 lines
836 B
HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
|
<html>
|
|
<head>
|
|
<script src="../resources/js-test-pre.js"></script>
|
|
<script src="resources/paged-media-test-utils.js"></script>
|
|
<style>
|
|
body { height: 100% }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p id="description"></p>
|
|
<div id="console"></div>
|
|
<div id="sandbox"></div>
|
|
<script>
|
|
description("Test to make sure 2nd page is printed.");
|
|
|
|
function test()
|
|
{
|
|
createBlockWithRatioToPageHeight("page1", 1);
|
|
createBlockWithRatioToPageHeight("page2", 0.5);
|
|
|
|
pageNumberForElementShouldBe("page1", 0);
|
|
pageNumberForElementShouldBe("page2", 1);
|
|
|
|
numberOfPagesShouldBe(2);
|
|
|
|
document.body.removeChild(document.getElementById("sandbox"));
|
|
}
|
|
|
|
var successfullyParsed = true;
|
|
</script>
|
|
<script>runPrintingTest(test);</script>
|
|
<script src="../resources/js-test-post.js"></script>
|
|
</body>
|
|
</html>
|