3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <script src="../../http/tests/inspector/live-edit-test.js"></script>
6 <script src="../../http/tests/inspector/debugger-test.js"></script>
7 <link rel="stylesheet" href="resources/css-live-edit.css">
13 WebInspector.showPanel("sources");
15 InspectorTest.runTestSuite([
16 function testLiveEdit(next)
18 InspectorTest.showScriptSource("css-live-edit.css", didShowResource);
20 function didShowResource(sourceFrame)
22 InspectorTest.addSniffer(WebInspector.CSSStyleModel.prototype, "_fireStyleSheetChanged", didEditResource);
23 InspectorTest.replaceInSource(sourceFrame, "font-size: 12px;", "font-size: 20px;");
26 function didEditResource()
28 InspectorTest.selectNodeAndWaitForStylesWithComputed("foo", didSelectElement);
31 function didSelectElement()
33 InspectorTest.dumpSelectedElementStyles(false, true);
44 <body onload="runTest()">
45 <p>Tests that styles are updated when live-editing css resource.</p>