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

Unified 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, 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
Index: LayoutTests/fast/frames/frameElement-widthheight.html
diff --git a/LayoutTests/fast/frames/frameElement-widthheight.html b/LayoutTests/fast/frames/frameElement-widthheight.html
deleted file mode 100644
index ebace26f12ea95672726a5237e5247c016e95e7e..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/frames/frameElement-widthheight.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<html>
-<head>
-<title>frameElement.width, frameElement.height</title>
-
- <frameset id="frameset" border="1" cols="50%,25%,25%" style='border: solid 1px;'>
- <frame name="frame2" src="about:blank">
- <frame name="frame1" src="javascript:
- function log(s)
- {
- if (window.testRunner)
- alert(s);
- else
- top.frame1.document.write('<p>' + s + '</p>');
- }
-
- if (window.testRunner)
- testRunner.dumpAsText();
-
- top.frame1.document.write('<p>Test for the presence of frameElement.width and frameElement.height <a href=\'https://bugs.webkit.org/show_bug.cgi?id=6402\'>(bug 6402)</a></p>');
-
- try {
- if (typeof(window.frameElement.width) != 'number' || typeof(window.frameElement.height) != 'number') {
- log('Incorrect type: ' + typeof(window.frameElement.width) + ', ' + typeof(window.frameElement.height));
- throw '';
- }
-
- ref = top.frame2.frameElement;
- top.frameset.removeChild(top.frame2.frameElement);
- if (ref.width != 0 || ref.height != 0) {
- log('Incorrect deleted frame size: ' + ref.width + 'x' + ref.height);
- throw '';
- }
-
- if (window.frameElement.width != 399 || window.frameElement.height != 600)
- log('Frame size: ' + window.frameElement.width + 'x' + window.frameElement.height);
- else
- log('Success');
-
- } catch (e) {
- if (e.description)
- log(e.description);
- }
- ">
- <frame name="frame3" src="about:blank">
- </frameset>
-</html>

Powered by Google App Engine
This is Rietveld 408576698