Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / edit / set-outer-html.html
blob1efcacaafda0e89a2175909b1f97fdc29c45cf4b
1 <html>
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>
9 function onload()
11 document.getElementById("identity").wrapperIdentity = "identity";
12 runTest();
15 function test()
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);
47 ]);
49 </script>
50 </head>
52 <body onload="onload()">
53 <p>
54 Tests DOMAgent.setOuterHTML protocol method.
55 </p>
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>
61 </div>
63 </body>
64 </html>