Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / edit / set-outer-html-for-xhtml.xhtml
blob232c45f38cae80a673acf448c8f4bc5c8a87aaac
1 <html id="html" xmlns="http://www.w3.org/1999/xhtml">
2 <head>
4 <script src="../../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../../http/tests/inspector/elements-test.js"></script>
6 <script src="set-outer-html-test.js"></script>
7 <script>
8 //<![CDATA[
10 function onload()
12 document.getElementById("identity").wrapperIdentity = "identity";
13 runTest();
16 function test()
18 InspectorTest.runTestSuite([
19 function testSetUp(next)
21 InspectorTest.setUpTestSuite(next);
24 function testChangeCharacterData(next)
26 InspectorTest.patchOuterHTML("Getting involved", "Getting not involved", next);
29 function testChangeAttributes(next)
31 InspectorTest.patchOuterHTML("<a href", "<a foo=\"bar\" href", next);
34 function testRemoveLastChild(next)
36 InspectorTest.patchOuterHTML("Getting involved", "", next);
39 function testSplitNode(next)
41 InspectorTest.patchOuterHTML("Getting involved", "Getting</h2><h2>involved", next);
44 function testChangeNodeName(next)
46 InspectorTest.patchOuterHTML("<h2>Getting involved</h2>", "<h3>Getting involved</h3>", next);
49 function testInvalidDocumentDoesNotCrash(next)
51 var htmlId = InspectorTest.expandedNodeWithId("html").id;
52 InspectorTest.DOMAgent.setOuterHTML(htmlId, "foo", callback);
54 function callback()
56 InspectorTest.addResult("PASS: No crash");
57 next();
60 ]);
62 //]]>
63 </script>
64 </head>
66 <body onload="onload()">
67 <p>
68 Tests DOMAgent.setOuterHTML protocol method against an XHTML document.
69 </p>
71 <div id="container" style="display:none">
72 <p>WebKit is used by <a href="http://www.apple.com/safari/">Safari</a>, Dashboard, etc.</p>
73 <h2>Getting involved</h2>
74 <p id="identity">There are many ways to get involved. You can:</p>
75 </div>
77 </body>
78 </html>