3 testRunner
.dumpAsText();
7 document
.getElementById('console').appendChild(document
.createTextNode(s
));
10 function shouldBe(a
, b
)
16 evalA
= 'Caught exception: ' + e
;
20 log('PASS: ' + a
+ ' should be ' + b
+ ' and is.\n');
22 log('FAIL: ' + a
+ ' should be ' + b
+ ' but instead is ' + evalA
+ '.\n');
26 This page tests whether an iframe correctly reports renderer-dependent values
27 when executing a javascript: load. If the test passes, you'll see a series of
28 'PASS' messages below.
31 <pre id=
"console"></pre>
34 style=
"width: 250px; height: 250px; border: 1px solid black; background-color:red;"
36 top.shouldBe('iframe.frameElement.clientWidth', 250);
37 top.shouldBe('iframe.frameElement.clientHeight', 250);