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

Side by Side Diff: LayoutTests/fast/frames/seamless/seamless-document-write.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 <html>
3 <head>
4 <style>
5 .red { color: red; }
6 </style>
7 <script src="../../../resources/js-test.js"></script>
8 <script>
9 function writeToFrame(html) {
10 var frame = document.querySelector('iframe');
11 var iframeDoc = frame.contentWindow.document;
12 iframeDoc.open();
13 iframeDoc.write(html);
14 iframeDoc.close();
15 }
16
17 window.onload = function () {
18 debug("This test ensures that content written into a seamless iframe correctly inherits style.");
19
20 writeToFrame('<div class=\"red\">Text.</div>');
21 window.framedElement = document.querySelector('iframe').contentDocum ent.querySelector('div');
22
23 shouldBeEqualToString("window.getComputedStyle(framedElement).getPro pertyCSSValue('color').cssText", "rgb(255, 0, 0)");
24 };
25 </script>
26 </head>
27 <body>
28 <iframe seamless></iframe>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698