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

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

Issue 2968523003: [DevTools] Migrate inspector-protocol/debugger tests to new harness (Closed)
Patch Set: all tests Created 3 years, 5 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 unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698