1 description("Test for internals.pageNumber()");
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;