| 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 function makeClosure(n) { | 7 function makeClosure(n) { |
| 8 var makeClosureLocalVar = 'local.' + n; | 8 var makeClosureLocalVar = 'local.' + n; |
| 9 return function innerFunction(x) { | 9 return function innerFunction(x) { |
| 10 var innerFunctionLocalVar = x + 2; | 10 var innerFunctionLocalVar = x + 2; |
| 11 var negInf = -Infinity; |
| 12 var negZero = 1 / negInf; |
| 11 try { | 13 try { |
| 12 throw new Error("An exception"); | 14 throw new Error("An exception"); |
| 13 } catch (e) { | 15 } catch (e) { |
| 14 e.toString(); | 16 e.toString(); |
| 15 debugger; | 17 debugger; |
| 16 } | 18 } |
| 17 return n + makeClosureLocalVar + x + innerFunctionLocalVar; | 19 return n + makeClosureLocalVar + x + innerFunctionLocalVar; |
| 18 } | 20 } |
| 19 } | 21 } |
| 20 | 22 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 </head> | 70 </head> |
| 69 | 71 |
| 70 <body onload="runTest()"> | 72 <body onload="runTest()"> |
| 71 <input type='button' onclick='testFunction()' value='Test'/> | 73 <input type='button' onclick='testFunction()' value='Test'/> |
| 72 <p> | 74 <p> |
| 73 Test that sections representing scopes of the current call frame are expandable | 75 Test that sections representing scopes of the current call frame are expandable |
| 74 and contain correct data. | 76 and contain correct data. |
| 75 </p> | 77 </p> |
| 76 </body> | 78 </body> |
| 77 </html> | 79 </html> |
| OLD | NEW |