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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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
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 id="documentElement"> 2 <html id="documentElement">
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
11 // Avoid matching this function 11 // Avoid matching this function
12 shadow.appendChild(template.content.cloneNode(true)); 12 shadow.appendChild(template.content.cloneNode(true));
13 } 13 }
14 14
15 function test() 15 function test()
16 { 16 {
17 var omitInnerHTML; 17 var omitInnerHTML;
18 18
19 function searchCallback(next, resultCount) 19 function searchCallback(next, resultCount)
20 { 20 {
21 if (resultCount == 0) { 21 if (resultCount == 0) {
22 InspectorTest.addResult("Nothing found"); 22 InspectorTest.addResult("Nothing found");
23 WebInspector.DOMModel.cancelSearch(); 23 SDK.DOMModel.cancelSearch();
24 next(); 24 next();
25 } 25 }
26 26
27 for (var i = 0; i < resultCount; ++i) 27 for (var i = 0; i < resultCount; ++i)
28 InspectorTest.domModel.searchResult(i, searchResultCallback.bind(thi s, i + 1 === resultCount)); 28 InspectorTest.domModel.searchResult(i, searchResultCallback.bind(thi s, i + 1 === resultCount));
29 29
30 function searchResultCallback(isLastItem, node) 30 function searchResultCallback(isLastItem, node)
31 { 31 {
32 node.getOuterHTML(addSearchResult.bind(this, isLastItem)); 32 node.getOuterHTML(addSearchResult.bind(this, isLastItem));
33 } 33 }
34 34
35 function addSearchResult(isLastItem, error, markupVa_lue) 35 function addSearchResult(isLastItem, error, markupVa_lue)
36 { 36 {
37 if (omitInnerHTML) 37 if (omitInnerHTML)
38 markupVa_lue = markupVa_lue.substr(0, markupVa_lue.indexOf(">") + 1); 38 markupVa_lue = markupVa_lue.substr(0, markupVa_lue.indexOf(">") + 1);
39 InspectorTest.addResult(markupVa_lue.split("").join(" ")); 39 InspectorTest.addResult(markupVa_lue.split("").join(" "));
40 if (isLastItem) { 40 if (isLastItem) {
41 WebInspector.DOMModel.cancelSearch(); 41 SDK.DOMModel.cancelSearch();
42 next(); 42 next();
43 } 43 }
44 } 44 }
45 } 45 }
46 46
47 function setUp(next) 47 function setUp(next)
48 { 48 {
49 InspectorTest.domModel.requestDocument(step2); 49 InspectorTest.domModel.requestDocument(step2);
50 50
51 function step2() 51 function step2()
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 <template id="shadow-dom-template"> 198 <template id="shadow-dom-template">
199 <div id="shadow-dom-outer"> 199 <div id="shadow-dom-outer">
200 <content></content> 200 <content></content>
201 </div> 201 </div>
202 </div> 202 </div>
203 </template> 203 </template>
204 <textarea></textarea> 204 <textarea></textarea>
205 205
206 </body> 206 </body>
207 </html> 207 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698