| 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();
|
|
|
|
|