Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / printing / script-tests / page-break-always.js
blobf7a5bb4a9c91bed5a20fe56b56735fe6bbb313a3
1 description("Test for page-break-before:always and page-break-after:always");
3 function test()
5     createBlockWithRatioToPageHeight("firstPage", 0.1);
6     createBlockWithRatioToPageHeight("secondPage1", 0.1).style.pageBreakBefore = "always";
7     createBlockWithRatioToPageHeight("secondPage2", 0.1).style.pageBreakAfter = "always";
8     createBlockWithRatioToPageHeight("thirdPage", 0.1).style.pageBreakBefore = "always";
10     pageNumberForElementShouldBe('firstPage', 0);
11     pageNumberForElementShouldBe('secondPage1', 1);
12     pageNumberForElementShouldBe('secondPage2', 1);
13     // There must be only one page break between 'page-break-after: always' and 'page-break-before: always'
14     pageNumberForElementShouldBe('thirdPage', 2);
16     document.body.removeChild(document.getElementById("sandbox"));
19 var successfullyParsed = true;