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

Side by Side Diff: LayoutTests/inspector/editor/text-editor-search-replace.html

Issue 232133008: DevTools: Make replace checkbox id in SearchableView unique. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Source/devtools/front_end/SearchableView.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/debugger-test.js"></script> 4 <script src="../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../debugger/resources/edit-me.js"></script> 5 <script src="../debugger/resources/edit-me.js"></script>
6 6
7 <script> 7 <script>
8 8
9 function test() 9 function test()
10 { 10 {
11 var textEditor; 11 var textEditor;
12 var panel = WebInspector.inspectorView.showPanel("sources"); 12 var panel = WebInspector.inspectorView.showPanel("sources");
13 InspectorTest.showScriptSource("edit-me.js", didShowScriptSource); 13 InspectorTest.showScriptSource("edit-me.js", didShowScriptSource);
14 14
15 function showReplaceField() 15 function showReplaceField()
16 { 16 {
17 WebInspector.panels.sources.searchableView().showSearchField(); 17 var searchableView = WebInspector.panels.sources.searchableView();
18 document.getElementById("search-replace-trigger").click(); 18 searchableView.showSearchField();
19 searchableView._replaceCheckboxElement.click();
19 } 20 }
20 21
21 function runReplaceAll(searchValue, replaceValue) 22 function runReplaceAll(searchValue, replaceValue)
22 { 23 {
23 panel.searchableView()._searchInputElement.value = searchValue; 24 panel.searchableView()._searchInputElement.value = searchValue;
24 panel.searchableView()._replaceInputElement.value = replaceValue; 25 panel.searchableView()._replaceInputElement.value = replaceValue;
25 panel.searchableView()._replaceAll(); 26 panel.searchableView()._replaceAll();
26 } 27 }
27 28
28 function dumpTextEditor(message) 29 function dumpTextEditor(message)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 61
61 </script> 62 </script>
62 63
63 </head> 64 </head>
64 65
65 <body onload="runTest()"> 66 <body onload="runTest()">
66 <p>Tests the search replace functionality.</p> 67 <p>Tests the search replace functionality.</p>
67 68
68 </body> 69 </body>
69 </html> 70 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/SearchableView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698