Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / printing / script-tests / pageNumerForElementById.js
blob1d0e4594fc943be4faf831d235021d5b7b8a6d72
1 description("Test for internals.pageNumber()");
3 function test()
5     // Assuming that one page has about 20 lines.
6     createBlockWithNumberOfLines("firstPage", 20);
7     createBlockWithNumberOfLines("secondPage", 20);
9     createBlockWithNumberOfLines("thirdPage", 5);
10     createBlockWithNumberOfLines("thirdPage2", 5);
12     pageNumberForElementShouldBe('firstPage', 0);
13     pageNumberForElementShouldBe('secondPage', 1);
14     pageNumberForElementShouldBe('thirdPage', 2);
15     pageNumberForElementShouldBe('thirdPage2', 2);
17     document.body.removeChild(document.getElementById("sandbox"));
20 var successfullyParsed = true;