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

Unified Diff: tools/testing/dart/browser_test.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
Index: tools/testing/dart/browser_test.dart
===================================================================
--- tools/testing/dart/browser_test.dart (revision 26163)
+++ tools/testing/dart/browser_test.dart (working copy)
@@ -6,12 +6,14 @@
String getHtmlContents(String title,
String scriptType,
- Path sourceScript) =>
+ Path sourceScript,
+ bool fancyStacks) =>
"""
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
+ ${fancyStacks?'':'<meta name="dart.unittest" content="raw-stack-traces">'}
<title> Test $title </title>
<style>
.unittest-table { font-family:monospace; border:1px; }
@@ -36,12 +38,15 @@
</html>
""";
-String getHtmlLayoutContents(String scriptType, Path sourceScript) =>
+String getHtmlLayoutContents(String scriptType,
+ Path sourceScript,
+ bool fancyStacks) =>
"""
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
+ ${fancyStacks?'':'<meta name="dart.unittest" content="raw-stack-traces">'}
</head>
<body>
<script type="text/javascript">

Powered by Google App Engine
This is Rietveld 408576698