| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 function testFunction() | 6 function testFunction() |
| 7 { | 7 { |
| 8 debugger; | 8 debugger; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 function callbackSetVariableValue(response) | 54 function callbackSetVariableValue(response) |
| 55 { | 55 { |
| 56 logErrorResponse(response); | 56 logErrorResponse(response); |
| 57 InspectorTest.completeTest(); | 57 InspectorTest.completeTest(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 function logErrorResponse(response) | 60 function logErrorResponse(response) |
| 61 { | 61 { |
| 62 if (response.error) { | 62 if (response.error) { |
| 63 if (response.error.message.indexOf("debugger is not on pause") != -1
) { | 63 if (response.error.message.indexOf("Can only perform operation while
paused.") != -1) { |
| 64 InspectorTest.log("PASS, error message as expected"); | 64 InspectorTest.log("PASS, error message as expected"); |
| 65 return; | 65 return; |
| 66 } | 66 } |
| 67 } | 67 } |
| 68 InspectorTest.log("FAIL, unexpected error message"); | 68 InspectorTest.log("FAIL, unexpected error message"); |
| 69 InspectorTest.log(JSON.stringify(response)); | 69 InspectorTest.log(JSON.stringify(response)); |
| 70 } | 70 } |
| 71 } | 71 } |
| 72 </script> | 72 </script> |
| 73 </head> | 73 </head> |
| 74 <body onLoad="runTest();"> | 74 <body onLoad="runTest();"> |
| 75 </body> | 75 </body> |
| 76 </html> | 76 </html> |
| OLD | NEW |