| 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>
|
|
|