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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector-unit/viewport-control.js

Issue 2592483002: [DevTools] Move console viewport to console, rename StaticViewportControl. (Closed)
Patch Set: Created 4 years 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/http/tests/inspector-unit/viewport-control.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-unit/static-viewport-control.js b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/viewport-control.js
similarity index 90%
rename from third_party/WebKit/LayoutTests/http/tests/inspector-unit/static-viewport-control.js
rename to third_party/WebKit/LayoutTests/http/tests/inspector-unit/viewport-control.js
index 0b333830a7b962efd7603716536a6278768d931e..1a0b1fac00aec5da0b8a2276c38a2d65a6ffd945 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector-unit/static-viewport-control.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-unit/viewport-control.js
@@ -1,4 +1,4 @@
-TestRunner.addResult("This tests if the StaticViewportControl works properly.");
+TestRunner.addResult("This tests if the ViewportControl works properly.");
var items = [];
var heights = [];
@@ -7,7 +7,7 @@ for (var i = 0; i < 100; i++){
items[i].style.height = (heights[i] = (i % 4) ? 50 : 28) + "px";
items[i].textContent = i;
}
-var viewport = new UI.StaticViewportControl({
+var viewport = new UI.ViewportControl({
fastItemHeight: i => heights[i],
itemCount: _ => items.length,
itemElement: i => items[i]

Powered by Google App Engine
This is Rietveld 408576698