https://bugs.webkit.org/show_bug.cgi?id=51328
[WebKit-https.git] / LayoutTests / printing / script-tests / page-count-percentage-height.js
1 description("Test to make sure 2nd page is printed.");
2
3 function test()
4 {
5     createBlockWithRatioToPageHeight("page1", 1);
6     createBlockWithRatioToPageHeight("page2", 0.5);
7
8     pageNumberForElementShouldBe("page1", 0);
9     pageNumberForElementShouldBe("page2", 1);
10     
11     numberOfPagesShouldBe(2);
12
13     document.body.removeChild(document.getElementById("sandbox"));
14 }
15
16 var successfullyParsed = true;