Files
sdk/tests/compiler/dart2js/sourcemaps/source_mapping_test.dart
T
Johnni Winther dbadf204aa Add source information to break, continue, == and constructor body calls
Change-Id: I3ca3dc1e1ed55b636808685bff5d017d422678e7
Reviewed-on: https://dart-review.googlesource.com/24923
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-12-05 11:40:41 +00:00

25 lines
821 B
Dart

// Copyright (c) 2015, 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.
import 'helpers/sourcemap_helper.dart';
import 'tools/source_mapping_tester.dart';
void main() {
// 'operators.dart' and 'invokes.dart' are tested individually to avoid
// test timeout.
test(['--exclude', 'operators.dart', 'invokes.dart'],
whiteListFunction: (String config, String file) {
if (file == 'others.dart') {
return (CodePoint point) {
if (point.jsCode.startsWith('target=')) {
// Switch continue target updates don't store the source information.
return true;
}
return false;
};
}
return emptyWhiteList;
});
}