| 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/framework.js"></script> | 5 <script src="../debugger/resources/framework.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function testFunction() | 8 function testFunction() |
| 9 { | 9 { |
| 10 debugger; | 10 debugger; |
| 11 Promise.resolve() | 11 Promise.resolve() |
| 12 // Should not pause on console.assert() inside framework. | 12 // Should not pause on console.assert() inside framework. |
| 13 .then(Framework.bind(Framework.assert, null, false, "Assert from test")) | 13 .then(Framework.bind(Framework.assert, null, false, "Assert from test")) |
| 14 // Should not pause on setTimeout inside the framework. | 14 // Should not pause on setTimeout inside the framework. |
| 15 .then(Framework.willSchedule(Framework.empty, 0)) | 15 .then(Framework.willSchedule(Framework.empty, 0)) |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 </script> | 60 </script> |
| 61 </head> | 61 </head> |
| 62 | 62 |
| 63 <body onload="runTest()"> | 63 <body onload="runTest()"> |
| 64 <input type='button' onclick='testFunction()' value='Test'/> | 64 <input type='button' onclick='testFunction()' value='Test'/> |
| 65 <p> | 65 <p> |
| 66 Tests that framework blackboxing skips instant pauses (e.g. breakpoints on conso
le.assert(), setTimeout(), etc.) if they happen entirely inside the framework. | 66 Tests that framework blackboxing skips instant pauses (e.g. breakpoints on conso
le.assert(), setTimeout(), etc.) if they happen entirely inside the framework. |
| 67 </p> | 67 </p> |
| 68 </body> | 68 </body> |
| 69 </html> | 69 </html> |
| OLD | NEW |