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>
11 document
.getElementById("identity").wrapperIdentity
= "identity";
17 InspectorTest
.runTestSuite([
18 function testSetUp(next
)
20 InspectorTest
.setUpTestSuite(next
);
23 function testChangeCharacterData(next
)
25 InspectorTest
.patchOuterHTML("Getting involved", "Getting not involved", next
);
28 function testChangeAttributes(next
)
30 InspectorTest
.patchOuterHTML("<a href", "<a foo=\"bar\" href", next
);
33 function testRemoveLastChild(next
)
35 InspectorTest
.patchOuterHTML("Getting involved", "", next
);
38 function testSplitNode(next
)
40 InspectorTest
.patchOuterHTML("Getting involved", "Getting</h2><h2>involved", next
);
43 function testChangeNodeName(next
)
45 InspectorTest
.patchOuterHTML("<h2>Getting involved</h2>", "<h3>Getting involved</h3>", next
);
52 <body onload=
"onload()">
54 Tests DOMAgent.setOuterHTML protocol method.
57 <div id=
"container" style=
"display:none">
58 <p>WebKit is used by
<a href=
"http://www.apple.com/safari/">Safari
</a>, Dashboard, etc.
</a>.
</p>
59 <h2>Getting involved
</h2>
60 <p id=
"identity">There are many ways to get involved. You can:
</p>