Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: LayoutTests/fast/frames/frame-js-url-clientWidth.html

Issue 221673003: Defer iframe JavaScript URL evaluation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <script> 1 <script>
2 if (window.testRunner) 2 if (window.testRunner) {
3 testRunner.dumpAsText(); 3 testRunner.dumpAsText();
4 testRunner.waitUntilDone();
5 }
4 6
5 function log(s) 7 function log(s)
6 { 8 {
7 if (window.testRunner) 9 if (window.testRunner)
8 alert(s); 10 alert(s);
9 else 11 else
10 logger.document.write('<p>' + s + '</p>'); 12 logger.document.write('<p>' + s + '</p>');
11 } 13 }
12 14
13 function shouldBe(a, b) 15 function shouldBe(a, b)
(...skipping 18 matching lines...) Expand all
32 name="frame" 34 name="frame"
33 src="javascript: 35 src="javascript:
34 top.log('This page tests whether an iframe correctly reports renderer-de pendent values ' + 36 top.log('This page tests whether an iframe correctly reports renderer-de pendent values ' +
35 'when executing a javascript: load. If the test passes, you\'ll see a series of ' + 37 'when executing a javascript: load. If the test passes, you\'ll see a series of ' +
36 '\'PASS\' messages below.\n' 38 '\'PASS\' messages below.\n'
37 ); 39 );
38 top.shouldBe('frame.frameElement.width', 250); 40 top.shouldBe('frame.frameElement.width', 250);
39 top.shouldBe('frame.frameElement.clientWidth', 250); 41 top.shouldBe('frame.frameElement.clientWidth', 250);
40 top.shouldBe('frame.frameElement.height', 250); 42 top.shouldBe('frame.frameElement.height', 250);
41 top.shouldBe('frame.frameElement.clientHeight', 250); 43 top.shouldBe('frame.frameElement.clientHeight', 250);
44
45 testRunner.notifyDone();
42 " 46 "
43 > 47 >
44 </frameset> 48 </frameset>
45 </frameset> 49 </frameset>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698