10 <script src="../../http/tests/inspector/inspector-test.js"></script>
11 <script src="../../http/tests/inspector/elements-test.js"></script>
16 InspectorTest.runTestSuite([
17 function testShowUserAgentStyles(next)
19 WebInspector.settings.showUserAgentStyles.set(true);
20 selectNodeAndDumpStyles("inspected", next);
23 function testShowUserAgentStyles(next)
25 WebInspector.settings.showUserAgentStyles.set(false);
26 selectNodeAndDumpStyles("other", next);
30 function selectNodeAndDumpStyles(nodeId, next)
32 InspectorTest.addResult("WebInspector.settings.showUserAgentStyles = " + WebInspector.settings.showUserAgentStyles.get());
33 InspectorTest.selectNodeAndWaitForStyles(nodeId, step1);
37 InspectorTest.dumpSelectedElementStyles(true, false, true);
38 WebInspector.settings.showUserAgentStyles.set(true);
47 <body onload="runTest()">
49 Tests that user agent styles are shown based on the setting: https://bugs.webkit.org/show_bug.cgi?id=37766.