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

Side by Side Diff: LayoutTests/fast/frames/seamless/seamless-document-write.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 .red { color: red; } 5 .red { color: red; }
6 </style> 6 </style>
7 <script src="../../js/resources/js-test-pre.js"></script> 7 <script src="../../../resources/js-test.js"></script>
8 <script> 8 <script>
9 function writeToFrame(html) { 9 function writeToFrame(html) {
10 var frame = document.querySelector('iframe'); 10 var frame = document.querySelector('iframe');
11 var iframeDoc = frame.contentWindow.document; 11 var iframeDoc = frame.contentWindow.document;
12 iframeDoc.open(); 12 iframeDoc.open();
13 iframeDoc.write(html); 13 iframeDoc.write(html);
14 iframeDoc.close(); 14 iframeDoc.close();
15 } 15 }
16 16
17 window.onload = function () { 17 window.onload = function () {
18 debug("This test ensures that content written into a seamless iframe correctly inherits style."); 18 debug("This test ensures that content written into a seamless iframe correctly inherits style.");
19 19
20 writeToFrame('<div class=\"red\">Text.</div>'); 20 writeToFrame('<div class=\"red\">Text.</div>');
21 window.framedElement = document.querySelector('iframe').contentDocum ent.querySelector('div'); 21 window.framedElement = document.querySelector('iframe').contentDocum ent.querySelector('div');
22 22
23 shouldBeEqualToString("window.getComputedStyle(framedElement).getPro pertyCSSValue('color').cssText", "rgb(255, 0, 0)"); 23 shouldBeEqualToString("window.getComputedStyle(framedElement).getPro pertyCSSValue('color').cssText", "rgb(255, 0, 0)");
24 }; 24 };
25 </script> 25 </script>
26 </head> 26 </head>
27 <body> 27 <body>
28 <iframe seamless></iframe> 28 <iframe seamless></iframe>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/frames/seamless/seamless-designMode.html ('k') | LayoutTests/fast/frames/seamless/seamless-float.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698