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 var array = []; | 16 var array = []; |
17 for (var i = 0; i < 300; ++i) | 17 for (var i = 0; i < 300; ++i) |
18 array[i] = i; | 18 array[i] = i; |
19 | 19 |
20 (function() | 20 (function() |
21 { | 21 { |
22 var a = 10; | 22 var a = 10; |
23 var b = 100; | 23 var b = 100; |
24 window.func = function() {return a + b;} | 24 window.func = function() {return a + b;} |
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.expandPane(); |
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.deprecatedRunAfterPendingDispatches(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); |
(...skipping 81 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 |