Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / elements / styles / hidden-user-agent-styles-in-computed-trace.html
1 <html>
2 <head>
3
4 <style>
5 div {
6     display: inline-block;
7 }
8 </style>
9
10 <script src="../../../http/tests/inspector/inspector-test.js"></script>
11 <script src="../../../http/tests/inspector/elements-test.js"></script>
12 <script>
13
14 function test()
15 {
16     WebInspector.settings.showUserAgentStyles.set(false);
17     InspectorTest.addResult("WebInspector.settings.showUserAgentStyles = " + WebInspector.settings.showUserAgentStyles.get());
18     InspectorTest.selectNodeAndWaitForStylesWithComputed("inspected", callback);
19
20     function callback()
21     {
22         InspectorTest.dumpSelectedElementStyles();
23         WebInspector.settings.showUserAgentStyles.set(true);
24         InspectorTest.completeTest();
25     }
26 }
27
28 </script>
29 </head>
30
31 <body onload="runTest()">
32 <div id="inspected" />
33 <p>
34 Tests that user agent styles are shown in the computed trace regardless of the "Show user agent styles" setting: <a href="http://crbug.com/276293">http://crbug.com/276293</a>.
35 </p>
36 </body>
37 </html>