Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / loader / inherit-charset-to-empty-frame.html
blob55dff397e262ed2b07ce526895a1b0e9182a17e0
1 <html>
2 <head>
3 <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
4 </head>
5 <body onload="test()">
6 <p>Test that a programmatically created empty iframe inherits charset from the parent.
7 <p id=result>
8 <script type="text/javascript">
9 if (window.testRunner)
10 testRunner.dumpAsText();
12 function createEmptyIframe() {
13 if (!document.getElementById('containerName')) {
14 var iframe = document.createElement('IFRAME');
15 iframe.setAttribute("id", 'containerName');
16 iframe.setAttribute("name", 'containerName');
17 iframe.setAttribute("src", "");
18 iframe.style.width = '500px';
19 iframe.style.height = '100px';
20 document.body.appendChild( iframe );
24 function test() {
25 createEmptyIframe();
26 var iframeCharset = document.getElementById('containerName').contentDocument.characterSet;
27 document.getElementById("result").innerHTML =
28 iframeCharset == "UTF-8" ? "<p>SUCCESS</p>" : "<p>FAILURE: " + iframeCharset + "</p>";
30 </script>
31 </body>
32 </html>