| 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: { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 }()); | 25 }()); |
| 26 | 26 |
| 27 var test = function() | 27 var test = function() |
| 28 { | 28 { |
| 29 var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watchExp
ressions; | 29 var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watchExp
ressions; |
| 30 watchExpressionsPane.expand(); | 30 watchExpressionsPane.expand(); |
| 31 watchExpressionsPane.addExpression("globalObject"); | 31 watchExpressionsPane.addExpression("globalObject"); |
| 32 watchExpressionsPane.addExpression("windowAlias"); | 32 watchExpressionsPane.addExpression("windowAlias"); |
| 33 watchExpressionsPane.addExpression("array"); | 33 watchExpressionsPane.addExpression("array"); |
| 34 watchExpressionsPane.addExpression("func"); | 34 watchExpressionsPane.addExpression("func"); |
| 35 InspectorTest.runAfterPendingDispatches(step2); | 35 InspectorTest.deprecatedRunAfterPendingDispatches(step2); |
| 36 | 36 |
| 37 function step2() | 37 function step2() |
| 38 { | 38 { |
| 39 InspectorTest.addResult("Watch expressions added."); | 39 InspectorTest.addResult("Watch expressions added."); |
| 40 var expandArray = expandWatchExpression.bind(null, ["array", "[200 \u202
6 299]", "299"], step3); | 40 var expandArray = expandWatchExpression.bind(null, ["array", "[200 \u202
6 299]", "299"], step3); |
| 41 var expandFunc = expandWatchExpression.bind(null, ["func", "<function sc
ope>", "Closure", "a"], expandArray); | 41 var expandFunc = expandWatchExpression.bind(null, ["func", "<function sc
ope>", "Closure", "a"], expandArray); |
| 42 expandWatchExpression(["globalObject", "foo", "bar"], expandFunc); | 42 expandWatchExpression(["globalObject", "foo", "bar"], expandFunc); |
| 43 } | 43 } |
| 44 | 44 |
| 45 function step3() | 45 function step3() |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 } | 122 } |
| 123 } | 123 } |
| 124 | 124 |
| 125 </script> | 125 </script> |
| 126 </head> | 126 </head> |
| 127 <body onload="runTest()"> | 127 <body onload="runTest()"> |
| 128 <p>Test that watch expressions expansion state is restored after update.</p> | 128 <p>Test that watch expressions expansion state is restored after update.</p> |
| 129 <a href="https://bugs.webkit.org/show_bug.cgi?id=99304">Bug 99304</a> | 129 <a href="https://bugs.webkit.org/show_bug.cgi?id=99304">Bug 99304</a> |
| 130 </body> | 130 </body> |
| 131 </html> | 131 </html> |
| OLD | NEW |