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

Side by Side Diff: LayoutTests/http/tests/inspector/search/source-frame-search.html

Issue 722713002: DevTools: get rid of getters and setters in StatusBarButton. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector/timeline-test.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="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script src="../debugger-test.js"></script> 4 <script src="../debugger-test.js"></script>
5 <script src="../sources-test.js"></script> 5 <script src="../sources-test.js"></script>
6 <script src="resources/search.js"></script> 6 <script src="resources/search.js"></script>
7 <script> 7 <script>
8 function test() 8 function test()
9 { 9 {
10 function dumpSearchResultsForConfig(sourceFrame, searchConfig, callback) 10 function dumpSearchResultsForConfig(sourceFrame, searchConfig, callback)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 InspectorTest.addResult("Running replace test for /" + searchConfig.quer y + "/" + replacement + "/ " + modifiersString + ":"); 49 InspectorTest.addResult("Running replace test for /" + searchConfig.quer y + "/" + replacement + "/ " + modifiersString + ":");
50 50
51 editor = sourceFrame._textEditor; 51 editor = sourceFrame._textEditor;
52 var oldLines = []; 52 var oldLines = [];
53 for (var i = 0; i < editor.linesCount; ++i) 53 for (var i = 0; i < editor.linesCount; ++i)
54 oldLines.push(editor.line(i)); 54 oldLines.push(editor.line(i));
55 var searchableView = WebInspector.panels.sources.sourcesView().searchabl eView(); 55 var searchableView = WebInspector.panels.sources.sourcesView().searchabl eView();
56 searchableView.showSearchField(); 56 searchableView.showSearchField();
57 57
58 searchableView._caseSensitiveButton.toggled = searchConfig.caseSensitive ; 58 searchableView._caseSensitiveButton.setToggled(searchConfig.caseSensitiv e);
59 searchableView._regexButton.toggled = searchConfig.isRegex; 59 searchableView._regexButton.setToggled(searchConfig.isRegex);
60 searchableView._searchInputElement.value = searchConfig.query; 60 searchableView._searchInputElement.value = searchConfig.query;
61 searchableView._replaceCheckboxElement.checked = true; 61 searchableView._replaceCheckboxElement.checked = true;
62 searchableView._updateSecondRowVisibility(); 62 searchableView._updateSecondRowVisibility();
63 searchableView._replaceInputElement.value = replacement; 63 searchableView._replaceInputElement.value = replacement;
64 searchableView._performSearch(true, true); 64 searchableView._performSearch(true, true);
65 if (replaceAll) 65 if (replaceAll)
66 searchableView._replaceAll() 66 searchableView._replaceAll()
67 else 67 else
68 searchableView._replace(); 68 searchableView._replace();
69 69
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 ]); 165 ]);
166 } 166 }
167 }; 167 };
168 </script> 168 </script>
169 </head> 169 </head>
170 <body onload="runTest()"> 170 <body onload="runTest()">
171 <p>Tests different types of search in SourceFrame</p> 171 <p>Tests different types of search in SourceFrame</p>
172 </body> 172 </body>
173 </html> 173 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector/timeline-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698