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

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

Issue 1769013002: Add white-listing to sourcemap tests. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/source_mapping_invokes_test.dart
diff --git a/tests/compiler/dart2js/sourcemaps/source_mapping_invokes_test.dart b/tests/compiler/dart2js/sourcemaps/source_mapping_invokes_test.dart
index 20359e4017ce6ebe809ac04e0bb4da488dd6b8a4..ce4d3620020a05c611150f14bb74046f48647158 100644
--- a/tests/compiler/dart2js/sourcemaps/source_mapping_invokes_test.dart
+++ b/tests/compiler/dart2js/sourcemaps/source_mapping_invokes_test.dart
@@ -2,8 +2,18 @@
// 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.
-import 'source_mapping_tester.dart' as tester;
+import 'source_mapping_tester.dart';
+import 'sourcemap_helper.dart';
+import 'package:compiler/src/io/position_information.dart';
void main() {
- tester.main(['invokes']);
+ test(['invokes'], whiteListFunction: (String config, String file) {
+ if (config == 'cps') {
+ return (CodePoint codePoint) {
+ // Temporarily allow missing code points on expression statements.
+ return codePoint.kind == StepKind.EXPRESSION_STATEMENT;
+ };
+ }
+ return emptyWhiteList;
+ });
}
« no previous file with comments | « tests/compiler/dart2js/dart2js.status ('k') | tests/compiler/dart2js/sourcemaps/source_mapping_operators_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698