Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/scriptParsedHash.html

Issue 1758313002: DevTools: introduce collections shim to be backed by non-wtf in v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/debugger/scriptParsedHash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/debugger/scriptParsedHash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698