| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> | |
| 4 <script> | |
| 5 | |
| 6 function test() | |
| 7 { | |
| 8 function dumpResult(result) | |
| 9 { | |
| 10 result.id = 0; | |
| 11 InspectorTest.logObject(result); | |
| 12 } | |
| 13 | |
| 14 InspectorTest.runTestSuite([ | |
| 15 function testSymbol(next) | |
| 16 { | |
| 17 InspectorTest.sendCommandPromise("Runtime.evaluate", { expression: "
Symbol(239)", returnByValue: true }) | |
| 18 .then((result) => dumpResult(result)) | |
| 19 .then(() => next()); | |
| 20 }, | |
| 21 | |
| 22 function testObjectWithChain(next) | |
| 23 { | |
| 24 InspectorTest.sendCommandPromise("Runtime.evaluate", { expression: "
a = {}; a.b = a; a", returnByValue: true }) | |
| 25 .then((result) => dumpResult(result)) | |
| 26 .then(() => next()); | |
| 27 } | |
| 28 ]); | |
| 29 } | |
| 30 </script> | |
| 31 </head> | |
| 32 <body onLoad="runTest();"> | |
| 33 Tests that Runtime.evaluate returns an error for non serialable types. | |
| 34 </body> | |
| 35 </html> | |
| 36 | |
| OLD | NEW |