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

Unified Diff: LayoutTests/fast/frames/seamless/seamless-body-margin.html

Issue 138443013: Remove iframe@seamless (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Include remove tests Created 6 years, 11 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/seamless/seamless-body-margin.html
diff --git a/LayoutTests/fast/frames/seamless/seamless-body-margin.html b/LayoutTests/fast/frames/seamless/seamless-body-margin.html
deleted file mode 100644
index 0e89b85e6914053baddebb4581955195f8e49768..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/frames/seamless/seamless-body-margin.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <script src="../../../resources/js-test.js"></script>
- <script>
- window.onload = function () {
- debug("This test ensures that the 'body' element inside a seamless iframe defaults to a margin of 0px rather than 8px, and that we don't break the parent document's 'body' style in the process.");
-
- window.seamlesssrcdoc = document.getElementById('seamlesssrcdoc').contentDocument.querySelector('body');
- window.seamlesssrc = document.getElementById('seamlesssrc').contentDocument.querySelector('body');
- window.srcdoc = document.getElementById('srcdoc').contentDocument.querySelector('body');
- window.src = document.getElementById('src').contentDocument.querySelector('body');
-
- shouldBeEqualToString("window.getComputedStyle(document.body).getPropertyCSSValue('margin').cssText", "8px");
- shouldBeEqualToString("window.getComputedStyle(seamlesssrcdoc).getPropertyCSSValue('margin').cssText", "0px");
- shouldBeEqualToString("window.getComputedStyle(seamlesssrc).getPropertyCSSValue('margin').cssText", "0px");
- shouldBeEqualToString("window.getComputedStyle(srcdoc).getPropertyCSSValue('margin').cssText", "8px");
- shouldBeEqualToString("window.getComputedStyle(src).getPropertyCSSValue('margin').cssText", "8px");
- };
- </script>
-</head>
-<body>
- <iframe id="seamlesssrc" seamless src="resources/span.html"></iframe>
- <iframe id="seamlesssrcdoc" seamless srcdoc="<span>This is a span.</span>"></iframe>
- <iframe id="src" src="resources/span.html"></iframe>
- <iframe id="srcdoc" srcdoc="<span>This is a span.</span>"></iframe>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698