6 if (!window
.testRunner
)
9 if (!window
.eventSender
)
12 if (!window
.sessionStorage
)
15 testRunner
.waitUntilDone();
16 if (sessionStorage
.testCompleted
) {
17 delete sessionStorage
.testCompleted
;
18 testRunner
.notifyDone();
20 // Note, it is sufficient to zoom-in only once, but so as to make it easier
21 // for a human to compare the pixel test results we zoom-in up to Safari's
22 // maximum zoom level, which at the time of writing (09/17/2010) is 6.
25 for (var i
= 0; i
< MaxZoomIn
; ++i
)
26 eventSender
.zoomPageIn();
27 sessionStorage
.testCompleted
= true;
28 document
.location
.reload(true);
32 window
.onload
= runTest
;
36 <p>This test ensures that we preserve the user-specified zoom level of the page on reload.
</p>