[chromium] Unreviewed. Rebaseline layout tests.
[WebKit-https.git] / LayoutTests / inspector / elements-panel-styles.html
1 <html>
2 <head>
3 <link rel="stylesheet" type="text/css" href="resources/elements-panel-styles.css">
4 <script src="../http/tests/inspector/inspector-test.js"></script>
5 <script src="elements-tests.js"></script>
6 <script>
7
8 function doit()
9 {
10     function callback(result)
11     {
12         dumpArray(result);
13         notifyDone();
14     }
15     evaluateInWebInspector("frontend_dumpStyles", callback);
16 }
17
18 // Frontend functions.
19
20 function frontend_dumpStyles(testController)
21 {
22     testController.waitUntilDone();
23     frontend_expandDOMSubtreeAndRun(testController, null, frontend_selectElementContinuation);
24 }
25
26 function frontend_selectElementContinuation(testController)
27 {
28     frontend_selectElementAndRun(testController, "foo", frontend_dumpSelectedElementStyles);
29 }
30 </script>
31 </head>
32
33 <body onload="onload()">
34 <p>
35 Tests that elements panel shows proper styles in the sidebar panel.
36 </p>
37
38 <div id="container">
39     <div id="foo" class="foo" style="display:none">Foo</div>
40 </div>
41
42 </body>
43 </html>