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

Unified Diff: LayoutTests/inspector/minimum-size.html

Issue 214663005: [DevTools] Add preferred size to WebInspector.View. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Two methods Created 6 years, 9 months 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
« no previous file with comments | « no previous file | LayoutTests/inspector/minimum-size-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/minimum-size.html
diff --git a/LayoutTests/inspector/minimum-size.html b/LayoutTests/inspector/minimum-size.html
index 514e8ca04675e02d8300c1d896f12d28e441c5d4..93ad6e8affb902dd984d7748086aec4c3a5f1a6c 100644
--- a/LayoutTests/inspector/minimum-size.html
+++ b/LayoutTests/inspector/minimum-size.html
@@ -96,6 +96,37 @@ function test()
splitView.setSecondIsSidebar(false);
dumpBoundingBoxes(views);
+ InspectorTest.addResult("Arranging preferred sizes");
+ firstSidebarView.setMinimumAndPreferredSizes(50, 50, 100, 100);
+ mainView.setMinimumAndPreferredSizes(50, 50, 200, 200);
+ thirdSidebarView.setMinimumAndPreferredSizes(50, 50, 100, 100);
+ splitView.setSidebarSize(260);
+ dumpBoundingBoxes(views);
+
+ InspectorTest.addResult("Less than sidebar preferred size");
+ splitView.setSidebarSize(80);
+ dumpBoundingBoxes(views);
+
+ InspectorTest.addResult("Size changes proportionally");
+ splitView.setSidebarSize(320);
+ dumpBoundingBoxes(views);
+
+ InspectorTest.addResult("Manual resize inside child split view");
+ childSplitView.setSidebarSize(50);
+ dumpBoundingBoxes(views);
+
+ InspectorTest.addResult("Manual resize inside child split view");
+ childSplitView.setSidebarSize(120);
+ dumpBoundingBoxes(views);
+
+ InspectorTest.addResult("Child split view gets more space");
+ splitView.setSidebarSize(170);
+ dumpBoundingBoxes(views);
+
+ InspectorTest.addResult("Child split view gets less space");
+ splitView.setSidebarSize(360);
+ dumpBoundingBoxes(views);
+
InspectorTest.completeTest();
}
</script>
« no previous file with comments | « no previous file | LayoutTests/inspector/minimum-size-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698