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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-3/computed-properties-retain-expanded.html

Issue 2152313002: DevTools: preserve computed properties expansion on Computed Style re-rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: third_party/WebKit/LayoutTests/inspector/elements/styles-3/computed-properties-retain-expanded.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles-3/computed-properties-retain-expanded.html b/third_party/WebKit/LayoutTests/inspector/elements/styles-3/computed-properties-retain-expanded.html
new file mode 100644
index 0000000000000000000000000000000000000000..29b7540c7eb987cfd947464b6f4b35ed62a622f4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/elements/styles-3/computed-properties-retain-expanded.html
@@ -0,0 +1,57 @@
+<html>
+<head>
+<style>
+
+#inspected {
+ display: flex;
+ color: blue;
+}
+
+#other {
+ display: inline;
+}
+
+div {
+ display: block;
+ color: black;
+}
+
+</style>
+<script src="../../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../../http/tests/inspector/elements-test.js"></script>
+<script>
+
+function test()
+{
+ InspectorTest.selectNodeAndWaitForStylesWithComputed("inspected", step1);
+
+ function step1()
+ {
+ var treeElement = InspectorTest.findComputedPropertyWithName("display");
+ treeElement.expand();
+ InspectorTest.addResult("\n#inspected computed styles: ");
+ InspectorTest.dumpComputedStyle(true);
+ InspectorTest.selectNodeAndWaitForStylesWithComputed("other", step2);
+ }
+
+ function step2()
+ {
+ InspectorTest.addResult("\n#other computed styles: ");
+ InspectorTest.dumpComputedStyle(true);
+ InspectorTest.completeTest();
+ }
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>
+Verifies that Computed Style preserves property expansion on re-rendering.
+</p>
+
+<div id="inspected">Inspected</div>
+<div id="other">Other</div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698