Changeset 140314 in webkit
- Timestamp:
- Jan 21, 2013 1:53:19 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r140313 r140314 1 2013-01-21 Andrey Lushnikov <lushnikov@chromium.org> 2 3 Web Inspector: refactoring to use string as argument for highlightRegex API 4 https://bugs.webkit.org/show_bug.cgi?id=107243 5 6 Reviewed by Pavel Feldman. 7 8 Correct test to correspond to refactoring changes. 9 10 * inspector/editor/text-editor-highlight-regexp.html: 11 1 12 2013-01-21 Sheriff Bot <webkit.review.bot@gmail.com> 2 13 -
trunk/LayoutTests/inspector/editor/text-editor-highlight-regexp.html
r139881 r140314 22 22 InspectorTest.addResult("\nBefore highlight"); 23 23 InspectorTest.dumpEditorHTML(textEditor, true); 24 textEditor.highlightRegex( /foo_./, "some-css-class");24 textEditor.highlightRegex("foo_.", "some-css-class"); 25 25 InspectorTest.addResult("\nAdd highlight for regexp /foo_./"); 26 26 InspectorTest.dumpEditorHTML(textEditor, true); 27 27 InspectorTest.addResult("\nRemove highlight for regexp /foo_./"); 28 textEditor.removeRegexHighlight( /foo_./);28 textEditor.removeRegexHighlight("foo_."); 29 29 InspectorTest.dumpEditorHTML(textEditor, true); 30 30 next(); -
trunk/Source/WebCore/ChangeLog
r140313 r140314 1 2013-01-21 Andrey Lushnikov <lushnikov@chromium.org> 2 3 Web Inspector: refactoring to use string as argument for highlightRegex API 4 https://bugs.webkit.org/show_bug.cgi?id=107243 5 6 Reviewed by Pavel Feldman. 7 8 Use string as argument for highlightRegex API instead of using regex object. 9 10 No new tests: no change in behaviour. 11 12 * inspector/front-end/DefaultTextEditor.js: 13 (WebInspector.TextEditorMainPanel.prototype.highlightRegex): 14 * inspector/front-end/TextEditor.js: 15 1 16 2013-01-21 Sheriff Bot <webkit.review.bot@gmail.com> 2 17 -
trunk/Source/WebCore/inspector/front-end/DefaultTextEditor.js
r139980 r140314 111 111 WebInspector.DefaultTextEditor.prototype = { 112 112 /** 113 * @param { RegExp} regex113 * @param {string} regex 114 114 * @param {string} cssClass 115 115 */ … … 120 120 121 121 /** 122 * @param { RegExp} regex122 * @param {string} regex 123 123 * @return {boolean} 124 124 */ … … 1365 1365 WebInspector.TextEditorMainPanel.prototype = { 1366 1366 /** 1367 * @param { RegExp} regex1367 * @param {string} regex 1368 1368 * @param {string} cssClass 1369 1369 */ … … 1371 1371 { 1372 1372 this._highlightRegexs[regex] = { 1373 regex: new RegExp(regex .source, "g" + (regex.ignoreCase ? "i" : "")),1373 regex: new RegExp(regex, "g"), 1374 1374 cssClass: cssClass 1375 1375 }; … … 1378 1378 1379 1379 /** 1380 * @param { RegExp} regex1380 * @param {string} regex 1381 1381 * @return {boolean} 1382 1382 */ -
trunk/Source/WebCore/inspector/front-end/TextEditor.js
r139844 r140314 62 62 63 63 /** 64 * @param { RegExp} regex64 * @param {string} regex 65 65 * @param {string} cssClass 66 66 */ … … 68 68 69 69 /** 70 * @param { RegExp} regex70 * @param {string} regex 71 71 * @return {boolean} 72 72 */
Note: See TracChangeset
for help on using the changeset viewer.