| OLD | NEW |
| 1 <html xmlns="http://www.w3.org/1999/xhtml"> | 1 <html id="html" xmlns="http://www.w3.org/1999/xhtml"> |
| 2 <head> | 2 <head> |
| 3 | 3 |
| 4 <script src="../../http/tests/inspector/inspector-test.js"></script> | 4 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 5 <script src="../../http/tests/inspector/elements-test.js"></script> | 5 <script src="../../http/tests/inspector/elements-test.js"></script> |
| 6 <script src="set-outer-html-test.js"></script> | 6 <script src="set-outer-html-test.js"></script> |
| 7 <script> | 7 <script> |
| 8 //<![CDATA[ | 8 //<![CDATA[ |
| 9 | 9 |
| 10 function onload() | 10 function onload() |
| 11 { | 11 { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 37 }, | 37 }, |
| 38 | 38 |
| 39 function testSplitNode(next) | 39 function testSplitNode(next) |
| 40 { | 40 { |
| 41 InspectorTest.patchOuterHTML("Getting involved", "Getting</h2><h2>in
volved", next); | 41 InspectorTest.patchOuterHTML("Getting involved", "Getting</h2><h2>in
volved", next); |
| 42 }, | 42 }, |
| 43 | 43 |
| 44 function testChangeNodeName(next) | 44 function testChangeNodeName(next) |
| 45 { | 45 { |
| 46 InspectorTest.patchOuterHTML("<h2>Getting involved</h2>", "<h3>Getti
ng involved</h3>", next); | 46 InspectorTest.patchOuterHTML("<h2>Getting involved</h2>", "<h3>Getti
ng involved</h3>", next); |
| 47 }, |
| 48 |
| 49 function testInvalidDocumentDoesNotCrash(next) |
| 50 { |
| 51 var htmlId = InspectorTest.expandedNodeWithId("html").id; |
| 52 DOMAgent.setOuterHTML(htmlId, "foo", callback); |
| 53 |
| 54 function callback() |
| 55 { |
| 56 InspectorTest.addResult("PASS: No crash"); |
| 57 next(); |
| 58 } |
| 47 } | 59 } |
| 48 ]); | 60 ]); |
| 49 } | 61 } |
| 50 //]]> | 62 //]]> |
| 51 </script> | 63 </script> |
| 52 </head> | 64 </head> |
| 53 | 65 |
| 54 <body onload="onload()"> | 66 <body onload="onload()"> |
| 55 <p> | 67 <p> |
| 56 Tests DOMAgent.setOuterHTML protocol method against an XHTML document. | 68 Tests DOMAgent.setOuterHTML protocol method against an XHTML document. |
| 57 </p> | 69 </p> |
| 58 | 70 |
| 59 <div id="container" style="display:none"> | 71 <div id="container" style="display:none"> |
| 60 <p>WebKit is used by <a href="http://www.apple.com/safari/">Safari</a>, Dashboar
d, etc.</p> | 72 <p>WebKit is used by <a href="http://www.apple.com/safari/">Safari</a>, Dashboar
d, etc.</p> |
| 61 <h2>Getting involved</h2> | 73 <h2>Getting involved</h2> |
| 62 <p id="identity">There are many ways to get involved. You can:</p> | 74 <p id="identity">There are many ways to get involved. You can:</p> |
| 63 </div> | 75 </div> |
| 64 | 76 |
| 65 </body> | 77 </body> |
| 66 </html> | 78 </html> |
| OLD | NEW |