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

Unified Diff: tests/compiler/dart2js/strip_comment_test.dart

Issue 1799283002: Delete support for source mirrors (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: new attempt Created 4 years, 7 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 | « tests/compiler/dart2js/quarantined/mirrors_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/strip_comment_test.dart
diff --git a/tests/compiler/dart2js/strip_comment_test.dart b/tests/compiler/dart2js/strip_comment_test.dart
deleted file mode 100644
index 40921a94eb5ba9b6ce470bfe0ca6f43ab5eabfff..0000000000000000000000000000000000000000
--- a/tests/compiler/dart2js/strip_comment_test.dart
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library strip_comment_test;
-
-import "package:expect/expect.dart";
-import 'package:compiler/src/mirrors/mirrors_util.dart';
-
-testComment(String strippedText, String commentText) {
- Expect.stringEquals(strippedText, stripComment(commentText));
-}
-
-void main() {
- testComment('', '//');
- testComment('', '// ');
- testComment(' ', '// ');
- testComment('foo bar baz', '//foo bar baz');
- testComment('foo bar baz', '// foo bar baz');
- testComment('foo bar baz ', '// foo bar baz ');
- testComment(' foo bar baz ', '// foo bar baz ');
-
- testComment('', '///');
- testComment('', '/// ');
- testComment(' ', '/// ');
- testComment('foo bar baz', '///foo bar baz');
- testComment('foo bar baz', '/// foo bar baz');
- testComment('foo bar baz ', '/// foo bar baz ');
- testComment(' foo bar baz ', '/// foo bar baz ');
-
- testComment('', '/**/');
- testComment('', '/* */');
- testComment(' ', '/* */');
- testComment('foo bar baz', '/*foo bar baz*/');
- testComment('foo bar baz', '/* foo bar baz*/');
- testComment('foo bar baz ', '/* foo bar baz */');
- testComment(' foo bar baz ', '/* foo bar baz */');
- testComment('foo\nbar\nbaz', '/*foo\nbar\nbaz*/');
- testComment('foo\nbar\nbaz', '/* foo\nbar\nbaz*/');
- testComment('foo \n bar \n baz ', '/* foo \n bar \n baz */');
- testComment('foo\nbar\nbaz', '/* foo\n *bar\n *baz*/');
- testComment('foo\nbar\nbaz', '/* foo\n * bar\n * baz*/');
- testComment('foo \nbar \nbaz ', '/* foo \n * bar \n * baz */');
- testComment('\nfoo\nbar\nbaz',
- '''/*
- * foo
- * bar
- * baz*/''');
- testComment('\nfoo\nbar\nbaz\n',
- '''/*
- * foo
- * bar
- * baz
- */''');
-
- testComment('', '/***/');
- testComment('', '/** */');
- testComment(' ', '/** */');
- testComment('foo bar baz', '/**foo bar baz*/');
- testComment('foo bar baz', '/** foo bar baz*/');
- testComment('foo bar baz ', '/** foo bar baz */');
- testComment(' foo bar baz ', '/** foo bar baz */');
- testComment('foo\nbar\nbaz', '/**foo\nbar\nbaz*/');
- testComment('foo\nbar\nbaz', '/** foo\nbar\nbaz*/');
- testComment('foo \n bar \n baz ', '/** foo \n bar \n baz */');
- testComment('foo\nbar\nbaz', '/** foo\n *bar\n *baz*/');
- testComment('foo\nbar\nbaz', '/** foo\n * bar\n * baz*/');
- testComment('foo \nbar \nbaz ', '/** foo \n * bar \n * baz */');
- testComment('\nfoo\nbar\nbaz',
- '''/**
- * foo
- * bar
- * baz*/''');
- testComment('\nfoo\nbar\nbaz\n',
- '''/**
- * foo
- * bar
- * baz
- */''');
-}
« no previous file with comments | « tests/compiler/dart2js/quarantined/mirrors_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698