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

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

Issue 479033002: DevTools: improve javascript formatter to support "return" properties. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address @vsevik comments Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/script-formatter-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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="../../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="resources/obfuscated.js"></script> 5 <script src="resources/obfuscated.js"></script>
6 6
7 <script> 7 <script>
8 8
9 var test = function() 9 var test = function()
10 { 10 {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 InspectorTest.addResult(event.data.content); 81 InspectorTest.addResult(event.data.content);
82 next(); 82 next();
83 }); 83 });
84 84
85 worker.onerror = function(event) 85 worker.onerror = function(event)
86 { 86 {
87 InspectorTest.addResult("Error in worker: " + event.data); 87 InspectorTest.addResult("Error in worker: " + event.data);
88 next(); 88 next();
89 }; 89 };
90 90
91 var content = "<html><body><script>function f(){}<" + "/script><scri pt>function g(){var a;if (a) return;}<" + "/script></body></html>"; 91 var content = "<html><body><script>function f(){}<" + "/script><scri pt>function g(){var a;window.return = 10;if (a) return;}<" + "/script></body></h tml>";
92 worker.postMessage({ method: "format", params: { mimeType: "text/htm l", content: content, indentString: "**" } }); 92 worker.postMessage({ method: "format", params: { mimeType: "text/htm l", content: content, indentString: "**" } });
93 } 93 }
94 ]); 94 ]);
95 } 95 }
96 96
97 </script> 97 </script>
98 98
99 </head> 99 </head>
100 100
101 <body onload="runTest()"> 101 <body onload="runTest()">
102 <p>Tests the script formatting functionality. 102 <p>Tests the script formatting functionality.
103 </p> 103 </p>
104 104
105 </body> 105 </body>
106 </html> 106 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/script-formatter-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698