1 var referenceResult
= 0;
2 var referenceResult2
= 0;
3 var referenceIntermediateFunction
= 0;
4 var isDRT
= window
.testRunner
&& window
.internals
&& window
.internals
.numberOfScrollableAreas
;
6 function runTest(firstResult
, intermediateFunction
, secondResult
)
9 testRunner
.waitUntilDone();
10 testRunner
.dumpAsText();
13 referenceResult
= firstResult
;
14 if (intermediateFunction
) {
15 referenceIntermediateFunction
= intermediateFunction
;
16 referenceResult2
= secondResult
;
26 result
= internals
.numberOfScrollableAreas(document
);
27 shouldBeTrue(stringify(result
== referenceResult
));
28 if (referenceIntermediateFunction
) {
29 referenceIntermediateFunction();
30 result
= internals
.numberOfScrollableAreas(document
);
31 shouldBeTrue(stringify(result
== referenceResult2
));
34 testRunner
.notifyDone();
38 if (referenceIntermediateFunction
)
39 referenceIntermediateFunction();