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

Unified Diff: third_party/WebKit/LayoutTests/inspector/filtered-item-selection-dialog-filtering.html

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: all done 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/filtered-item-selection-dialog-filtering.html
diff --git a/third_party/WebKit/LayoutTests/inspector/filtered-item-selection-dialog-filtering.html b/third_party/WebKit/LayoutTests/inspector/filtered-item-selection-dialog-filtering.html
index 2c14f582c8782422fba28647ea30605ecc5d3cff..6ec8ee340d0271d883b69359e0265bcc498db135 100644
--- a/third_party/WebKit/LayoutTests/inspector/filtered-item-selection-dialog-filtering.html
+++ b/third_party/WebKit/LayoutTests/inspector/filtered-item-selection-dialog-filtering.html
@@ -11,22 +11,21 @@ function test()
var overrideShowMatchingItems = true;
var history = [];
- function StubDelegate()
- {
- WebInspector.FilteredListWidget.Delegate.call(this, history);
- }
- StubDelegate.prototype = {
- itemKeyAt: function(itemIndex) { return overridenInput[itemIndex]; },
- itemScoreAt: function(itemIndex) { return 0; },
- itemCount: function() { return overridenInput.length; },
- selectItem: function(itemIndex, promptValue)
+ var StubDelegate = class extends WebInspector.FilteredListWidget.Delegate {
+ constructor()
{
- InspectorTest.addResult("Selected item index: " + itemIndex);
- },
- shouldShowMatchingItems: function() { return overrideShowMatchingItems; },
+ super(history);
+ }
- __proto__: WebInspector.FilteredListWidget.Delegate.prototype
- }
+ itemKeyAt(itemIndex) { return overridenInput[itemIndex]; }
+ itemScoreAt(itemIndex) { return 0; }
+ itemCount() { return overridenInput.length; }
+ selectItem(itemIndex, promptValue)
+ {
+ InspectorTest.addResult("Selected item index: " + itemIndex);
+ }
+ shouldShowMatchingItems() { return overrideShowMatchingItems; }
+ };
var delegate = new StubDelegate();

Powered by Google App Engine
This is Rietveld 408576698