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

Unified Diff: tests/compiler/dart2js/sourcemaps/sourcemap_html_templates.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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: tests/compiler/dart2js/sourcemaps/sourcemap_html_templates.dart
diff --git a/tests/compiler/dart2js/sourcemaps/sourcemap_html_templates.dart b/tests/compiler/dart2js/sourcemaps/sourcemap_html_templates.dart
index 6d0bcb2f674e36f37fcb4a1235326dd068aa9d9e..892b758df6a6c19cbef3fbe7c0f116ae8a5dd850 100644
--- a/tests/compiler/dart2js/sourcemaps/sourcemap_html_templates.dart
+++ b/tests/compiler/dart2js/sourcemaps/sourcemap_html_templates.dart
@@ -14,8 +14,7 @@ abstract class Configurations {
String getPath(String config, String file);
}
-void outputMultiConfigs(Uri uri,
- Configurations configurations) {
+void outputMultiConfigs(Uri uri, Configurations configurations) {
StringBuffer sb = new StringBuffer();
String defaultConfig = configurations.configs.first;
String defaultFile = configurations.files.first;
@@ -116,10 +115,7 @@ setFile('$defaultFile');
/// Outputs JavaScript/Dart source mapping traces into [uri].
void outputJsDartTrace(
- Uri uri,
- String jsCodeHtml,
- String dartCodeHtml,
- String jsTraceHtml) {
+ Uri uri, String jsCodeHtml, String dartCodeHtml, String jsTraceHtml) {
String html = '''
<div class="js-buffer">
${jsCodeHtml}
@@ -151,10 +147,10 @@ ${jsTraceHtml}
}
/// Outputs [html] with customized [css] in [uri].
-void outputInTemplate(Uri uri,
- String html,
- String css) {
- output(uri, '''
+void outputInTemplate(Uri uri, String html, String css) {
+ output(
+ uri,
+ '''
<html>
<head>
<style>
@@ -243,8 +239,7 @@ $html
}
/// Outputs [html] in [uri].
-void output(Uri uri,
- String html) {
+void output(Uri uri, String html) {
File outputFile = new File.fromUri(uri);
outputFile.writeAsStringSync(html);
}
« no previous file with comments | « tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart ('k') | tests/compiler/dart2js/sourcemaps/trace_graph.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698