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

Side by Side Diff: LayoutTests/inspector/sources/debugger/script-extract-outline.html

Issue 685203003: DevTools: Get rid of synchronous XHRs in the frontend code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Annotate code, fix tests Created 6 years, 1 month 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="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="resources/obfuscated.js"></script> 4 <script src="resources/obfuscated.js"></script>
5 5
6 <script id="outline">function first(x,y) { } 6 <script id="outline">function first(x,y) { }
7 var second = function(y 7 var second = function(y
8 , 8 ,
9 z) { } 9 z) { }
10 Object = function(arg) { 10 Object = function(arg) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 <script> 48 <script>
49 49
50 function getScriptText() 50 function getScriptText()
51 { 51 {
52 return document.querySelector("#outline").textContent; 52 return document.querySelector("#outline").textContent;
53 } 53 }
54 54
55 function test() 55 function test()
56 { 56 {
57 57
58 var worker = Runtime.startWorker("script_formatter_worker"); 58 var worker = new WorkerRuntime.Worker("script_formatter_worker");
59 59
60 worker.onmessage = InspectorTest.safeWrap(function(event) 60 worker.onmessage = InspectorTest.safeWrap(function(event)
61 { 61 {
62 InspectorTest.addObject(event.data); 62 InspectorTest.addObject(event.data);
63 InspectorTest.completeTest(); 63 InspectorTest.completeTest();
64 }); 64 });
65 65
66 worker.onerror = function(event) 66 worker.onerror = function(event)
67 { 67 {
68 InspectorTest.addResult("Error in worker: " + event.data); 68 InspectorTest.addResult("Error in worker: " + event.data);
(...skipping 10 matching lines...) Expand all
79 </script> 79 </script>
80 80
81 </head> 81 </head>
82 82
83 <body onload="runTest()"> 83 <body onload="runTest()">
84 <p>Tests the script outline extraction functionality. 84 <p>Tests the script outline extraction functionality.
85 </p> 85 </p>
86 86
87 </body> 87 </body>
88 </html> 88 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698