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

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

Issue 427563002: Remove HTMLFrameElement.width/height (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix tests Created 6 years, 4 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 4
5 function log(s) 5 function log(s)
6 { 6 {
7 if (window.testRunner) 7 if (window.testRunner)
8 alert(s); 8 alert(s);
9 else 9 else
10 logger.document.write('<p>' + s + '</p>'); 10 logger.document.write('<p>' + s + '</p>');
(...skipping 17 matching lines...) Expand all
28 <frameset rows="250, *"> 28 <frameset rows="250, *">
29 <frameset cols="*, 250"> 29 <frameset cols="*, 250">
30 <frame name="logger"> 30 <frame name="logger">
31 <frame 31 <frame
32 name="frame" 32 name="frame"
33 src="javascript: 33 src="javascript:
34 top.log('This page tests whether an iframe correctly reports renderer-de pendent values ' + 34 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 ' + 35 'when executing a javascript: load. If the test passes, you\'ll see a series of ' +
36 '\'PASS\' messages below.\n' 36 '\'PASS\' messages below.\n'
37 ); 37 );
38 top.shouldBe('frame.frameElement.width', 250); 38 top.shouldBe('frame.frameElement.getBoundingClientRect().width', 250);
39 top.shouldBe('frame.frameElement.clientWidth', 250); 39 top.shouldBe('frame.frameElement.clientWidth', 250);
40 top.shouldBe('frame.frameElement.height', 250); 40 top.shouldBe('frame.frameElement.getBoundingClientRect().height', 250);
41 top.shouldBe('frame.frameElement.clientHeight', 250); 41 top.shouldBe('frame.frameElement.clientHeight', 250);
42 " 42 "
43 > 43 >
44 </frameset> 44 </frameset>
45 </frameset> 45 </frameset>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698