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

Unified Diff: LayoutTests/fast/frames/frame-deep-nested-resize.html

Issue 427563002: Remove HTMLFrameElement.width/height (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix tests Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/frames/frame-inherit-noresize-from-frameset-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/frames/frame-deep-nested-resize.html
diff --git a/LayoutTests/fast/frames/frame-deep-nested-resize.html b/LayoutTests/fast/frames/frame-deep-nested-resize.html
index 1830c54927d528c3061b51e159db62179d824808..4abfa1de15629aad99d3f346d58bad4689a13c55 100644
--- a/LayoutTests/fast/frames/frame-deep-nested-resize.html
+++ b/LayoutTests/fast/frames/frame-deep-nested-resize.html
@@ -12,9 +12,10 @@
if (success)
frame.document.write('<p>Success!</p>');
else {
+ var rect = frame.frameElement.getBoundingClientRect();
frame.document.write('<p>Resize until ');
frame.document.write(isWidth ? 'width:' : 'height:');
- frame.document.write(isWidth ? frame.frameElement.width : frame.frameElement.height);
+ frame.document.write(isWidth ? rect.width : rect.height);
frame.document.write(' = ' + size + '</p>');
}
}
@@ -75,14 +76,14 @@
}
}
function checkSuccess() {
- log(One, One.frameElement.width == 100, true, 100)
- log(Two, Two.frameElement.height == 80, false, 80)
- log(Three, Three.frameElement.height == 50, false, 50)
- log(Four, Four.frameElement.height == 143, false, 143)
- log(Five, Five.frameElement.height == 111, false, 111)
- log(Six, Six.frameElement.height == 192, false, 192)
- log(Seven, Seven.frameElement.width == 100, true, 100)
- log(Eight, Eight.frameElement.width == 100, true, 100)
+ log(One, One.frameElement.getBoundingClientRect().width == 100, true, 100)
+ log(Two, Two.frameElement.getBoundingClientRect().height == 80, false, 80)
+ log(Three, Three.frameElement.getBoundingClientRect().height == 50, false, 50)
+ log(Four, Four.frameElement.getBoundingClientRect().height == 143, false, 143)
+ log(Five, Five.frameElement.getBoundingClientRect().height == 111, false, 111)
+ log(Six, Six.frameElement.getBoundingClientRect().height == 192, false, 192)
+ log(Seven, Seven.frameElement.getBoundingClientRect().width == 100, true, 100)
+ log(Eight, Eight.frameElement.getBoundingClientRect().width == 100, true, 100)
}
window.onload = init;
« no previous file with comments | « no previous file | LayoutTests/fast/frames/frame-inherit-noresize-from-frameset-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698