Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / printing / script-tests / no-content-empty-pages.js
blobfade913ee14cf24ff833db8212136afa400eca7b
1 description("Test for no-content empty pages");
3 function test()
5     // Only one page break should happen at the same position.
6     createBlockWithRatioToPageHeight("page1-1", 0).style.pageBreakBefore = "always";
7     createBlockWithRatioToPageHeight("page1-2", 0).style.pageBreakBefore = "always";
8     createBlockWithRatioToPageHeight("page1-3", 0).style.pageBreakBefore = "always";
9     createBlockWithRatioToPageHeight("page1-last", 0.1);
11     pageNumberForElementShouldBe("page1-1", 1);
12     pageNumberForElementShouldBe("page1-last", 1);
14     document.body.removeChild(document.getElementById("sandbox"));
17 var successfullyParsed = true;