OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../../http/tests/inspector/elements-test.js"></script> | 4 <script src="../../http/tests/inspector/elements-test.js"></script> |
5 <script src="../../http/tests/inspector/live-edit-test.js"></script> | 5 <script src="../../http/tests/inspector/live-edit-test.js"></script> |
6 <script src="../../http/tests/inspector/debugger-test.js"></script> | 6 <script src="../../http/tests/inspector/debugger-test.js"></script> |
7 <link rel="stylesheet" href="resources/get-set-stylesheet-text.css"> | 7 <link rel="stylesheet" href="resources/get-set-stylesheet-text.css"> |
8 <div id=foo></div> | 8 <div id=foo></div> |
9 <script> | 9 <script> |
10 | 10 |
11 function test() | 11 function test() |
12 { | 12 { |
13 WebInspector.showPanel("scripts"); | 13 WebInspector.showPanel("sources"); |
14 | 14 |
15 InspectorTest.runTestSuite([ | 15 InspectorTest.runTestSuite([ |
16 function testLiveEdit(next) | 16 function testLiveEdit(next) |
17 { | 17 { |
18 InspectorTest.showScriptSource("get-set-stylesheet-text.css", didSho
wResource); | 18 InspectorTest.showScriptSource("get-set-stylesheet-text.css", didSho
wResource); |
19 | 19 |
20 function didShowResource(sourceFrame) | 20 function didShowResource(sourceFrame) |
21 { | 21 { |
22 InspectorTest.addSniffer(WebInspector.CSSStyleModel.prototype, "
_fireStyleSheetChanged", didEditResource); | 22 InspectorTest.addSniffer(WebInspector.CSSStyleModel.prototype, "
_fireStyleSheetChanged", didEditResource); |
23 InspectorTest.replaceInSource(sourceFrame, "font-size: 12px;", "
font-size: 20px;"); | 23 InspectorTest.replaceInSource(sourceFrame, "font-size: 12px;", "
font-size: 20px;"); |
(...skipping 15 matching lines...) Expand all Loading... |
39 | 39 |
40 </script> | 40 </script> |
41 | 41 |
42 </head> | 42 </head> |
43 | 43 |
44 <body onload="runTest()"> | 44 <body onload="runTest()"> |
45 <p>Tests that styles are updated when live-editing css resource.</p> | 45 <p>Tests that styles are updated when live-editing css resource.</p> |
46 | 46 |
47 </body> | 47 </body> |
48 </html> | 48 </html> |
OLD | NEW |