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

Unified Diff: LayoutTests/fast/frames/seamless/seamless-sandbox-flag.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-sandbox-flag.html
diff --git a/LayoutTests/fast/frames/seamless/seamless-sandbox-flag.html b/LayoutTests/fast/frames/seamless/seamless-sandbox-flag.html
deleted file mode 100644
index c5d2d3c042c7ac40bbec15f9f756acfaa9dafabb..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/frames/seamless/seamless-sandbox-flag.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<script src="../../../resources/js-test.js"></script>
-<div id="parent" style="width: 200px; height: 200px;">
-<iframe id="iframe" seamless sandbox="allow-same-origin" src="resources/nested-seamless.html"></iframe>
-</div>
-<script>
-debug("Test that sandbox disables nested seamless iframes correctly.")
-window.onload = function () {
- window.iframe = document.getElementById("iframe");
- shouldBeTrue("iframe.seamless");
-
- // The nested iframe is also "seamless", but the seamless-ness should be disabled by the sandbox.
- window.nestedFrame = iframe.contentDocument.getElementById("iframe");
- shouldBeTrue("nestedFrame.seamless");
- // Even though it's prevented from actually being seamless, it should get the seamless styling from html.css.
- shouldBeEqualToString("window.getComputedStyle(iframe).display", "block");
- shouldBeEqualToString("window.getComputedStyle(iframe).borderWidth", "0px");
- shouldBeEqualToString("window.getComputedStyle(iframe).borderStyle", "none");
-
- // The sandboxed iframe is still seamless, but the iframe inside it is not and
- // thus 300x150. Thus the sandboxed iframe should be the width of its parent,
- // but the height of its iframe child (which is intrinsicly 150px).
- shouldBeEqualToString("window.getComputedStyle(iframe).width", "200px");
- shouldBeEqualToString("window.getComputedStyle(iframe).height", "150px");
-}
-</script>

Powered by Google App Engine
This is Rietveld 408576698