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

Side by Side Diff: LayoutTests/inspector/elements/styles/style-formatter.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
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/script-extract-outline.html » ('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="../../../http/tests/inspector/sources-test.js"></script> 5 <script src="../../../http/tests/inspector/sources-test.js"></script>
6 <link rel="stylesheet" href="resources/style-formatter-obfuscated.css"> 6 <link rel="stylesheet" href="resources/style-formatter-obfuscated.css">
7 7
8 <script> 8 <script>
9 9
10 var test = function() 10 var test = function()
11 { 11 {
12 var worker = Runtime.startWorker("script_formatter_worker"); 12 var worker = new WorkerRuntime.Worker("script_formatter_worker");
13 13
14 InspectorTest.runTestSuite([ 14 InspectorTest.runTestSuite([
15 function testScriptFormatterWorker(next) 15 function testScriptFormatterWorker(next)
16 { 16 {
17 worker.onmessage = InspectorTest.safeWrap(function(event) 17 worker.onmessage = InspectorTest.safeWrap(function(event)
18 { 18 {
19 InspectorTest.assertEquals("a {\\n /* pre-comment */\\n co lor /* after name */ : /* before value */ red /* post-comment */\\n}\\n".replace (/\n/g, "\\n"), event.data.content.replace(/\n/g, "\\n")); 19 InspectorTest.assertEquals("a {\\n /* pre-comment */\\n co lor /* after name */ : /* before value */ red /* post-comment */\\n}\\n".replace (/\n/g, "\\n"), event.data.content.replace(/\n/g, "\\n"));
20 next(); 20 next();
21 }); 21 });
22 22
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 </script> 95 </script>
96 96
97 </head> 97 </head>
98 98
99 <body onload="runTest()"> 99 <body onload="runTest()">
100 <p>Tests the script formatting functionality. 100 <p>Tests the script formatting functionality.
101 </p> 101 </p>
102 102
103 </body> 103 </body>
104 </html> 104 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/script-extract-outline.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698