| OLD | NEW |
| (Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> |
| 4 <script> |
| 5 |
| 6 function testFunction() |
| 7 { |
| 8 var sync = true; |
| 9 Promise.resolve().then(() => { |
| 10 console.log(sync); |
| 11 }); |
| 12 var doc = new DOMParser().parseFromString('hi', 'text/html'); |
| 13 sync = false; |
| 14 } |
| 15 |
| 16 function test() |
| 17 { |
| 18 InspectorTest.sendCommandOrDie("Console.enable", {}); |
| 19 InspectorTest.eventHandler["Console.messageAdded"] = messageAdded; |
| 20 InspectorTest.sendCommandOrDie("Runtime.evaluate", { "expression": "testFunc
tion()" }); |
| 21 |
| 22 function messageAdded(result) |
| 23 { |
| 24 InspectorTest.logObject(result.params.message.parameters[0]); |
| 25 InspectorTest.completeTest(); |
| 26 } |
| 27 } |
| 28 </script> |
| 29 </head> |
| 30 <body onLoad="runTest();"> |
| 31 Check that DOMParser().parseFromString() doesn't produce PerformMicrotasks call
if JS is executing. |
| 32 </body> |
| 33 </html> |
| OLD | NEW |