| Index: third_party/WebKit/LayoutTests/inspector-protocol/debugger/scriptParsedHash.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/scriptParsedHash.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/scriptParsedHash.html
|
| index 2f3cdb2e7dd067a5eefc11a2b991f59b3b4652c9..b41aca80d90626c30da7eccaa1e3eb91477776da 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/scriptParsedHash.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/scriptParsedHash.html
|
| @@ -4,33 +4,29 @@
|
| <script>
|
| function test()
|
| {
|
| - var hashes = [ "3FB75160AB1F4E4E82675BC4CD924D3481ABE278", "3DCE1FBEAB1F4E4E82675BC4CD924D3481ABE278", "3938780E1AC4B414D9464CC4C2CE4144D52D9AF" ];
|
| + var hashes = new Set(["1C6D2E82E4E4F1BA4CB5762843D429DC872EBA18",
|
| + "EBF1ECD351E7A3294CB5762843D429DC872EBA18",
|
| + "22D0043331237371241FC675A984B967025A3DC0"]);
|
| + InspectorTest.sendCommandOrDie("Debugger.enable", {}, function() {
|
| + InspectorTest.eventHandler["Debugger.scriptParsed"] = function(messageObject)
|
| + {
|
| + if (hashes.has(messageObject.params.hash))
|
| + InspectorTest.log("Hash received: " + messageObject.params.hash);
|
| + }
|
| + });
|
|
|
| - InspectorTest.eventHandler["Debugger.scriptParsed"] = function(messageObject)
|
| - {
|
| - if (messageObject.params.hash === hashes[0])
|
| - InspectorTest.log("Hash received: " + hashes.shift());
|
| - }
|
| - InspectorTest.sendCommandOrDie("Debugger.enable");
|
| - InspectorTest.sendCommandOrDie("Runtime.evaluate", { expression: "eval(\"\")" }, step1);
|
| -
|
| - function step1()
|
| - {
|
| - InspectorTest.sendCommandOrDie("Runtime.evaluate", { expression: "eval(\"239;\")" }, step2);
|
| - }
|
| -
|
| - function step2()
|
| - {
|
| + function longScript() {
|
| var longScript = "var b = 1;";
|
| - for (var i = 0; i < 1024; ++i)
|
| + for (var i = 0; i < 2024; ++i)
|
| longScript += "++b;";
|
| - InspectorTest.sendCommandOrDie("Runtime.evaluate", { expression: "eval(\"" + longScript + "\")" }, step3);
|
| }
|
|
|
| - function step3()
|
| + InspectorTest.sendCommandOrDie("Runtime.evaluate", { expression: "1" });
|
| + InspectorTest.sendCommandOrDie("Runtime.evaluate", { expression: "239" });
|
| + InspectorTest.sendCommandOrDie("Runtime.evaluate", { expression: "(" + longScript + ")()" }, step2);
|
| +
|
| + function step2()
|
| {
|
| - if (hashes.length)
|
| - InspectorTest.log("Not received: " + JSON.stringify(hashes));
|
| InspectorTest.completeTest();
|
| }
|
| }
|
|
|