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="resources/resolve-expressions-compressed.js"></script> | 5 <script src="resources/resolve-expressions-compressed.js"></script> |
6 <script> | 6 <script> |
7 function test() | 7 function test() |
8 { | 8 { |
9 Runtime.experiments.enableForTest("resolveVariableNames"); | 9 Runtime.experiments.enableForTest("resolveVariableNames"); |
10 InspectorTest.startDebuggerTest(step1); | 10 InspectorTest.startDebuggerTest(step1); |
(...skipping 26 matching lines...) Expand all Loading... |
37 function Position(line, startColumn, endColumn, originText) | 37 function Position(line, startColumn, endColumn, originText) |
38 { | 38 { |
39 this.line = line; | 39 this.line = line; |
40 this.startColumn = startColumn; | 40 this.startColumn = startColumn; |
41 this.endColumn = endColumn; | 41 this.endColumn = endColumn; |
42 this.originText = originText; | 42 this.originText = originText; |
43 } | 43 } |
44 | 44 |
45 function testAtPosition(uiSourceCode, position) | 45 function testAtPosition(uiSourceCode, position) |
46 { | 46 { |
47 return WebInspector.SourceMapNamesResolver.resolveExpression(InspectorTe
st.debuggerModel.selectedCallFrame(), position.originText, uiSourceCode, positio
n.line, position.startColumn, position.endColumn) | 47 return WebInspector.SourceMapNamesResolver.resolveExpression(WebInspecto
r.context.flavor(WebInspector.DebuggerModel.CallFrame), position.originText, uiS
ourceCode, position.line, position.startColumn, position.endColumn) |
48 .then(InspectorTest.evaluateOnCurrentCallFrame) | 48 .then(InspectorTest.evaluateOnCurrentCallFrame) |
49 .then(remoteObject => InspectorTest.addResult(remoteObject.descripti
on)); | 49 .then(remoteObject => InspectorTest.addResult(remoteObject.descripti
on)); |
50 } | 50 } |
51 } | 51 } |
52 | 52 |
53 </script> | 53 </script> |
54 </head> | 54 </head> |
55 | 55 |
56 <body onload="runTest()"> | 56 <body onload="runTest()"> |
57 <p> | 57 <p> |
58 Tests evaluation in minified scripts. | 58 Tests evaluation in minified scripts. |
59 </p> | 59 </p> |
60 </body> | 60 </body> |
61 </html> | 61 </html> |
OLD | NEW |