From 8d445e0dff0266a007b5fa994d83f3ca711cfeee Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Wed, 11 Nov 2020 15:29:42 +0000 Subject: [PATCH] refactor(compiler-cli): move legacy compliance tests to new folder (#39617) This commit renames the original `compliance` test directory to `compliance_old`. Eventually this directory will be deleted once all the tests have been migrated to the new test case based compliance tests. PR Close #39617 --- .../test/{compliance => compliance_old}/BUILD.bazel | 4 ++-- .../test/{compliance => compliance_old}/README.md | 0 .../{compliance => compliance_old}/mock_compile/BUILD.bazel | 2 +- .../test/{compliance => compliance_old}/mock_compile/index.ts | 0 .../test/{compliance => compliance_old}/mock_compiler_spec.ts | 0 .../test/{compliance => compliance_old}/prelink/BUILD.bazel | 4 ++-- .../test/{compliance => compliance_old}/prelink/bootstrap.ts | 0 .../r3_compiler_compliance_spec.ts | 0 .../r3_view_compiler_binding_spec.ts | 0 .../r3_view_compiler_di_spec.ts | 0 .../r3_view_compiler_directives_spec.ts | 0 .../r3_view_compiler_i18n_spec.ts | 0 .../r3_view_compiler_input_outputs_spec.ts | 0 .../r3_view_compiler_listener_spec.ts | 0 .../r3_view_compiler_providers_spec.ts | 0 .../{compliance => compliance_old}/r3_view_compiler_spec.ts | 0 .../r3_view_compiler_styling_spec.ts | 0 .../r3_view_compiler_template_spec.ts | 0 18 files changed, 5 insertions(+), 5 deletions(-) rename packages/compiler-cli/test/{compliance => compliance_old}/BUILD.bazel (88%) rename packages/compiler-cli/test/{compliance => compliance_old}/README.md (100%) rename packages/compiler-cli/test/{compliance => compliance_old}/mock_compile/BUILD.bazel (86%) rename packages/compiler-cli/test/{compliance => compliance_old}/mock_compile/index.ts (100%) rename packages/compiler-cli/test/{compliance => compliance_old}/mock_compiler_spec.ts (100%) rename packages/compiler-cli/test/{compliance => compliance_old}/prelink/BUILD.bazel (86%) rename packages/compiler-cli/test/{compliance => compliance_old}/prelink/bootstrap.ts (100%) rename packages/compiler-cli/test/{compliance => compliance_old}/r3_compiler_compliance_spec.ts (100%) rename packages/compiler-cli/test/{compliance => compliance_old}/r3_view_compiler_binding_spec.ts (100%) rename packages/compiler-cli/test/{compliance => compliance_old}/r3_view_compiler_di_spec.ts (100%) rename packages/compiler-cli/test/{compliance => compliance_old}/r3_view_compiler_directives_spec.ts (100%) rename packages/compiler-cli/test/{compliance => compliance_old}/r3_view_compiler_i18n_spec.ts (100%) rename packages/compiler-cli/test/{compliance => compliance_old}/r3_view_compiler_input_outputs_spec.ts (100%) rename packages/compiler-cli/test/{compliance => compliance_old}/r3_view_compiler_listener_spec.ts (100%) rename packages/compiler-cli/test/{compliance => compliance_old}/r3_view_compiler_providers_spec.ts (100%) rename packages/compiler-cli/test/{compliance => compliance_old}/r3_view_compiler_spec.ts (100%) rename packages/compiler-cli/test/{compliance => compliance_old}/r3_view_compiler_styling_spec.ts (100%) rename packages/compiler-cli/test/{compliance => compliance_old}/r3_view_compiler_template_spec.ts (100%) diff --git a/packages/compiler-cli/test/compliance/BUILD.bazel b/packages/compiler-cli/test/compliance_old/BUILD.bazel similarity index 88% rename from packages/compiler-cli/test/compliance/BUILD.bazel rename to packages/compiler-cli/test/compliance_old/BUILD.bazel index e9ca4aae4e..3018c66b42 100644 --- a/packages/compiler-cli/test/compliance/BUILD.bazel +++ b/packages/compiler-cli/test/compliance_old/BUILD.bazel @@ -14,14 +14,14 @@ ts_library( "//packages/compiler", "//packages/compiler-cli", "//packages/compiler-cli/src/ngtsc/file_system", - "//packages/compiler-cli/test/compliance/mock_compile", + "//packages/compiler-cli/test/compliance_old/mock_compile", "//packages/compiler/test:test_utils", "@npm//typescript", ], ) jasmine_node_test( - name = "compliance", + name = "compliance_old", bootstrap = ["//tools/testing:node_no_angular_es5"], data = [ "//packages/compiler-cli/test/ngtsc/fake_core:npm_package", diff --git a/packages/compiler-cli/test/compliance/README.md b/packages/compiler-cli/test/compliance_old/README.md similarity index 100% rename from packages/compiler-cli/test/compliance/README.md rename to packages/compiler-cli/test/compliance_old/README.md diff --git a/packages/compiler-cli/test/compliance/mock_compile/BUILD.bazel b/packages/compiler-cli/test/compliance_old/mock_compile/BUILD.bazel similarity index 86% rename from packages/compiler-cli/test/compliance/mock_compile/BUILD.bazel rename to packages/compiler-cli/test/compliance_old/mock_compile/BUILD.bazel index 0dd814d256..9cd4bf7687 100644 --- a/packages/compiler-cli/test/compliance/mock_compile/BUILD.bazel +++ b/packages/compiler-cli/test/compliance_old/mock_compile/BUILD.bazel @@ -5,7 +5,7 @@ ts_library( testonly = True, srcs = ["index.ts"], visibility = [ - "//packages/compiler-cli/test/compliance:__subpackages__", + "//packages/compiler-cli/test/compliance_old:__subpackages__", ], deps = [ "//packages:types", diff --git a/packages/compiler-cli/test/compliance/mock_compile/index.ts b/packages/compiler-cli/test/compliance_old/mock_compile/index.ts similarity index 100% rename from packages/compiler-cli/test/compliance/mock_compile/index.ts rename to packages/compiler-cli/test/compliance_old/mock_compile/index.ts diff --git a/packages/compiler-cli/test/compliance/mock_compiler_spec.ts b/packages/compiler-cli/test/compliance_old/mock_compiler_spec.ts similarity index 100% rename from packages/compiler-cli/test/compliance/mock_compiler_spec.ts rename to packages/compiler-cli/test/compliance_old/mock_compiler_spec.ts diff --git a/packages/compiler-cli/test/compliance/prelink/BUILD.bazel b/packages/compiler-cli/test/compliance_old/prelink/BUILD.bazel similarity index 86% rename from packages/compiler-cli/test/compliance/prelink/BUILD.bazel rename to packages/compiler-cli/test/compliance_old/prelink/BUILD.bazel index d4a988f8e8..eed261d4c0 100644 --- a/packages/compiler-cli/test/compliance/prelink/BUILD.bazel +++ b/packages/compiler-cli/test/compliance_old/prelink/BUILD.bazel @@ -7,7 +7,7 @@ ts_library( deps = [ "//packages:types", "//packages/compiler-cli/linker/babel", - "//packages/compiler-cli/test/compliance/mock_compile", + "//packages/compiler-cli/test/compliance_old/mock_compile", "@npm//@babel/core", "@npm//@babel/generator", "@npm//@babel/template", @@ -32,6 +32,6 @@ jasmine_node_test( "ivy-only", ], deps = [ - "//packages/compiler-cli/test/compliance:test_lib", + "//packages/compiler-cli/test/compliance_old:test_lib", ], ) diff --git a/packages/compiler-cli/test/compliance/prelink/bootstrap.ts b/packages/compiler-cli/test/compliance_old/prelink/bootstrap.ts similarity index 100% rename from packages/compiler-cli/test/compliance/prelink/bootstrap.ts rename to packages/compiler-cli/test/compliance_old/prelink/bootstrap.ts diff --git a/packages/compiler-cli/test/compliance/r3_compiler_compliance_spec.ts b/packages/compiler-cli/test/compliance_old/r3_compiler_compliance_spec.ts similarity index 100% rename from packages/compiler-cli/test/compliance/r3_compiler_compliance_spec.ts rename to packages/compiler-cli/test/compliance_old/r3_compiler_compliance_spec.ts diff --git a/packages/compiler-cli/test/compliance/r3_view_compiler_binding_spec.ts b/packages/compiler-cli/test/compliance_old/r3_view_compiler_binding_spec.ts similarity index 100% rename from packages/compiler-cli/test/compliance/r3_view_compiler_binding_spec.ts rename to packages/compiler-cli/test/compliance_old/r3_view_compiler_binding_spec.ts diff --git a/packages/compiler-cli/test/compliance/r3_view_compiler_di_spec.ts b/packages/compiler-cli/test/compliance_old/r3_view_compiler_di_spec.ts similarity index 100% rename from packages/compiler-cli/test/compliance/r3_view_compiler_di_spec.ts rename to packages/compiler-cli/test/compliance_old/r3_view_compiler_di_spec.ts diff --git a/packages/compiler-cli/test/compliance/r3_view_compiler_directives_spec.ts b/packages/compiler-cli/test/compliance_old/r3_view_compiler_directives_spec.ts similarity index 100% rename from packages/compiler-cli/test/compliance/r3_view_compiler_directives_spec.ts rename to packages/compiler-cli/test/compliance_old/r3_view_compiler_directives_spec.ts diff --git a/packages/compiler-cli/test/compliance/r3_view_compiler_i18n_spec.ts b/packages/compiler-cli/test/compliance_old/r3_view_compiler_i18n_spec.ts similarity index 100% rename from packages/compiler-cli/test/compliance/r3_view_compiler_i18n_spec.ts rename to packages/compiler-cli/test/compliance_old/r3_view_compiler_i18n_spec.ts diff --git a/packages/compiler-cli/test/compliance/r3_view_compiler_input_outputs_spec.ts b/packages/compiler-cli/test/compliance_old/r3_view_compiler_input_outputs_spec.ts similarity index 100% rename from packages/compiler-cli/test/compliance/r3_view_compiler_input_outputs_spec.ts rename to packages/compiler-cli/test/compliance_old/r3_view_compiler_input_outputs_spec.ts diff --git a/packages/compiler-cli/test/compliance/r3_view_compiler_listener_spec.ts b/packages/compiler-cli/test/compliance_old/r3_view_compiler_listener_spec.ts similarity index 100% rename from packages/compiler-cli/test/compliance/r3_view_compiler_listener_spec.ts rename to packages/compiler-cli/test/compliance_old/r3_view_compiler_listener_spec.ts diff --git a/packages/compiler-cli/test/compliance/r3_view_compiler_providers_spec.ts b/packages/compiler-cli/test/compliance_old/r3_view_compiler_providers_spec.ts similarity index 100% rename from packages/compiler-cli/test/compliance/r3_view_compiler_providers_spec.ts rename to packages/compiler-cli/test/compliance_old/r3_view_compiler_providers_spec.ts diff --git a/packages/compiler-cli/test/compliance/r3_view_compiler_spec.ts b/packages/compiler-cli/test/compliance_old/r3_view_compiler_spec.ts similarity index 100% rename from packages/compiler-cli/test/compliance/r3_view_compiler_spec.ts rename to packages/compiler-cli/test/compliance_old/r3_view_compiler_spec.ts diff --git a/packages/compiler-cli/test/compliance/r3_view_compiler_styling_spec.ts b/packages/compiler-cli/test/compliance_old/r3_view_compiler_styling_spec.ts similarity index 100% rename from packages/compiler-cli/test/compliance/r3_view_compiler_styling_spec.ts rename to packages/compiler-cli/test/compliance_old/r3_view_compiler_styling_spec.ts diff --git a/packages/compiler-cli/test/compliance/r3_view_compiler_template_spec.ts b/packages/compiler-cli/test/compliance_old/r3_view_compiler_template_spec.ts similarity index 100% rename from packages/compiler-cli/test/compliance/r3_view_compiler_template_spec.ts rename to packages/compiler-cli/test/compliance_old/r3_view_compiler_template_spec.ts