mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
70 lines
1.3 KiB
Text
70 lines
1.3 KiB
Text
load("//packages/zone.js:tools.bzl", "jasmine_test", "ts_project")
|
|
|
|
ts_project(
|
|
name = "patched_init",
|
|
testonly = True,
|
|
srcs = [
|
|
"enable-clock-patch.ts",
|
|
"patched.init.ts",
|
|
],
|
|
deps = [
|
|
"//packages/zone.js/test:node_entry_point",
|
|
],
|
|
)
|
|
|
|
ts_project(
|
|
name = "test_patched_lib",
|
|
testonly = True,
|
|
srcs = [
|
|
"fake-async-patched-clock.spec.ts",
|
|
],
|
|
deps = [
|
|
"//packages/zone.js/lib:zone_d_ts",
|
|
],
|
|
)
|
|
|
|
ts_project(
|
|
name = "unpatched_init",
|
|
testonly = True,
|
|
srcs = [
|
|
"unpatched.init.ts",
|
|
],
|
|
deps = [
|
|
"//packages/zone.js/test:node_entry_point",
|
|
],
|
|
)
|
|
|
|
ts_project(
|
|
name = "test_unpatched_lib",
|
|
testonly = True,
|
|
srcs = [
|
|
"fake-async-unpatched-clock.spec.ts",
|
|
],
|
|
deps = [
|
|
"//packages/zone.js/lib:zone_d_ts",
|
|
],
|
|
)
|
|
|
|
jasmine_test(
|
|
name = "test_patched",
|
|
data = [
|
|
":patched.init.js",
|
|
":patched_init",
|
|
":test_patched_lib",
|
|
],
|
|
fixed_args = [
|
|
"--require=$$JS_BINARY__RUNFILES/$(rlocationpath :patched.init.js)",
|
|
],
|
|
)
|
|
|
|
jasmine_test(
|
|
name = "test_unpatched",
|
|
data = [
|
|
":test_unpatched_lib",
|
|
":unpatched.init.js",
|
|
":unpatched_init",
|
|
],
|
|
fixed_args = [
|
|
"--require=$$JS_BINARY__RUNFILES/$(rlocationpath :unpatched.init.js)",
|
|
],
|
|
)
|