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

Side by Side Diff: LayoutTests/http/tests/security/seamless/seamless-sandbox-srcdoc.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="/js-test-resources/js-test.js"></script>
3 <div id="parent" style="width: 200px; height: 200px;">
4 <iframe id="iframe" seamless sandbox srcdoc="<html style='width: 100px; height: 100px; background-color: green'></html>"></iframe>
5 </div>
6 <script>
7 window.onload = function () {
8 window.iframe = document.getElementById("iframe");
9 shouldBeTrue("iframe.seamless");
10 // When an iframe is sandboxed, its origin is unique, thus seamless check
11 // should fail, but the spec makes a specific exception for srcdoc iframes.
12 shouldBeEqualToString("window.getComputedStyle(iframe).width", "200px");
13 shouldBeEqualToString("window.getComputedStyle(iframe).height", "100px");
14 }
15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698