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
</head>
7
<body>
8
<p id="description"></p>
9
<div id="console"></div>
10
<div id="sandbox"></div>
11
<script>
12
description("Test for no-content empty pages");
13
14
function test()
15
{
16
// Only one page break should happen at the same position.
17
createBlockWithRatioToPageHeight("page1-1", 0).style.pageBreakBefore = "always";
18
createBlockWithRatioToPageHeight("page1-2", 0).style.pageBreakBefore = "always";
19
createBlockWithRatioToPageHeight("page1-3", 0).style.pageBreakBefore = "always";
20
createBlockWithRatioToPageHeight("page1-last", 0.1);
21
22
pageNumberForElementShouldBe("page1-1", 1);
23
pageNumberForElementShouldBe("page1-last", 1);
24
25
document.body.removeChild(document.getElementById("sandbox"));
26
}
27
28
var successfullyParsed = true;
29
</script>
30
<script>runPrintingTest(test);</script>
31
<script src="../resources/js-test-post.js"></script>
32
</body>
33
</html>