From c560423b52dfe72e2e164ec6e5e5a55d31f1fe88 Mon Sep 17 00:00:00 2001 From: "JiaLi.Passion" Date: Sun, 1 Apr 2018 00:44:38 +0900 Subject: [PATCH] build: upgrade zone.js (#23108) PR Close #23108 --- BUILD.bazel | 6 +- aio/content/examples/http/src/main-specs.ts | 7 +- .../examples/setup/src/quickstart-specs.html | 7 +- .../examples/testing/src/main-specs.ts | 7 +- aio/content/examples/testing/src/tests.html | 7 +- .../karma.conf.ajs.js | 7 +- .../upgrade-phonecat-2-hybrid/karma.conf.js | 7 +- .../upgrade-phonecat-3-final/karma.conf.js | 7 +- .../webpack/config/karma-test-shim.js | 7 +- aio/package.json | 4 +- aio/scripts/_payload-limits.json | 4 +- aio/src/test.ts | 7 +- .../shared/boilerplate/cli/src/test.ts | 7 +- aio/yarn.lock | 6 +- integration/_payload-limits.json | 2 +- karma-js.conf.js | 7 +- package.json | 4 +- packages/core/testing/src/async.ts | 97 ++--------- packages/core/testing/src/async_fallback.ts | 116 +++++++++++++ packages/core/testing/src/fake_async.ts | 101 ++++-------- .../core/testing/src/fake_async_fallback.ts | 155 ++++++++++++++++++ packages/elements/test/BUILD.bazel | 6 +- packages/router/karma.conf.js | 7 +- yarn.lock | 6 +- 24 files changed, 345 insertions(+), 246 deletions(-) create mode 100644 packages/core/testing/src/async_fallback.ts create mode 100644 packages/core/testing/src/fake_async_fallback.ts diff --git a/BUILD.bazel b/BUILD.bazel index 064a43a778..c4583ffd86 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -40,12 +40,8 @@ filegroup( srcs = [ "//:node_modules/reflect-metadata/Reflect.js", "//:node_modules/zone.js/dist/zone.js", - "//:node_modules/zone.js/dist/async-test.js", - "//:node_modules/zone.js/dist/sync-test.js", - "//:node_modules/zone.js/dist/fake-async-test.js", + "//:node_modules/zone.js/dist/zone-testing.js", "//:node_modules/zone.js/dist/task-tracking.js", - "//:node_modules/zone.js/dist/proxy.js", - "//:node_modules/zone.js/dist/jasmine-patch.js", ], ) diff --git a/aio/content/examples/http/src/main-specs.ts b/aio/content/examples/http/src/main-specs.ts index c54ce8da2e..53af1b08a8 100644 --- a/aio/content/examples/http/src/main-specs.ts +++ b/aio/content/examples/http/src/main-specs.ts @@ -6,12 +6,7 @@ declare var jasmine; import './polyfills'; -import 'zone.js/dist/async-test'; -import 'zone.js/dist/fake-async-test'; -import 'zone.js/dist/long-stack-trace-zone'; -import 'zone.js/dist/proxy.js'; -import 'zone.js/dist/sync-test'; -import 'zone.js/dist/jasmine-patch'; +import 'zone.js/dist/zone-testing'; import { getTestBed } from '@angular/core/testing'; import { diff --git a/aio/content/examples/setup/src/quickstart-specs.html b/aio/content/examples/setup/src/quickstart-specs.html index 9bc81ccf2e..b569d6a0ec 100644 --- a/aio/content/examples/setup/src/quickstart-specs.html +++ b/aio/content/examples/setup/src/quickstart-specs.html @@ -21,12 +21,7 @@ - - - - - - + - - - - - - +