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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <style>
4
5 #inspected {
6 display: flex;
7 color: blue;
8 }
9
10 #other {
11 display: inline;
12 }
13
14 div {
15 display: block;
16 color: black;
17 }
18
19 </style>
20 <script src="../../../http/tests/inspector/inspector-test.js"></script>
21 <script src="../../../http/tests/inspector/elements-test.js"></script>
22 <script>
23
24 function test()
25 {
26 InspectorTest.selectNodeAndWaitForStylesWithComputed("inspected", step1);
27
28 function step1()
29 {
30 var treeElement = InspectorTest.findComputedPropertyWithName("display");
31 treeElement.expand();
32 InspectorTest.addResult("\n#inspected computed styles: ");
33 InspectorTest.dumpComputedStyle(true);
34 InspectorTest.selectNodeAndWaitForStylesWithComputed("other", step2);
35 }
36
37 function step2()
38 {
39 InspectorTest.addResult("\n#other computed styles: ");
40 InspectorTest.dumpComputedStyle(true);
41 InspectorTest.completeTest();
42 }
43 }
44
45 </script>
46 </head>
47
48 <body onload="runTest()">
49 <p>
50 Verifies that Computed Style preserves property expansion on re-rendering.
51 </p>
52
53 <div id="inspected">Inspected</div>
54 <div id="other">Other</div>
55
56 </body>
57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698