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

Side by Side Diff: LayoutTests/fast/frames/frameElement-widthheight.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
(Empty)
1 <html>
2 <head>
3 <title>frameElement.width, frameElement.height</title>
4
5 <frameset id="frameset" border="1" cols="50%,25%,25%" style='border: solid 1px; '>
6 <frame name="frame2" src="about:blank">
7 <frame name="frame1" src="javascript:
8 function log(s)
9 {
10 if (window.testRunner)
11 alert(s);
12 else
13 top.frame1.document.write('<p>' + s + '</p>');
14 }
15
16 if (window.testRunner)
17 testRunner.dumpAsText();
18
19 top.frame1.document.write('<p>Test for the presence of frameElement.width an d frameElement.height <a href=\'https://bugs.webkit.org/show_bug.cgi?id=6402\'>( bug 6402)</a></p>');
20
21 try {
22 if (typeof(window.frameElement.width) != 'number' || typeof(window.frameEl ement.height) != 'number') {
23 log('Incorrect type: ' + typeof(window.frameElement.width) + ', ' + type of(window.frameElement.height));
24 throw '';
25 }
26
27 ref = top.frame2.frameElement;
28 top.frameset.removeChild(top.frame2.frameElement);
29 if (ref.width != 0 || ref.height != 0) {
30 log('Incorrect deleted frame size: ' + ref.width + 'x' + ref.height);
31 throw '';
32 }
33
34 if (window.frameElement.width != 399 || window.frameElement.height != 600)
35 log('Frame size: ' + window.frameElement.width + 'x' + window.frameEleme nt.height);
36 else
37 log('Success');
38
39 } catch (e) {
40 if (e.description)
41 log(e.description);
42 }
43 ">
44 <frame name="frame3" src="about:blank">
45 </frameset>
46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698