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 function test() | |
6 { | |
7 var hashes = new Set(["1C6D2E82E4E4F1BA4CB5762843D429DC872EBA18", | |
8 "EBF1ECD351E7A3294CB5762843D429DC872EBA18", | |
9 "22D0043331237371241FC675A984B967025A3DC0"]); | |
10 InspectorTest.sendCommandOrDie("Debugger.enable", {}, function() { | |
11 InspectorTest.eventHandler["Debugger.scriptParsed"] = function(messageOb
ject) | |
12 { | |
13 if (hashes.has(messageObject.params.hash)) | |
14 InspectorTest.log("Hash received: " + messageObject.params.hash)
; | |
15 } | |
16 }); | |
17 | |
18 function longScript() { | |
19 var longScript = "var b = 1;"; | |
20 for (var i = 0; i < 2024; ++i) | |
21 longScript += "++b;"; | |
22 } | |
23 | |
24 InspectorTest.sendCommandOrDie("Runtime.evaluate", { expression: "1" }); | |
25 InspectorTest.sendCommandOrDie("Runtime.evaluate", { expression: "239" }); | |
26 InspectorTest.sendCommandOrDie("Runtime.evaluate", { expression: "(" + longS
cript + ")()" }, step2); | |
27 | |
28 function step2() | |
29 { | |
30 InspectorTest.completeTest(); | |
31 } | |
32 } | |
33 </script> | |
34 </head> | |
35 <body onLoad="runTest();"> | |
36 </body> | |
37 </html> | |
OLD | NEW |