Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: LayoutTests/inspector/elements/shadow-dom-modify-chardata.html

Issue 16561003: DevTools: Inspect element mode does not select element in ShadowDOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script> 4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <script> 5 <script>
6 6
7 function typeText() 7 function typeText()
8 { 8 {
9 var input = document.getElementById("input1"); 9 var input = document.getElementById("input1");
10 input.focus(); 10 input.focus();
(...skipping 16 matching lines...) Expand all
27 containerNode = InspectorTest.expandedNodeWithId("container"); 27 containerNode = InspectorTest.expandedNodeWithId("container");
28 InspectorTest.addResult("========= Original ========"); 28 InspectorTest.addResult("========= Original ========");
29 InspectorTest.dumpElementsTree(containerNode); 29 InspectorTest.dumpElementsTree(containerNode);
30 next(); 30 next();
31 } 31 }
32 InspectorTest.expandElementsTree(callback); 32 InspectorTest.expandElementsTree(callback);
33 }, 33 },
34 34
35 function testAppend(next) 35 function testAppend(next)
36 { 36 {
37 InspectorTest.evaluateInPage("typeText()", callback);
38
37 function callback() 39 function callback()
38 { 40 {
39 InspectorTest.evaluateInPage("typeText()", callback2);
40
41 }
42 function callback2()
43 {
44 InspectorTest.addResult("======== Type text ========="); 41 InspectorTest.addResult("======== Type text =========");
45 InspectorTest.dumpElementsTree(containerNode); 42 InspectorTest.dumpElementsTree(containerNode);
46 next(); 43 next();
47 } 44 }
48 InspectorTest.expandElementsTree(callback);
49 } 45 }
50 ]); 46 ]);
51 } 47 }
52 48
53 </script> 49 </script>
54 </head> 50 </head>
55 51
56 <body onload="runTest()"> 52 <body onload="runTest()">
57 <p> 53 <p>
58 Tests that elements panel updates shadow dom tree structure upon typing. 54 Tests that elements panel updates shadow dom tree structure upon typing.
59 </p> 55 </p>
60 56
61 <div id="container"><input type="text" id="input1"></div> 57 <div id="container"><input type="text" id="input1"></div>
62 58
63 </body> 59 </body>
64 </html> 60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698