Index: third_party/WebKit/LayoutTests/http/tests/inspector-unit/list-control-fixed-height.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-unit/list-control-fixed-height.js b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/list-control-fixed-height.js |
index 05920c6884c57bc23c2744ce935c00b74e8b46ad..c5bb691e7f29e519980dc1c03151e796eb70aa15 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/inspector-unit/list-control-fixed-height.js |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/list-control-fixed-height.js |
@@ -31,8 +31,7 @@ class Delegate { |
} |
var delegate = new Delegate(); |
-var list = new UI.ListControl(delegate); |
-list.setHeightMode(UI.ListHeightMode.Fixed); |
+var list = new UI.ListControl(delegate, UI.ListMode.ViewportFixedItems); |
list.element.style.height = '73px'; |
UI.inspectorView.element.appendChild(list.element); |
@@ -137,9 +136,9 @@ TestRunner.addResult('Scrolling to 13'); |
list.scrollItemAtIndexIntoView(13); |
dumpList(); |
-TestRunner.addResult('Changing the item height, switching to measure'); |
+TestRunner.addResult('Changing the item height'); |
delegate.height = 15; |
-list.setHeightMode(UI.ListHeightMode.Measured); |
+list.fixedHeightChanged(); |
dumpList(); |
TestRunner.addResult('Selecting 7'); |