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/debugger-test.js"></script> | 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
5 <script src="../../../http/tests/inspector/elements-test.js"></script> | 5 <script src="../../../http/tests/inspector/elements-test.js"></script> |
6 <script> | 6 <script> |
7 function testFunction() | 7 function testFunction() |
8 { | 8 { |
9 var x = Math.sqrt(10); | 9 var x = Math.sqrt(10); |
10 return x; | 10 return x; |
(...skipping 26 matching lines...) Expand all Loading... |
37 testName = testName.substring(testName.lastIndexOf('/') + 1); | 37 testName = testName.substring(testName.lastIndexOf('/') + 1); |
38 InspectorTest.showScriptSource(testName, didShowScriptSource); | 38 InspectorTest.showScriptSource(testName, didShowScriptSource); |
39 } | 39 } |
40 | 40 |
41 function didShowScriptSource(sourceFrame) | 41 function didShowScriptSource(sourceFrame) |
42 { | 42 { |
43 currentSourceFrame = sourceFrame; | 43 currentSourceFrame = sourceFrame; |
44 InspectorTest.addResult("Script source was shown."); | 44 InspectorTest.addResult("Script source was shown."); |
45 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true); | 45 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true); |
46 InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype,
"update", watchExpressionsUpdated); | 46 InspectorTest.addSniffer(WebInspector.WatchExpressionsSection.prototype,
"update", watchExpressionsUpdated); |
47 InspectorTest.runTestFunctionAndWaitUntilPaused(didPaused); | 47 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); |
48 } | 48 } |
49 | 49 |
50 function didPaused(callFrames) | 50 function didPause(callFrames) |
51 { | 51 { |
52 } | 52 } |
53 | 53 |
54 function watchExpressionsUpdated() | 54 function watchExpressionsUpdated() |
55 { | 55 { |
56 InspectorTest.addResult("Watch expressions updated."); | 56 InspectorTest.addResult("Watch expressions updated."); |
57 var treeNodes = watchExpressionsSection.propertiesTreeOutline.children; | 57 var treeNodes = watchExpressionsSection.propertiesTreeOutline.children; |
58 for (var i = 0; i < treeNodes.length; i++) { | 58 for (var i = 0; i < treeNodes.length; i++) { |
59 treeNodes[i].expand(); | 59 treeNodes[i].expand(); |
60 } | 60 } |
(...skipping 12 matching lines...) Expand all Loading... |
73 InspectorTest.completeDebuggerTest(); | 73 InspectorTest.completeDebuggerTest(); |
74 } | 74 } |
75 } | 75 } |
76 | 76 |
77 </script> | 77 </script> |
78 </head> | 78 </head> |
79 <body onload="runTest()"> | 79 <body onload="runTest()"> |
80 <p>Tests how debugger presents special properties of closures, bound functions a
nd object wrappers.</p> | 80 <p>Tests how debugger presents special properties of closures, bound functions a
nd object wrappers.</p> |
81 </body> | 81 </body> |
82 </html> | 82 </html> |
OLD | NEW |