| 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/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 function test() | 6 function test() |
| 7 { | 7 { |
| 8 var revealed = 0; | 8 var revealed = 0; |
| 9 InspectorTest.addSniffer(WebInspector.SourcesView.prototype, "showSourceLoca
tion", didReveal, true); | 9 InspectorTest.addSniffer(Sources.SourcesView.prototype, "showSourceLocation"
, didReveal, true); |
| 10 InspectorTest.evaluateInConsole("function foo() { }; inspect(foo.bind());ins
pect(foo);"); | 10 InspectorTest.evaluateInConsole("function foo() { }; inspect(foo.bind());ins
pect(foo);"); |
| 11 | 11 |
| 12 function didReveal(uiSourceCode, lineNumber, columnNumber) | 12 function didReveal(uiSourceCode, lineNumber, columnNumber) |
| 13 { | 13 { |
| 14 InspectorTest.addResult("Function was revealed:"); | 14 InspectorTest.addResult("Function was revealed:"); |
| 15 InspectorTest.addResult("lineNumber: " + lineNumber); | 15 InspectorTest.addResult("lineNumber: " + lineNumber); |
| 16 InspectorTest.addResult("columnNumber: " + columnNumber); | 16 InspectorTest.addResult("columnNumber: " + columnNumber); |
| 17 if (revealed == 0) | 17 if (revealed == 0) |
| 18 ++revealed; | 18 ++revealed; |
| 19 else | 19 else |
| 20 InspectorTest.completeTest(); | 20 InspectorTest.completeTest(); |
| 21 } | 21 } |
| 22 } | 22 } |
| 23 </script> | 23 </script> |
| 24 </head> | 24 </head> |
| 25 <body onload="runTest()"> | 25 <body onload="runTest()"> |
| 26 <p>Tests that inspect object action works for function and resolve bound fun
ction location.</p> | 26 <p>Tests that inspect object action works for function and resolve bound fun
ction location.</p> |
| 27 </body> | 27 </body> |
| 28 </html> | 28 </html> |
| OLD | NEW |