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

Side by Side Diff: utils/apidoc/mdn/extractRunner.js

Issue 15755017: Switch from DRT to content shell. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « tools/testing/dart/test_suite.dart ('k') | utils/testrunner/options.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var fs = require('fs'); 1 var fs = require('fs');
2 var util = require('util'); 2 var util = require('util');
3 var exec = require('child_process').exec; 3 var exec = require('child_process').exec;
4 var path = require('path'); 4 var path = require('path');
5 5
6 // We have numProcesses extraction tasks running simultaneously to improve 6 // We have numProcesses extraction tasks running simultaneously to improve
7 // performance. If your machine is slow, you may need to dial back the 7 // performance. If your machine is slow, you may need to dial back the
8 // parallelism. 8 // parallelism.
9 var numProcesses = 8; 9 var numProcesses = 8;
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 var parseArgs = { 109 var parseArgs = {
110 type: type, 110 type: type,
111 searchResult: entry, 111 searchResult: entry,
112 dartIdl: dartIdl[type] 112 dartIdl: dartIdl[type]
113 }; 113 };
114 fs.writeFileSync(absoluteDumpFileName + ".json", JSON.stringify(parseArgs), 114 fs.writeFileSync(absoluteDumpFileName + ".json", JSON.stringify(parseArgs),
115 'utf8'); 115 'utf8');
116 116
117 /* 117 /*
118 // TODO(jacobr): Make this run on platforms other than OS X. 118 // TODO(jacobr): Make this run on platforms other than OS X.
119 var cmd = '../../../client/tests/drt/DumpRenderTree.app/Contents/MacOS/' + 119 var cmd = '../../../client/tests/drt/Content Shell.app/Contents/MacOS/' +
120 'DumpRenderTree ' + absoluteDumpFileName; 120 Content Shell' + absoluteDumpFileName;
121 */ 121 */
122 // TODO(eub): Make this run on platforms other than Linux. 122 // TODO(eub): Make this run on platforms other than Linux.
123 var cmd = '../../../client/tests/drt/DumpRenderTree ' + absoluteDumpFileName; 123 var cmd = '../../../client/tests/drt/content_shell ' + absoluteDumpFileName;
124 console.log(cmd); 124 console.log(cmd);
125 exec(cmd, 125 exec(cmd,
126 function (error, stdout, stderr) { 126 function (error, stdout, stderr) {
127 var msgIndex = stdout.indexOf(START_DART_MESSAGE); 127 var msgIndex = stdout.indexOf(START_DART_MESSAGE);
128 console.log('all: ' + stdout); 128 console.log('all: ' + stdout);
129 console.log('stderr: ' + stderr); 129 console.log('stderr: ' + stderr);
130 if (error !== null) { 130 if (error !== null) {
131 console.log('exec error: ' + error); 131 console.log('exec error: ' + error);
132 } 132 }
133 133
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 tasks.push(createTask(type, entries[j], j)); 185 tasks.push(createTask(type, entries[j], j));
186 } 186 }
187 } else { 187 } else {
188 console.warn("No crawled files for " + type); 188 console.warn("No crawled files for " + type);
189 } 189 }
190 } 190 }
191 191
192 for (var p = 0; p < numProcesses; p++) { 192 for (var p = 0; p < numProcesses; p++) {
193 processNextTask(); 193 processNextTask();
194 } 194 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_suite.dart ('k') | utils/testrunner/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698