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

Unified Diff: tools/testing/dart/test_suite.dart

Issue 22859009: Changes to how we handle fancy stacks: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_suite.dart
===================================================================
--- tools/testing/dart/test_suite.dart (revision 26407)
+++ tools/testing/dart/test_suite.dart (working copy)
@@ -794,6 +794,12 @@
var vmArguments = new List.from(vmOptions);
vmArguments.addAll([
'--ignore-unrecognized-flags', '$tempDir/out.dart']);
+ // Turn off fancy stacks or stack filtering.
+ if (configuration['raw-stacks']) {
ricow1 2013/08/21 12:44:10 does this work, adding flags _after_ the dart file
ahe 2013/08/21 12:48:21 This is a flag to the Dart program, not the Dart V
gram 2013/08/21 17:12:38 Yes, these are passed to the Dart test. As it prov
+ vmArguments.add('--no-fancy-stacks');
+ } else if (!configuration['filter-stacks']) {
+ vmArguments.add('--no-filtered-stacks');
+ }
commands.add(CommandBuilder.instance.getCommand(
"vm", vmFileName, vmArguments, configurationDir));
} else {
@@ -804,6 +810,12 @@
case 'none':
var arguments = new List.from(vmOptions);
arguments.addAll(args);
+ // Turn off fancy stacks.
+ if (configuration['raw-stacks']) {
+ arguments.add('--no-fancy-stacks');
+ } else if (!configuration['filter-stacks']) {
+ arguments.add('--no-filtered-stacks');
+ }
return <Command>[CommandBuilder.instance.getCommand(
'vm', dartShellFileName, arguments, configurationDir)];
@@ -966,13 +978,16 @@
Path expectedOutput = null;
if (new File.fromPath(pngPath).existsSync()) {
expectedOutput = pngPath;
- content = getHtmlLayoutContents(scriptType, new Path("$scriptPath"));
+ content = getHtmlLayoutContents(scriptType, new Path("$scriptPath"),
+ !configuration['raw-stacks'], configuration['filter-stacks']);
} else if (new File.fromPath(txtPath).existsSync()) {
expectedOutput = txtPath;
- content = getHtmlLayoutContents(scriptType, new Path("$scriptPath"));
+ content = getHtmlLayoutContents(scriptType, new Path("$scriptPath"),
+ !configuration['raw-stacks'], configuration['filter-stacks']);
} else {
content = getHtmlContents(filename, scriptType,
- new Path("$scriptPath"));
+ new Path("$scriptPath"), !configuration['raw-stacks'],
+ configuration['filter-stacks']);
}
htmlTest.writeStringSync(content);
htmlTest.closeSync();
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698