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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/suspend-setTimeout-on-pause-in-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-suspend-setTimeout.js"); 9 worker = new Worker("resources/dedicated-worker-suspend-setTimeout.js");
10 worker.onmessage = function(event) { }; 10 worker.onmessage = function(event) { };
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 InspectorTest.sendCommand("Worker.enable", {}, didEnableWorkerDebugging); 41 InspectorTest.sendCommand("Worker.enable", {}, didEnableWorkerDebugging);
42 InspectorTest.sendCommand("Worker.setWaitForDebuggerOnStart", { "value": tru e }); 42 InspectorTest.sendCommand("Worker.setWaitForDebuggerOnStart", { "value": tru e });
43 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "startWorker() " }); 43 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "startWorker() " });
44 44
45 InspectorTest.eventHandler["Worker.workerCreated"] = function(messageObject) 45 InspectorTest.eventHandler["Worker.workerCreated"] = function(messageObject)
46 { 46 {
47 workerId = messageObject["params"]["workerId"]; 47 workerId = messageObject["params"]["workerId"];
48 InspectorTest.log("Worker created"); 48 InspectorTest.log("Worker created");
49 sendCommandToWorker("Debugger.enable", {}); 49 sendCommandToWorker("Debugger.enable", {});
50 sendCommandToWorker("Runtime.runIfWaitingForDebugger", {}); 50 sendCommandToWorker("Runtime.run", {});
51 } 51 }
52 52
53 var pauseCount = 0; 53 var pauseCount = 0;
54 var evalRequestId; 54 var evalRequestId;
55 InspectorTest.eventHandler["Worker.dispatchMessageFromWorker"] = function(me ssageObject) 55 InspectorTest.eventHandler["Worker.dispatchMessageFromWorker"] = function(me ssageObject)
56 { 56 {
57 var message = JSON.parse(messageObject["params"]["message"]); 57 var message = JSON.parse(messageObject["params"]["message"]);
58 if (message["method"] === "Debugger.paused") { 58 if (message["method"] === "Debugger.paused") {
59 InspectorTest.log("SUCCESS: Worker paused"); 59 InspectorTest.log("SUCCESS: Worker paused");
60 if (++pauseCount === 1) { 60 if (++pauseCount === 1) {
(...skipping 13 matching lines...) Expand all
74 } 74 }
75 } 75 }
76 } 76 }
77 </script> 77 </script>
78 </head> 78 </head>
79 <body onLoad="runTest();"> 79 <body onLoad="runTest();">
80 <p>Tests that setTimeout callback will not fire while script execution is paused .<a href="https://code.google.com/p/chromium/issues/detail?id=377926">Bug 377926 .</a> 80 <p>Tests that setTimeout callback will not fire while script execution is paused .<a href="https://code.google.com/p/chromium/issues/detail?id=377926">Bug 377926 .</a>
81 </p> 81 </p>
82 </body> 82 </body>
83 </html> 83 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698