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

Side by Side Diff: LayoutTests/inspector/elements/elements-panel-search.html

Issue 640953004: DevTools: Fix elements panel search in shadow host. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/elements-panel-search-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or g/TR/html4/loose.dtd"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or g/TR/html4/loose.dtd">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../http/tests/inspector/inspector-test.js"></script> 4 <script src="../../http/tests/inspector/inspector-test.js"></script>
5 <script> 5 <script>
6 function initializeShadowDOM() 6 function initializeShadowDOM()
7 { 7 {
8 var shadow = document.querySelector('#shadow-host').createShadowRoot(); 8 var shadow = document.querySelector('#shadow-host').createShadowRoot();
9 var template = document.querySelector('#shadow-dom-template'); 9 var template = document.querySelector('#shadow-dom-template');
10 10
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 function testSearchUAShadowDOM(next) 150 function testSearchUAShadowDOM(next)
151 { 151 {
152 InspectorTest.addResult("Searching UA shadow DOM with setting disabl ed:") 152 InspectorTest.addResult("Searching UA shadow DOM with setting disabl ed:")
153 WebInspector.domModel.performSearch("inne" + "r-editor", false, sear chCallback.bind(this, step2)); 153 WebInspector.domModel.performSearch("inne" + "r-editor", false, sear chCallback.bind(this, step2));
154 154
155 function step2() 155 function step2()
156 { 156 {
157 InspectorTest.addResult("Searching UA shadow DOM with setting en abled:") 157 InspectorTest.addResult("Searching UA shadow DOM with setting en abled:")
158 WebInspector.domModel.performSearch("inne" + "r-editor", true, s earchCallback.bind(this, next)); 158 WebInspector.domModel.performSearch("inne" + "r-editor", true, s earchCallback.bind(this, next));
159 } 159 }
160 } 160 },
161
162 function testSearchShadowHostChildren(next)
163 {
164 WebInspector.domModel.performSearch("shadow-host-c" + "ontent", fals e, searchCallback.bind(this, next));
165 },
161 ]); 166 ]);
162 167
163 } 168 }
164 </script> 169 </script>
165 </head> 170 </head>
166 171
167 <body onload="runTest()"> 172 <body onload="runTest()">
168 <p> 173 <p>
169 Tests that elements panel search is returning proper results. 174 Tests that elements panel search is returning proper results.
170 </p> 175 </p>
171 176
172 <div>FooBar</div> 177 <div>FooBar</div>
173 <input value="InputVal"> 178 <input value="InputVal">
174 <div attr="foo"></div> 179 <div attr="foo"></div>
175 <div id="terminator"></div> 180 <div id="terminator"></div>
176 <div class="divclass"><span>Found by selector</span></div> 181 <div class="divclass"><span>Found by selector</span></div>
177 <span class="foo koo"></span> 182 <span class="foo koo"></span>
178 <span class="CASELESS"></span> 183 <span class="CASELESS"></span>
179 <span data-camel="insenstive"></span> 184 <span data-camel="insenstive"></span>
180 <div id="shadow-host"> 185 <div id="shadow-host">
181 <div id="shadow-root-content"></div> 186 <div id="shadow-host-content"></div>
182 </div> 187 </div>
183 <template id="shadow-dom-template"> 188 <template id="shadow-dom-template">
184 <div id="shadow-dom-outer"> 189 <div id="shadow-dom-outer">
185 <content></content> 190 <content></content>
186 </div> 191 </div>
187 </div> 192 </div>
188 </template> 193 </template>
189 <textarea></textarea> 194 <textarea></textarea>
190 195
191 </body> 196 </body>
192 </html> 197 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/elements-panel-search-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698