Revision control

1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2
<html>
3
<head>
4
<script src="../resources/js-test-pre.js"></script>
5
<script src="resources/paged-media-test-utils.js"></script>
6
<style>
7
body { height: 100% }
8
</style>
9
</head>
10
<body>
11
<p id="description"></p>
12
<div id="console"></div>
13
<div id="sandbox"></div>
14
<script>
15
description("Test to make sure 2nd page is printed.");
16
17
function test()
18
{
19
createBlockWithRatioToPageHeight("page1", 1);
20
createBlockWithRatioToPageHeight("page2", 0.5);
21
22
pageNumberForElementShouldBe("page1", 0);
23
pageNumberForElementShouldBe("page2", 1);
24
25
numberOfPagesShouldBe(2);
26
27
document.body.removeChild(document.getElementById("sandbox"));
28
}
29
30
var successfullyParsed = true;
31
</script>
32
<script>runPrintingTest(test);</script>
33
<script src="../resources/js-test-post.js"></script>
34
</body>
35
</html>