Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / edit / shadow-dom-modify-chardata.html
blob1172642a02e7b4f6e958072f250d8c0eb2e03ee6
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/elements-test.js"></script>
5 <script>
7 function typeText()
9 var input = document.getElementById("input1");
10 input.focus();
11 eventSender.keyDown("B");
12 eventSender.keyDown("a");
13 eventSender.keyDown("r");
16 function test()
18 var containerNode;
19 WebInspector.settingForTest("showUAShadowDOM").set(true);
20 InspectorTest.runTestSuite([
21 function testDumpInitial(next)
23 function callback(node)
25 containerNode = InspectorTest.expandedNodeWithId("container");
26 InspectorTest.addResult("========= Original ========");
27 InspectorTest.dumpElementsTree(containerNode);
28 next();
30 InspectorTest.expandElementsTree(callback);
33 function testAppend(next)
35 InspectorTest.evaluateInPage("typeText()", callback);
37 function callback()
39 InspectorTest.addResult("======== Type text =========");
40 InspectorTest.dumpElementsTree(containerNode);
41 next();
44 ]);
47 </script>
48 </head>
50 <body onload="runTest()">
51 <p>
52 Tests that elements panel updates shadow dom tree structure upon typing.
53 </p>
55 <div id="container"><input type="text" id="input1"></div>
57 </body>
58 </html>