1 <html id=
"html" xmlns=
"http://www.w3.org/1999/xhtml">
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>
12 document
.getElementById("identity").wrapperIdentity
= "identity";
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
);
56 InspectorTest
.addResult("PASS: No crash");
66 <body onload=
"onload()">
68 Tests DOMAgent.setOuterHTML protocol method against an XHTML document.
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>