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

Side by Side Diff: LayoutTests/http/tests/inspector-enabled/dedicated-workers-list.html

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../inspector/inspector-test.js"></script> 3 <script src="../inspector/inspector-test.js"></script>
4 <script src="../inspector/debugger-test.js"></script> 4 <script src="../inspector/debugger-test.js"></script>
5 5
6 <script> 6 <script>
7 function handleLoad() 7 function handleLoad()
8 { 8 {
9 if (window.testRunner) 9 if (window.testRunner)
10 testRunner.waitUntilDone(); 10 testRunner.waitUntilDone();
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 } 27 }
28 28
29 29
30 function test() 30 function test()
31 { 31 {
32 InspectorTest.WorkerAgent.disable(didDisableWorkerInspection); 32 InspectorTest.WorkerAgent.disable(didDisableWorkerInspection);
33 33
34 function didDisableWorkerInspection() 34 function didDisableWorkerInspection()
35 { 35 {
36 WebInspector.workerManager.addEventListener(WebInspector.WorkerManager.E vents.WorkerAdded, workerAdded, this); 36 WebInspector.targetManager.mainTarget().workerManager.addEventListener(W ebInspector.WorkerManager.Events.WorkerAdded, workerAdded, this);
37 InspectorTest.WorkerAgent.enable(); 37 InspectorTest.WorkerAgent.enable();
38 InspectorTest.addResult("Worker inspection enabled"); 38 InspectorTest.addResult("Worker inspection enabled");
39 } 39 }
40 40
41 var workerCount = 0; 41 var workerCount = 0;
42 function workerAdded() 42 function workerAdded()
43 { 43 {
44 workerCount++; 44 workerCount++;
45 InspectorTest.addResult("Added worker: " + workerCount); 45 InspectorTest.addResult("Added worker: " + workerCount);
46 if (workerCount === 2) { 46 if (workerCount === 2) {
47 InspectorTest.addResult("Done."); 47 InspectorTest.addResult("Done.");
48 InspectorTest.completeTest(); 48 InspectorTest.completeTest();
49 } 49 }
50 } 50 }
51 }; 51 };
52 52
53 </script> 53 </script>
54 54
55 </head> 55 </head>
56 56
57 <body onload="handleLoad()"> 57 <body onload="handleLoad()">
58 <p>Tests that dedicated workers created before worker inspection was enabled wil l be reported to the front-end. 58 <p>Tests that dedicated workers created before worker inspection was enabled wil l be reported to the front-end.
59 <a href="https://bugs.webkit.org/show_bug.cgi?id=72020">Bug 72020</a> 59 <a href="https://bugs.webkit.org/show_bug.cgi?id=72020">Bug 72020</a>
60 </p> 60 </p>
61 61
62 </body> 62 </body>
63 </html> 63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698