mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:39:49 +00:00
Add sourcemap_testing package
Change-Id: I9655ebf5bb93c61f9d1f0eae1fbc615761f23b47 Reviewed-on: https://dart-review.googlesource.com/22520 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
This commit is contained in:
parent
cc7833f786
commit
b9a222615b
|
@ -82,6 +82,7 @@ shelf_packages_handler:third_party/pkg/shelf_packages_handler/lib
|
|||
shelf_static:third_party/pkg/shelf_static/lib
|
||||
shelf_web_socket:third_party/pkg/shelf_web_socket/lib
|
||||
source_map_stack_trace:third_party/pkg/source_map_stack_trace/lib
|
||||
sourcemap_testing:pkg/sourcemap_testing/lib
|
||||
source_maps:third_party/pkg/source_maps/lib
|
||||
source_span:third_party/pkg/source_span/lib
|
||||
stack_trace:third_party/pkg/stack_trace/lib
|
||||
|
|
|
@ -9,7 +9,7 @@ import 'package:expect/expect.dart';
|
|||
import 'package:source_maps/source_maps.dart';
|
||||
import 'package:source_maps/src/utils.dart';
|
||||
|
||||
import '../../annotated_code_helper.dart';
|
||||
import 'annotated_code_helper.dart';
|
||||
|
||||
const String EXCEPTION_MARKER = '>ExceptionMarker<';
|
||||
const String INPUT_FILE_NAME = 'in.dart';
|
6
pkg/sourcemap_testing/pubspec.yaml
Normal file
6
pkg/sourcemap_testing/pubspec.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Helper package for testing sourcemaps. Used by ddc and dart2js.
|
||||
name: sourcemap_testing
|
||||
#version: do-not-upload
|
||||
dependencies:
|
||||
package_config: '>=0.1.1 <2.0.0'
|
||||
pub_semver: ^1.2.1
|
|
@ -16,8 +16,8 @@ import 'package:compiler/src/io/source_file.dart';
|
|||
import 'package:compiler/src/source_file_provider.dart';
|
||||
import 'package:compiler/src/world.dart';
|
||||
import 'package:expect/expect.dart';
|
||||
import 'package:sourcemap_testing/src/annotated_code_helper.dart';
|
||||
|
||||
import '../annotated_code_helper.dart';
|
||||
import '../memory_compiler.dart';
|
||||
import '../equivalence/id_equivalence.dart';
|
||||
import '../kernel/test_helpers.dart';
|
||||
|
|
|
@ -16,7 +16,7 @@ import 'package:compiler/src/resolution/access_semantics.dart';
|
|||
import 'package:compiler/src/resolution/send_structure.dart';
|
||||
import 'package:compiler/src/tree/nodes.dart' as ast;
|
||||
import 'package:kernel/ast.dart' as ir;
|
||||
import '../annotated_code_helper.dart';
|
||||
import 'package:sourcemap_testing/src/annotated_code_helper.dart';
|
||||
import '../equivalence/id_equivalence.dart';
|
||||
import '../equivalence/id_equivalence_helper.dart';
|
||||
|
||||
|
|
|
@ -13,9 +13,9 @@ import 'package:expect/expect.dart';
|
|||
import 'package:compiler/src/commandline_options.dart';
|
||||
import 'package:compiler/src/dart2js.dart' as dart2js;
|
||||
import 'package:compiler/src/filenames.dart';
|
||||
import 'package:sourcemap_testing/src/stacktrace_helper.dart';
|
||||
|
||||
import 'compiler_helper.dart';
|
||||
import '../sourcemaps/helpers/stacktrace_helper.dart';
|
||||
import '../serialization/helper.dart';
|
||||
|
||||
const SOURCE = const {
|
||||
|
|
|
@ -10,8 +10,8 @@ import 'package:compiler/compiler_new.dart';
|
|||
import 'package:compiler/src/commandline_options.dart';
|
||||
import 'package:expect/expect.dart';
|
||||
import 'package:source_maps/source_maps.dart';
|
||||
import 'package:sourcemap_testing/src/annotated_code_helper.dart';
|
||||
|
||||
import '../annotated_code_helper.dart';
|
||||
import '../memory_compiler.dart';
|
||||
|
||||
const List<String> TESTS = const <String>[
|
||||
|
|
|
@ -11,7 +11,7 @@ import 'package:compiler/compiler_new.dart';
|
|||
import 'package:compiler/src/commandline_options.dart';
|
||||
import 'package:compiler/src/dart2js.dart' as entry;
|
||||
|
||||
import 'helpers/stacktrace_helper.dart';
|
||||
import 'package:sourcemap_testing/src/stacktrace_helper.dart';
|
||||
|
||||
void main(List<String> args) {
|
||||
ArgParser argParser = new ArgParser(allowTrailingOptions: true);
|
||||
|
|
Loading…
Reference in a new issue