OLD | NEW |
1 <html> | 1 <html> |
2 <script src="../../http/tests/inspector/inspector-test.js"></script> | 2 <script src="../../http/tests/inspector/inspector-test.js"></script> |
3 <script src="../../http/tests/inspector/debugger-test.js"></script> | 3 <script src="../../http/tests/inspector/debugger-test.js"></script> |
4 | 4 |
5 <script type="application/dart" src="scope-variables.dart"></script> | 5 <script type="application/dart" src="scope-variables.dart"></script> |
6 | 6 |
7 <script> | 7 <script> |
8 if (window.navigator.webkitStartDart) | 8 if (window.navigator.webkitStartDart) |
9 navigator.webkitStartDart(); | 9 navigator.webkitStartDart(); |
10 </script> | 10 </script> |
11 | 11 |
12 <script> | 12 <script> |
| 13 |
13 function postMessageToDart() | 14 function postMessageToDart() |
14 { | 15 { |
15 window.postMessage('fromJS', '*'); | 16 window.postMessage('fromJS', '*'); |
16 } | 17 } |
17 | 18 |
18 function test() | 19 function test() |
19 { | 20 { |
20 InspectorTest.runDebuggerTestSuite([ | 21 InspectorTest.runDebuggerTestSuite([ |
21 function testScopeChain(next) | 22 function testScopeChain(next) |
22 { | 23 { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 68 |
68 function dumpScopeChainContents() | 69 function dumpScopeChainContents() |
69 { | 70 { |
70 var sections = WebInspector.inspectorView.currentPanel().sidebarPanes.sc
opechain._sections; | 71 var sections = WebInspector.inspectorView.currentPanel().sidebarPanes.sc
opechain._sections; |
71 InspectorTest.addResult(""); | 72 InspectorTest.addResult(""); |
72 InspectorTest.addResult("Dump scope sections:"); | 73 InspectorTest.addResult("Dump scope sections:"); |
73 for (var i = 0; i < sections.length; i++) { | 74 for (var i = 0; i < sections.length; i++) { |
74 var section = sections[i]; | 75 var section = sections[i]; |
75 var properties = section.propertiesForTest; | 76 var properties = section.propertiesForTest; |
76 var contents = InspectorTest.textContentWithLineBreaks(section.eleme
nt); | 77 var contents = InspectorTest.textContentWithLineBreaks(section.eleme
nt); |
77 InspectorTest.addResult(contents); | 78 InspectorTest.addResult(contents.replace(/\(file:\/\/[^)]*\)/g, "(SO
URCE_LOCATION)")); |
78 } | 79 } |
79 } | 80 } |
80 }; | 81 }; |
81 </script> | 82 </script> |
82 | 83 |
83 <body onload="runTest()"> | 84 <body onload="runTest()"> |
| 85 <div id="example_div">Example div</div> |
84 </body> | 86 </body> |
85 </html> | 87 </html> |
OLD | NEW |