| OLD | NEW |
| 1 Test that watch expressions expansion state is restored after update. | 1 Test that watch expressions expansion state is restored after update. |
| 2 | 2 |
| 3 Bug 99304 | 3 Bug 99304 |
| 4 Watch expressions added. | 4 Exception while running: function step1() |
| 5 expanded globalObject [object Object] | 5 { |
| 6 expanded foo [object Object] | 6 var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watc
hExpressions; |
| 7 expanded bar [object Object] | 7 watchExpressionsPane.expand(); |
| 8 Watch expressions expanded. | |
| 9 globalObject: Object | |
| 10 foo: Object | |
| 11 bar: Object | |
| 12 baz: 2012 | |
| 13 __proto__: Object | |
| 14 __proto__: Object | |
| 15 __proto__: Object | |
| 16 windowAlias: Window | |
| 17 Page reloaded. | |
| 18 Watch expressions after page reload: | |
| 19 globalObject: Object | |
| 20 foo: Object | |
| 21 bar: Object | |
| 22 baz: 2012 | |
| 23 __proto__: Object | |
| 24 __proto__: Object | |
| 25 __proto__: Object | |
| 26 windowAlias: Window | |
| 27 | 8 |
| 9 watchExpressionsSection = watchExpressionsPane.section; |
| 10 watchExpressionsSection.watchExpressions = []; |
| 11 watchExpressionsSection.watchExpressions.push("globalObject"); |
| 12 watchExpressionsSection.watchExpressions.push("windowAlias"); |
| 13 |
| 14 InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype,
"updateProperties", step2); |
| 15 watchExpressionsSection.update(); |
| 16 } |
| 17 TypeError: Cannot set property 'watchExpressions' of undefined |
| 18 at step1 (evaluateInWebInspector1.js:67:50) |
| 19 at result (evaluateInWebInspector0.js:478:25) |
| 20 at Object.InspectorTest.startDebuggerTest (evaluateInWebInspector0.js:1901:3
7) |
| 21 at eval (evaluateInWebInspector1.js:59:19) |
| 22 at eval (evaluateInWebInspector1.js:51:13) |
| 23 |
| OLD | NEW |