| 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/debugger-test.js"></script> | 5 <script src="../../http/tests/inspector/debugger-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 var globalObject = { | 8 var globalObject = { |
| 9 foo: { | 9 foo: { |
| 10 bar: { | 10 bar: { |
| 11 baz: 2012 | 11 baz: 2012 |
| 12 } | 12 } |
| 13 } | 13 } |
| 14 }; | 14 }; |
| 15 var windowAlias = window; | 15 var windowAlias = window; |
| 16 | 16 |
| 17 var test = function() | 17 var test = function() |
| 18 { | 18 { |
| 19 var watchExpressionsSection; | 19 var watchExpressionsSection; |
| 20 | 20 |
| 21 // We need to initialize scripts panel so that watch expressions section is
created. | 21 // We need to initialize sources panel so that watch expressions section is
created. |
| 22 WebInspector.showPanel("scripts"); | 22 WebInspector.showPanel("sources"); |
| 23 InspectorTest.startDebuggerTest(step1); | 23 InspectorTest.startDebuggerTest(step1); |
| 24 | 24 |
| 25 function step1() | 25 function step1() |
| 26 { | 26 { |
| 27 var watchExpressionsPane = WebInspector.panels.scripts.sidebarPanes.watc
hExpressions; | 27 var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watc
hExpressions; |
| 28 watchExpressionsPane.expand(); | 28 watchExpressionsPane.expand(); |
| 29 | 29 |
| 30 watchExpressionsSection = watchExpressionsPane.section; | 30 watchExpressionsSection = watchExpressionsPane.section; |
| 31 watchExpressionsSection.watchExpressions = []; | 31 watchExpressionsSection.watchExpressions = []; |
| 32 watchExpressionsSection.watchExpressions.push("globalObject"); | 32 watchExpressionsSection.watchExpressions.push("globalObject"); |
| 33 watchExpressionsSection.watchExpressions.push("windowAlias"); | 33 watchExpressionsSection.watchExpressions.push("windowAlias"); |
| 34 | 34 |
| 35 InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype,
"updateProperties", step2); | 35 InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype,
"updateProperties", step2); |
| 36 watchExpressionsSection.update(); | 36 watchExpressionsSection.update(); |
| 37 } | 37 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 } | 88 } |
| 89 } | 89 } |
| 90 | 90 |
| 91 </script> | 91 </script> |
| 92 </head> | 92 </head> |
| 93 <body onload="runTest()"> | 93 <body onload="runTest()"> |
| 94 <p>Test that watch expressions expansion state is restored after update.</p> | 94 <p>Test that watch expressions expansion state is restored after update.</p> |
| 95 <a href="https://bugs.webkit.org/show_bug.cgi?id=99304">Bug 99304</a> | 95 <a href="https://bugs.webkit.org/show_bug.cgi?id=99304">Bug 99304</a> |
| 96 </body> | 96 </body> |
| 97 </html> | 97 </html> |
| OLD | NEW |