| document.getElementById('console').appendChild(document.createTextNode(s)); |
| evalA = 'Caught exception: ' + e; |
| log('PASS: ' + a + ' should be ' + b + ' and is.\n'); |
| log('FAIL: ' + a + ' should be ' + b + ' but instead is ' + evalA + '.\n'); |
| This page tests whether an iframe correctly reports renderer-dependent values |
| when executing a javascript: load. If the test passes, you'll see a series of |
| style="width: 250px; height: 250px; border: 1px solid black; background-color:red;" |
| top.shouldBe('iframe.frameElement.clientWidth', 250); |
| top.shouldBe('iframe.frameElement.clientHeight', 250); |