Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / loader / data-url-encoding-svg.html
blob25282191911bdca7b6be9d8dc46b4ae712bcab05
1 <meta charset="koi8-r">
2 <body onload="test()">
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 function result(i) {
8 return window.frames[i].document.documentElement.getAttribute("test");
11 function test() {
12 document.getElementById("result").innerHTML = "1. " + (result(0) == "ðÒÏ×ÅÒËÁ" ? "SUCCESS" : "FAILURE: " + result(0)) + ".\r";
13 document.getElementById("result").innerHTML += "2. " + (result(1) == "ðÒÏ×ÅÒËÁ" ? "SUCCESS" : "FAILURE: " + result(1)) + ".\r";
14 document.getElementById("result").innerHTML += "3. " + (result(2) == "ðÒÏ×ÅÒËÁ" ? "SUCCESS" : "FAILURE: " + result(2)) + ".\r";
16 </script>
17 <p>Test that non-ASCII data: URLs are handled correctly.</p>
18 <pre id=result></pre>
19 <iframe src="data:image/svg+xml;charset=utf-8,<svg xmlns=%22http://www.w3.org/2000/svg%22 test='ðÒÏ×ÅÒËÁ'></svg>"></iframe>
20 <iframe src="data:image/svg+xml;charset=utf-8,<svg xmlns=%22http://www.w3.org/2000/svg%22 foo='#' test='ðÒÏ×ÅÒËÁ'></svg>"></iframe>
21 <iframe src="data:image/svg+xml;charset=utf-8,<svg xmlns=%22http://www.w3.org/2000/svg%22 foo='#' test='%D0%9F%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D0%BA%D0%B0'></svg>"></iframe>
22 </body>