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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-step-into-dedicated-worker.html

Issue 2249663003: Revert of [DevTools] Rename entities in js_protocol, remove deprecated ones. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script> 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
4 <script> 4 <script>
5 var worker; 5 var worker;
6 6
7 function startWorker() 7 function startWorker()
8 { 8 {
9 worker = new Worker("resources/dedicated-worker-step-into.js"); 9 worker = new Worker("resources/dedicated-worker-step-into.js");
10 worker.onmessage = function(event) { }; 10 worker.onmessage = function(event) { };
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 InspectorTest.sendCommand("Worker.enable", {}, didEnableWorkerDebugging); 39 InspectorTest.sendCommand("Worker.enable", {}, didEnableWorkerDebugging);
40 InspectorTest.sendCommand("Worker.setWaitForDebuggerOnStart", { "value": tru e }); 40 InspectorTest.sendCommand("Worker.setWaitForDebuggerOnStart", { "value": tru e });
41 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "startWorker() " }); 41 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "startWorker() " });
42 42
43 InspectorTest.eventHandler["Worker.workerCreated"] = function(messageObject) 43 InspectorTest.eventHandler["Worker.workerCreated"] = function(messageObject)
44 { 44 {
45 workerId = messageObject["params"]["workerId"]; 45 workerId = messageObject["params"]["workerId"];
46 InspectorTest.log("Worker created"); 46 InspectorTest.log("Worker created");
47 sendCommandToWorker("Debugger.enable", {}); 47 sendCommandToWorker("Debugger.enable", {});
48 sendCommandToWorker("Runtime.runIfWaitingForDebugger", {}); 48 sendCommandToWorker("Runtime.run", {});
49 } 49 }
50 50
51 var pauseCount = 0; 51 var pauseCount = 0;
52 InspectorTest.eventHandler["Worker.dispatchMessageFromWorker"] = function(me ssageObject) 52 InspectorTest.eventHandler["Worker.dispatchMessageFromWorker"] = function(me ssageObject)
53 { 53 {
54 var message = JSON.parse(messageObject["params"]["message"]); 54 var message = JSON.parse(messageObject["params"]["message"]);
55 if (message["method"] === "Debugger.paused") { 55 if (message["method"] === "Debugger.paused") {
56 InspectorTest.log("SUCCESS: Worker paused"); 56 InspectorTest.log("SUCCESS: Worker paused");
57 if (++pauseCount === 1) { 57 if (++pauseCount === 1) {
58 InspectorTest.log("Stepping into..."); 58 InspectorTest.log("Stepping into...");
59 sendCommandToWorker("Debugger.stepInto", {}); 59 sendCommandToWorker("Debugger.stepInto", {});
60 } else { 60 } else {
61 sendCommandToWorker("Debugger.disable", {}); 61 sendCommandToWorker("Debugger.disable", {});
62 InspectorTest.completeTest(); 62 InspectorTest.completeTest();
63 } 63 }
64 } 64 }
65 } 65 }
66 66
67 } 67 }
68 </script> 68 </script>
69 </head> 69 </head>
70 <body onLoad="runTest();"> 70 <body onLoad="runTest();">
71 <p>Tests that dedicated worker won't crash on attempt to step into.<a href="http s://code.google.com/p/chromium/issues/detail?id=232392">Bug 232392.</a> 71 <p>Tests that dedicated worker won't crash on attempt to step into.<a href="http s://code.google.com/p/chromium/issues/detail?id=232392">Bug 232392.</a>
72 </p> 72 </p>
73 </body> 73 </body>
74 </html> 74 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/debugger/suspend-setTimeout-on-pause-in-dedicated-worker.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698