| 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> | 5 <script> |
| 6 | 6 |
| 7 var a = 1; | 7 var a = 1; |
| 8 function testFunction() | 8 function testFunction() |
| 9 { | 9 { |
| 10 var var1 = 2; | 10 var var1 = 2; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 executionContext.completionsForExpression("console", "console.log('b
ar');", 19, "log('bar');", false, checkAgainstGolden.bind(this, [], ["$"], next)
); | 68 executionContext.completionsForExpression("console", "console.log('b
ar');", 19, "log('bar');", false, checkAgainstGolden.bind(this, [], ["$"], next)
); |
| 69 }, | 69 }, |
| 70 | 70 |
| 71 function step11(next) | 71 function step11(next) |
| 72 { | 72 { |
| 73 executionContext.completionsForExpression("arr1.", "arr1.", 5, "", f
alse, checkAgainstGolden.bind(this, ["length"], ["1", "2", "3"], next)); | 73 executionContext.completionsForExpression("arr1.", "arr1.", 5, "", f
alse, checkAgainstGolden.bind(this, ["length"], ["1", "2", "3"], next)); |
| 74 }, | 74 }, |
| 75 | 75 |
| 76 function step12(next) | 76 function step12(next) |
| 77 { | 77 { |
| 78 executionContext.completionsForExpression("arr1[", "arr1[", 5, "", f
alse, checkAgainstGolden.bind(this, ["0]", "1]", "2]", "\"length\"]"], ["3]"], n
ext)); | 78 executionContext.completionsForExpression("arr1[", "arr1[", 5, "", f
alse, checkAgainstGolden.bind(this, ["\"length\"]"], ["3]"], next)); |
| 79 }, | 79 }, |
| 80 | 80 |
| 81 function step13_ShouldNotCrash(next) | 81 function step13_ShouldNotCrash(next) |
| 82 { | 82 { |
| 83 executionContext.completionsForExpression("arr2.", "arr2.", 5, "", f
alse, checkAgainstGolden.bind(this, ["length"], ["1", "2", "3"], next)); | 83 executionContext.completionsForExpression("arr2.", "arr2.", 5, "", f
alse, checkAgainstGolden.bind(this, ["length"], ["1", "2", "3"], next)); |
| 84 }, | 84 }, |
| 85 ]); | 85 ]); |
| 86 | 86 |
| 87 function checkAgainstGolden(golden, antiGolden, continuation, completions) | 87 function checkAgainstGolden(golden, antiGolden, continuation, completions) |
| 88 { | 88 { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 111 </script> | 111 </script> |
| 112 </head> | 112 </head> |
| 113 | 113 |
| 114 <body onload="runTest()"> | 114 <body onload="runTest()"> |
| 115 <p> | 115 <p> |
| 116 Test that completions in the context of the call frame will result in names | 116 Test that completions in the context of the call frame will result in names |
| 117 of its scope variables. | 117 of its scope variables. |
| 118 </p> | 118 </p> |
| 119 </body> | 119 </body> |
| 120 </html> | 120 </html> |
| OLD | NEW |