Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / innerHTML / innerHTML-nbsp.xhtml
blobb764e6ac76e0a00b23822ba39e5e77326fbfa94b
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <body>
4 <div id="description">This test checks to see if setting innerHTML to a single non-breaking space works.</div>
5 <div id="test" style="display:none"></div>
6 <div id="console"></div>
8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
12 function log(message) {
13 var console = document.getElementById("console");
14 console.appendChild(document.createTextNode(message));
15 console.appendChild(document.createElement('br'));
18 var html = "\u00A0";
19 var testElement = document.getElementById("test");
20 try {
21 testElement.innerHTML = html;
22 } catch(e) {
23 log("FAIL, exception thrown: " + e);
26 if (html == testElement.innerHTML)
27 log("PASSED");
28 else {
29 log("FAIL, expected: " + html + " actual: " + testElement.innerHTML);
31 </script>
32 </body>
33 </html>