| 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="../../../http/tests/inspector/workspace-test.js"></script> | |
| 6 <script> | 5 <script> |
| 7 function test() | 6 function test() |
| 8 { | 7 { |
| 9 SDK.targetManager.mainTarget().setIsNodeJSForTest(); | 8 SDK.targetManager.mainTarget().setIsNodeJSForTest(); |
| 10 InspectorTest.startDebuggerTest(); | 9 InspectorTest.startDebuggerTest(); |
| 11 | 10 |
| 12 var functionText = "function foobar() { \nconsole.log('foobar execute!');\n}
"; | 11 var functionText = "function foobar() { \nconsole.log('foobar execute!');\n}
"; |
| 13 var sourceURL = "\n//# sourceURL=/usr/local/home/prog/foobar.js"; | 12 var sourceURL = "\n//# sourceURL=/usr/local/home/prog/foobar.js"; |
| 14 InspectorTest.evaluateInPage(functionText + sourceURL, function() { }); | 13 InspectorTest.evaluateInPage(functionText + sourceURL, function() { }); |
| 15 InspectorTest.showScriptSource("foobar.js", didShowScriptSource); | 14 InspectorTest.showScriptSource("foobar.js", didShowScriptSource); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 32 InspectorTest.addResult("Successfully paused on breakpoint"); | 31 InspectorTest.addResult("Successfully paused on breakpoint"); |
| 33 InspectorTest.completeDebuggerTest(); | 32 InspectorTest.completeDebuggerTest(); |
| 34 } | 33 } |
| 35 } | 34 } |
| 36 </script> | 35 </script> |
| 37 </head> | 36 </head> |
| 38 <body onload="runTest()"> | 37 <body onload="runTest()"> |
| 39 <p>Verify that front-end is able to set breakpoint for node.js scripts.</p> | 38 <p>Verify that front-end is able to set breakpoint for node.js scripts.</p> |
| 40 </body> | 39 </body> |
| 41 </html> | 40 </html> |
| OLD | NEW |