_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/core/test/linker/integration_spec.ts_1793_11119
scribe('integration tests', function () { describe('react to record changes', function () { it('should consume text node changes', () => { TestBed.configureTestingModule({declarations: [MyComp]}); const template = '<div>{{ctxProp}}</div>'; TestBed.overrideComponent(MyComp, {set: {template}}); ...
{ "end_byte": 11119, "start_byte": 1793, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/integration_spec.ts" }
angular/packages/core/test/linker/integration_spec.ts_11125_18292
('should support nested components.', () => { TestBed.configureTestingModule({declarations: [MyComp, ChildComp]}); const template = '<child-cmp></child-cmp>'; TestBed.overrideComponent(MyComp, {set: {template}}); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); ...
{ "end_byte": 18292, "start_byte": 11125, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/integration_spec.ts" }
angular/packages/core/test/linker/integration_spec.ts_18298_23156
scribe('reference bindings', () => { it('should assign a component to a ref-', () => { TestBed.configureTestingModule({declarations: [MyComp, ChildComp]}); const template = '<p><child-cmp ref-alice></child-cmp></p>'; TestBed.overrideComponent(MyComp, {set: {template}}); const fixtu...
{ "end_byte": 23156, "start_byte": 18298, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/integration_spec.ts" }
angular/packages/core/test/linker/integration_spec.ts_23162_32122
scribe('OnPush components', () => { it('should use ChangeDetectorRef to manually request a check', () => { TestBed.configureTestingModule({declarations: [MyComp, [[PushCmpWithRef]]]}); const template = '<push-cmp-with-ref #cmp></push-cmp-with-ref>'; TestBed.overrideComponent(MyComp, {set: ...
{ "end_byte": 32122, "start_byte": 23162, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/integration_spec.ts" }
angular/packages/core/test/linker/integration_spec.ts_32128_40477
('should support [()] syntax', waitForAsync(() => { TestBed.configureTestingModule({declarations: [MyComp, DirectiveWithTwoWayBinding]}); const template = '<div [(control)]="ctxProp" two-way></div>'; TestBed.overrideComponent(MyComp, {set: {template}}); const fixture = TestBed.createComponent(My...
{ "end_byte": 40477, "start_byte": 32128, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/integration_spec.ts" }
angular/packages/core/test/linker/integration_spec.ts_40483_50389
('should support render global events from multiple directives', () => { TestBed.configureTestingModule({ declarations: [MyComp, DirectiveListeningDomEvent, DirectiveListeningDomEventOther], }); const template = '<div *ngIf="ctxBoolProp" listener listenerother></div>'; TestBed.overrideCo...
{ "end_byte": 50389, "start_byte": 40483, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/integration_spec.ts" }
angular/packages/core/test/linker/integration_spec.ts_50395_60324
('should support custom interpolation', () => { TestBed.configureTestingModule({ declarations: [ MyComp, ComponentWithCustomInterpolationA, ComponentWithCustomInterpolationB, ComponentWithDefaultInterpolation, ], }); const template = `<div>{{ctxP...
{ "end_byte": 60324, "start_byte": 50395, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/integration_spec.ts" }
angular/packages/core/test/linker/integration_spec.ts_60328_68755
('should support imperative views', () => { TestBed.configureTestingModule({declarations: [MyComp, SimpleImperativeViewComponent]}); const template = '<simple-imp-cmp></simple-imp-cmp>'; TestBed.overrideComponent(MyComp, {set: {template}}); const fixture = TestBed.createComponent(MyComp); expect(fi...
{ "end_byte": 68755, "start_byte": 60328, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/integration_spec.ts" }
angular/packages/core/test/linker/integration_spec.ts_68759_78238
scribe('Property bindings', () => { it('should throw on bindings to unknown properties', () => { TestBed.configureTestingModule({declarations: [MyComp]}); const template = '<div unknown="{{ctxProp}}"></div>'; TestBed.overrideComponent(MyComp, {set: {template}}); const spy = spyOn(console, '...
{ "end_byte": 78238, "start_byte": 68759, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/integration_spec.ts" }
angular/packages/core/test/linker/integration_spec.ts_78242_87360
scribe('property decorators', () => { it('should support property decorators', () => { TestBed.configureTestingModule({ declarations: [MyComp, DirectiveWithPropDecorators], schemas: [NO_ERRORS_SCHEMA], }); const template = '<with-prop-decorators elProp="aaa"></with-prop-decorators>...
{ "end_byte": 87360, "start_byte": 78242, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/integration_spec.ts" }
angular/packages/core/test/linker/integration_spec.ts_87362_94946
ponent({ selector: 'cmp-with-custom-interpolation-a', template: `<div>{%text%}</div>`, interpolation: ['{%', '%}'], standalone: false, }) class ComponentWithCustomInterpolationA { text = 'Custom Interpolation A'; } @Component({ selector: 'cmp-with-custom-interpolation-b', template: `<div>{**text%}</div> ...
{ "end_byte": 94946, "start_byte": 87362, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/integration_spec.ts" }
angular/packages/core/test/linker/integration_spec.ts_94948_102303
ective({ selector: '[update-host-properties]', host: {'[id]': 'id'}, standalone: false, }) class DirectiveUpdatingHostProperties { id: string; constructor() { this.id = 'one'; } } @Directive({ selector: '[listener]', host: {'(event)': 'onEvent($event)'}, standalone: false, }) class DirectiveList...
{ "end_byte": 102303, "start_byte": 94948, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/integration_spec.ts" }
angular/packages/core/test/linker/integration_spec.ts_102305_105051
ective({ selector: '[someImpvp]', inputs: ['someImpvp'], standalone: false, }) class SomeImperativeViewport { view: EmbeddedViewRef<Object> | null; anchor: any; constructor( public vc: ViewContainerRef, public templateRef: TemplateRef<Object>, @Inject(ANCHOR_ELEMENT) anchor: any, ) { this....
{ "end_byte": 105051, "start_byte": 102305, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/integration_spec.ts" }
angular/packages/core/test/linker/projection_integration_spec.ts_0_741
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ɵgetDOM as getDOM} from '@angular/common'; import { Component, ComponentRef, createComponent, Direct...
{ "end_byte": 741, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/projection_integration_spec.ts" }
angular/packages/core/test/linker/projection_integration_spec.ts_743_9218
escribe('projection', () => { beforeEach(() => TestBed.configureTestingModule({declarations: [MainComp, OtherComp, Simple]})); it('should support simple components', () => { const template = '<simple><div>A</div></simple>'; TestBed.overrideComponent(MainComp, {set: {template}}); const main = TestBed.cr...
{ "end_byte": 9218, "start_byte": 743, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/projection_integration_spec.ts" }
angular/packages/core/test/linker/projection_integration_spec.ts_9222_17719
t('should redistribute non-continuous blocks of nodes when the shadow dom changes', () => { @Component({ selector: 'child', template: `<ng-content></ng-content>(<ng-template [ngIf]="showing"><ng-content select="div"></ng-content></ng-template>)`, standalone: false, }) class Child { @...
{ "end_byte": 17719, "start_byte": 9222, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/projection_integration_spec.ts" }
angular/packages/core/test/linker/projection_integration_spec.ts_17723_25491
f (getDOM().supportsDOMEvents) { it('should support non emulated styles', () => { TestBed.configureTestingModule({declarations: [OtherComp]}); TestBed.overrideComponent(MainComp, { set: { template: '<div class="redStyle"></div>', styles: ['.redStyle { color: red}'], ...
{ "end_byte": 25491, "start_byte": 17723, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/projection_integration_spec.ts" }
angular/packages/core/test/linker/projection_integration_spec.ts_25495_33688
escribe('projectable nodes', () => { @Component({ selector: 'test', template: '', standalone: false, }) class TestComponent { constructor(public vcr: ViewContainerRef) {} } @Component({ selector: 'with-content', template: '', standalone: false, }) c...
{ "end_byte": 33688, "start_byte": 25495, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/projection_integration_spec.ts" }
angular/packages/core/test/linker/projection_integration_spec.ts_33690_35282
Component({ selector: 'tree', inputs: ['depth'], template: 'TREE({{depth}}:<tree *manual [depth]="depth+1"></tree>)', standalone: false, }) class Tree { depth = 0; } @Component({ selector: 'cmp-d', template: `<i>{{tagName}}</i>`, standalone: false, }) class CmpD { tagName: string; constructor(eleme...
{ "end_byte": 35282, "start_byte": 33690, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/projection_integration_spec.ts" }
angular/packages/core/test/linker/view_injector_integration_spec.ts_0_7152
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { Attribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, createComponent as coreCreateCo...
{ "end_byte": 7152, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/view_injector_integration_spec.ts" }
angular/packages/core/test/linker/view_injector_integration_spec.ts_7154_15111
describe('View injector', () => { const TOKEN = new InjectionToken<string>('token'); beforeEach(() => { TestBed.configureTestingModule({ declarations: [TestComp], providers: [ {provide: TOKEN, useValue: 'appService'}, {provide: 'appService', useFactory: (v: string) => v, deps: [TOKE...
{ "end_byte": 15111, "start_byte": 7154, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/view_injector_integration_spec.ts" }
angular/packages/core/test/linker/view_injector_integration_spec.ts_15117_23556
describe('injecting eager providers into an eager provider via Injector.get', () => { it('should inject providers that were declared before it', () => { @Component({ template: '', providers: [ {provide: 'eager1', useFactory: () => 'v1'}, { provide:...
{ "end_byte": 23556, "start_byte": 15117, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/view_injector_integration_spec.ts" }
angular/packages/core/test/linker/view_injector_integration_spec.ts_23562_29254
it( 'should not instantiate a directive in a view that has a host dependency on providers' + ' of the component', () => { TestBed.configureTestingModule({declarations: [SimpleComponent, NeedsServiceFromHost]}); TestBed.overrideComponent(SimpleComponent, { set: {providers: [...
{ "end_byte": 29254, "start_byte": 23562, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/view_injector_integration_spec.ts" }
angular/packages/core/test/linker/view_injector_integration_spec.ts_29258_35986
describe('refs', () => { it('should inject ElementRef', () => { TestBed.configureTestingModule({declarations: [NeedsElementRef]}); const el = createComponent('<div needsElementRef></div>'); expect(el.children[0].injector.get(NeedsElementRef).elementRef.nativeElement).toBe( el.children[0].n...
{ "end_byte": 35986, "start_byte": 29258, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/view_injector_integration_spec.ts" }
angular/packages/core/test/linker/view_injector_integration_spec.ts_35990_40108
describe('pipes', () => { it('should instantiate pipes that have dependencies', () => { TestBed.configureTestingModule({declarations: [SimpleDirective, PipeNeedsService]}); const el = createComponent('<div [simpleDirective]="true | pipeNeedsService"></div>', [ {provide: 'service', useValue: 'pi...
{ "end_byte": 40108, "start_byte": 35990, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/view_injector_integration_spec.ts" }
angular/packages/core/test/linker/resource_loader_mock.ts_0_4030
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ResourceLoader} from '@angular/compiler'; /** * A mock implementation of {@link ResourceLoader} that allow...
{ "end_byte": 4030, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/resource_loader_mock.ts" }
angular/packages/core/test/linker/regression_integration_spec.ts_0_963
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common'; import { ApplicationRef, Component, ComponentRef,...
{ "end_byte": 963, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/regression_integration_spec.ts" }
angular/packages/core/test/linker/regression_integration_spec.ts_965_9834
escribe('regressions', () => { beforeEach(() => { TestBed.configureTestingModule({declarations: [MyComp1, PlatformPipe]}); }); describe('platform pipes', () => { it('should overwrite them by custom pipes', () => { TestBed.configureTestingModule({declarations: [CustomPipe]}); const template = ...
{ "end_byte": 9834, "start_byte": 965, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/regression_integration_spec.ts" }
angular/packages/core/test/linker/regression_integration_spec.ts_9838_18412
t('should not recreate TemplateRef references during dirty checking', () => { @Component({ template: '<div [someDir]="someRef"></div><ng-template #someRef></ng-template>', standalone: false, }) class MyComp {} @Directive({ selector: '[someDir]', standalone: false, }) cla...
{ "end_byte": 18412, "start_byte": 9838, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/regression_integration_spec.ts" }
angular/packages/core/test/linker/regression_integration_spec.ts_18414_18713
Component({ selector: 'right', template: `R<left *ngIf="false"></left>`, standalone: false, }) class RightComp {} @Component({ selector: 'fakeRecursiveComp', template: `[<left *ngIf="false"></left><right *ngIf="false"></right>]`, standalone: false, }) export class FakeRecursiveComp {}
{ "end_byte": 18713, "start_byte": 18414, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/regression_integration_spec.ts" }
angular/packages/core/test/linker/query_integration_spec.ts_0_1843
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, asNativeElements, Compo...
{ "end_byte": 1843, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/query_integration_spec.ts" }
angular/packages/core/test/linker/query_integration_spec.ts_1847_9898
describe('querying by directive type', () => { it('should contain all direct child directives in the light dom (constructor)', () => { const template = ` <div text="1"></div> <needs-query text="2"> <div text="3"> <div text="too-deep"></div> <...
{ "end_byte": 9898, "start_byte": 1847, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/query_integration_spec.ts" }
angular/packages/core/test/linker/query_integration_spec.ts_9902_18431
describe('query for TemplateRef', () => { it('should find TemplateRefs in the light and shadow dom', () => { const template = '<needs-tpl><ng-template><div>light</div></ng-template></needs-tpl>'; const view = createTestCmpAndDetectChanges(MyComp0, template); const needsTpl: NeedsTpl = view.debugEl...
{ "end_byte": 18431, "start_byte": 9902, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/query_integration_spec.ts" }
angular/packages/core/test/linker/query_integration_spec.ts_18435_26210
describe('querying by var binding', () => { it('should contain all the child directives in the light dom with the given var binding', () => { const template = '<needs-query-by-ref-binding #q>' + '<div *ngFor="let item of list" [text]="item" #textLabel="textDir"></div>' + '</needs-query...
{ "end_byte": 26210, "start_byte": 18435, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/query_integration_spec.ts" }
angular/packages/core/test/linker/query_integration_spec.ts_26214_34436
describe('query over moved templates', () => { it('should include manually projected templates in queries', () => { const template = '<manual-projecting #q><ng-template><div text="1"></div></ng-template></manual-projecting>'; const view = createTestCmpAndDetectChanges(MyComp0, template); c...
{ "end_byte": 34436, "start_byte": 26214, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/query_integration_spec.ts" }
angular/packages/core/test/linker/query_integration_spec.ts_34438_40241
@Component({ selector: 'needs-query-and-project', template: '<div *ngFor="let dir of query">{{dir.text}}|</div><ng-content></ng-content>', standalone: false, }) class NeedsQueryAndProject { @ContentChildren(TextDirective) query!: QueryList<TextDirective>; } @Component({ selector: 'needs-view-query', templ...
{ "end_byte": 40241, "start_byte": 34438, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/query_integration_spec.ts" }
angular/packages/core/test/linker/security_integration_spec.ts_0_748
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, Directive, HostBinding, Input, NO_ERRORS_SCHEMA} from '@angular/core'; import {ComponentFixture, ...
{ "end_byte": 748, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/security_integration_spec.ts" }
angular/packages/core/test/linker/security_integration_spec.ts_750_9007
describe('security integration tests', function () { beforeEach(() => { TestBed.configureTestingModule({ declarations: [SecuredComponent, OnPrefixDir], }); }); beforeEach(() => { // Disable logging for these tests. spyOn(console, 'log').and.callFake(() => {}); }); describe('events', ()...
{ "end_byte": 9007, "start_byte": 750, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/security_integration_spec.ts" }
angular/packages/core/test/linker/security_integration_spec.ts_9011_10270
describe('translation', () => { it('should throw error on security-sensitive attributes with constant values', () => { const template = `<iframe srcdoc="foo" i18n-srcdoc></iframe>`; TestBed.overrideComponent(SecuredComponent, {set: {template}}); expect(() => TestBed.createComponent(SecuredCompone...
{ "end_byte": 10270, "start_byte": 9011, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/security_integration_spec.ts" }
angular/packages/core/test/linker/change_detection_integration_spec.ts_0_3982
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ResourceLoader} from '@angular/compiler'; import { AfterContentChecked, AfterContentInit, AfterViewChe...
{ "end_byte": 3982, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/change_detection_integration_spec.ts" }
angular/packages/core/test/linker/change_detection_integration_spec.ts_3988_12818
describe('expressions', () => { it('should support literals', fakeAsync(() => { expect(_bindAndCheckSimpleValue(10)).toEqual(['id=10']); })); it('should strip quotes from literals', fakeAsync(() => { expect(_bindAndCheckSimpleValue('"str"')).toEqual(['id=str']); })); it('...
{ "end_byte": 12818, "start_byte": 3988, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/change_detection_integration_spec.ts" }
angular/packages/core/test/linker/change_detection_integration_spec.ts_12826_18159
it('should support method calls', fakeAsync(() => { const ctx = _bindSimpleValue('sayHi("Jim")', Person); ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=Hi, Jim']); })); it('should support function calls', fakeAsync(() => { const ctx = _bindSimpleValue('a()(99)...
{ "end_byte": 18159, "start_byte": 12826, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/change_detection_integration_spec.ts" }
angular/packages/core/test/linker/change_detection_integration_spec.ts_18167_25821
describe('pipes', () => { it('should use the return value of the pipe', fakeAsync(() => { const ctx = _bindSimpleValue('name | countingPipe', Person); ctx.componentInstance.name = 'bob'; ctx.detectChanges(false); expect(renderLog.loggedValues).toEqual(['bob state:0']); ...
{ "end_byte": 25821, "start_byte": 18167, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/change_detection_integration_spec.ts" }
angular/packages/core/test/linker/change_detection_integration_spec.ts_25827_27481
describe('change notification', () => { describe('updating directives', () => { it('should happen without invoking the renderer', fakeAsync(() => { const ctx = createCompFixture('<div testDirective [a]="42"></div>'); ctx.detectChanges(false); expect(renderLog.log).toEqual([])...
{ "end_byte": 27481, "start_byte": 25827, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/change_detection_integration_spec.ts" }
angular/packages/core/test/linker/change_detection_integration_spec.ts_27487_35638
describe('lifecycle', () => { function createCompWithContentAndViewChild(): ComponentFixture<any> { TestBed.overrideComponent(AnotherComponent, { set: new Component({ selector: 'other-cmp', template: '<div testDirective="viewChild"></div>', }), }); ...
{ "end_byte": 35638, "start_byte": 27487, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/change_detection_integration_spec.ts" }
angular/packages/core/test/linker/change_detection_integration_spec.ts_35646_42791
describe('ngAfterViewInit', () => { it('should be called after processing the view children', fakeAsync(() => { const ctx = createCompWithContentAndViewChild(); ctx.detectChanges(false); expect(directiveLog.filter(['ngDoCheck', 'ngAfterViewInit'])).toEqual([ 'parent.n...
{ "end_byte": 42791, "start_byte": 35646, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/change_detection_integration_spec.ts" }
angular/packages/core/test/linker/change_detection_integration_spec.ts_42797_47993
describe('enforce no new changes', () => { it('should throw when a record gets changed after it has been checked', fakeAsync(() => { @Directive({ selector: '[changed]', standalone: false, }) class ChangingDirective { @Input() changed: any; } T...
{ "end_byte": 47993, "start_byte": 42797, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/change_detection_integration_spec.ts" }
angular/packages/core/test/linker/change_detection_integration_spec.ts_47999_54304
describe('nested view recursion', () => { it('should recurse into nested components even if there are no bindings in the component view', () => { @Component({ selector: 'nested', template: '{{name}}', standalone: false, }) class Nested { name = 'Tom'...
{ "end_byte": 54304, "start_byte": 47999, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/change_detection_integration_spec.ts" }
angular/packages/core/test/linker/change_detection_integration_spec.ts_54310_63343
describe('lifecycle asserts', () => { let logged: string[]; function log(value: string) { logged.push(value); } function clearLog() { logged = []; } function expectOnceAndOnlyOnce(log: string) { expect(logged.indexOf(log) >= 0).toBeTruthy( `'${log}...
{ "end_byte": 63343, "start_byte": 54310, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/change_detection_integration_spec.ts" }
angular/packages/core/test/linker/change_detection_integration_spec.ts_63345_70576
@Pipe({ name: 'identityPipe', standalone: false, }) class IdentityPipe implements PipeTransform { transform(value: any) { return value; } } @Pipe({ name: 'multiArgPipe', standalone: false, }) class MultiArgPipe implements PipeTransform { transform(value: any, arg1: any, arg2: any, arg3 = 'default') {...
{ "end_byte": 70576, "start_byte": 63345, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/change_detection_integration_spec.ts" }
angular/packages/core/test/linker/ng_container_integration_spec.ts_0_3732
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ // Make the `$localize()` global function available to the compiled templates, and the direct calls // below. This wo...
{ "end_byte": 3732, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/ng_container_integration_spec.ts" }
angular/packages/core/test/linker/source_map_integration_node_only_spec.ts_0_929
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ResourceLoader, SourceMap} from '@angular/compiler'; import {CompilerFacadeImpl} from '@angular/compiler/src...
{ "end_byte": 929, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/source_map_integration_node_only_spec.ts" }
angular/packages/core/test/linker/source_map_integration_node_only_spec.ts_931_9809
describe('jit source mapping', () => { let resourceLoader: MockResourceLoader; let jitEvaluator: MockJitEvaluator; beforeEach(() => { resourceLoader = new MockResourceLoader(); jitEvaluator = new MockJitEvaluator(); TestBed.configureCompiler({ providers: [ { provide: ResourceL...
{ "end_byte": 9809, "start_byte": 931, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/source_map_integration_node_only_spec.ts" }
angular/packages/core/test/linker/ng_module_integration_spec.ts_0_2192
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { Compiler, Component, CUSTOM_ELEMENTS_SCHEMA, Directive, forwardRef, getModuleFactory, getNgMo...
{ "end_byte": 2192, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/ng_module_integration_spec.ts" }
angular/packages/core/test/linker/ng_module_integration_spec.ts_2194_10803
scribe('NgModule', () => { let compiler: Compiler; let injector: Injector; beforeEach(inject([Compiler, Injector], (_compiler: Compiler, _injector: Injector) => { compiler = _compiler; injector = _injector; })); function createModuleFactory<T>(moduleType: Type<T>): NgModuleFactory<T> { return co...
{ "end_byte": 10803, "start_byte": 2194, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/ng_module_integration_spec.ts" }
angular/packages/core/test/linker/ng_module_integration_spec.ts_10807_16585
cribe('bootstrap components', () => { it('should create ComponentFactories', () => { @NgModule({declarations: [SomeComp], bootstrap: [SomeComp]}) class SomeModule {} const ngModule = createModule(SomeModule); expect( ngModule.componentFactoryResolver.resolveComponentFactory(SomeComp...
{ "end_byte": 16585, "start_byte": 10807, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/ng_module_integration_spec.ts" }
angular/packages/core/test/linker/ng_module_integration_spec.ts_16589_24872
cribe('providers', function () { let moduleType: any = null; function createInjector(providers: Provider[], parent?: Injector | null): Injector { @NgModule({providers: providers}) class SomeModule {} moduleType = SomeModule; return createModule(SomeModule, parent).injector; } ...
{ "end_byte": 24872, "start_byte": 16589, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/ng_module_integration_spec.ts" }
angular/packages/core/test/linker/ng_module_integration_spec.ts_24878_32190
cribe('injecting eager providers into an eager provider via Injector.get', () => { it('should inject providers that were declared before it', () => { @NgModule({ providers: [ {provide: 'eager1', useFactory: () => 'v1'}, { provide: 'eager2', use...
{ "end_byte": 32190, "start_byte": 24878, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/ng_module_integration_spec.ts" }
angular/packages/core/test/linker/ng_module_integration_spec.ts_32196_40300
cribe('imported and exported modules', () => { it('should add the providers of imported modules', () => { @NgModule({providers: [{provide: 'token1', useValue: 'imported'}]}) class ImportedModule {} @NgModule({imports: [ImportedModule]}) class SomeModule {} const injector ...
{ "end_byte": 40300, "start_byte": 32196, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/ng_module_integration_spec.ts" }
angular/packages/core/test/linker/source_map_util.ts_0_1429
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {SourceMap} from '@angular/compiler'; import {SourceMapConsumer} from 'source-map'; export interface SourceL...
{ "end_byte": 1429, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/source_map_util.ts" }
angular/packages/core/test/linker/inheritance_integration_spec.ts_0_3146
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, Directive, HostBinding} from '@angular/core'; import {TestBed} from '@angular/core/testing'; @Di...
{ "end_byte": 3146, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/inheritance_integration_spec.ts" }
angular/packages/core/test/linker/query_list_spec.ts_0_6024
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ɵgetDOM as getDOM} from '@angular/common'; import {QueryList} from '@angular/core/src/linker/query_list'; im...
{ "end_byte": 6024, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/linker/query_list_spec.ts" }
angular/packages/core/test/testability/testability_spec.ts_0_7132
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {EventEmitter} from '@angular/core'; import {Injectable} from '@angular/core/src/di'; import { GetTestabili...
{ "end_byte": 7132, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/testability/testability_spec.ts" }
angular/packages/core/test/testability/testability_spec.ts_7134_9494
describe('TestabilityRegistry', () => { let testability1: Testability; let testability2: Testability; let registry: TestabilityRegistry; let ngZone: MockNgZone; beforeEach(waitForAsync(() => { ngZone = new MockNgZone(); registry = new TestabilityRegistry(); testability1 = new Testability(ngZone, ...
{ "end_byte": 9494, "start_byte": 7134, "url": "https://github.com/angular/angular/blob/main/packages/core/test/testability/testability_spec.ts" }
angular/packages/core/test/signals/effect_util.ts_0_892
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {createWatch, Watch, WatchCleanupFn} from '@angular/core/primitives/signals'; let queue = new Set<Watch>(); ...
{ "end_byte": 892, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/signals/effect_util.ts" }
angular/packages/core/test/signals/glitch_free_spec.ts_0_1161
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {computed, signal} from '@angular/core'; describe('glitch-free computations', () => { it('should recompute...
{ "end_byte": 1161, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/signals/glitch_free_spec.ts" }
angular/packages/core/test/signals/signal_spec.ts_0_6656
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {computed, signal} from '@angular/core'; import {ReactiveNode, setPostSignalSetFn, SIGNAL} from '@angular/cor...
{ "end_byte": 6656, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/signals/signal_spec.ts" }
angular/packages/core/test/signals/watch_spec.ts_0_6528
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {computed, signal} from '@angular/core'; import {createWatch} from '@angular/core/primitives/signals'; impor...
{ "end_byte": 6528, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/signals/watch_spec.ts" }
angular/packages/core/test/signals/BUILD.bazel_0_616
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library") package(default_visibility = ["//visibility:private"]) ts_library( name = "signals_lib", testonly = True, srcs = glob( ["**/*.ts"], ), deps = [ "//packages/core", "//packages/core/primit...
{ "end_byte": 616, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/signals/BUILD.bazel" }
angular/packages/core/test/signals/non_reactive_spec.ts_0_2725
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {computed, signal, untracked} from '@angular/core'; import {flushEffects, resetEffects, testingEffect} from ...
{ "end_byte": 2725, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/signals/non_reactive_spec.ts" }
angular/packages/core/test/signals/computed_spec.ts_0_5491
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {computed, signal} from '@angular/core'; import {createWatch, ReactiveNode, SIGNAL} from '@angular/core/primi...
{ "end_byte": 5491, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/signals/computed_spec.ts" }
angular/packages/core/test/signals/linked_signal_spec.ts_0_8278
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {isSignal, linkedSignal, signal, computed} from '@angular/core'; import {testingEffect} from './effect_util'; ...
{ "end_byte": 8278, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/signals/linked_signal_spec.ts" }
angular/packages/core/test/signals/is_signal_spec.ts_0_990
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {computed, isSignal, signal} from '@angular/core'; describe('isSignal', () => { it('should return true for...
{ "end_byte": 990, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/signals/is_signal_spec.ts" }
angular/packages/core/test/zone/async-tagging-console.spec.ts_0_4765
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {AsyncStackTaggingZoneSpec} from '../../src/zone/async-stack-tagging'; describe('AsyncTaggingConsoleTest', ()...
{ "end_byte": 4765, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/zone/async-tagging-console.spec.ts" }
angular/packages/core/test/zone/ng_zone_spec.ts_0_7811
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { Component, EventEmitter, NgZone, afterRender, provideZoneChangeDetection, } from '@angular/core';...
{ "end_byte": 7811, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/zone/ng_zone_spec.ts" }
angular/packages/core/test/zone/ng_zone_spec.ts_7815_15846
describe('run', () => { it('should return the body return value from run', (done) => { macroTask(() => { expect(_zone.run(() => 6)).toEqual(6); }); macroTask(() => { done(); }); }); it('should return the body return value from runTask', (done) => { macroTask((...
{ "end_byte": 15846, "start_byte": 7815, "url": "https://github.com/angular/angular/blob/main/packages/core/test/zone/ng_zone_spec.ts" }
angular/packages/core/test/zone/ng_zone_spec.ts_15852_23970
it('should call onUnstable and onMicrotaskEmpty when an inner microtask is scheduled from outside angular', (done) => { let resolve: (result: string | null) => void; let promise: Promise<string | null>; macroTask(() => { NgZone.assertNotInAngularZone(); promise = new Promise<string | ...
{ "end_byte": 23970, "start_byte": 15852, "url": "https://github.com/angular/angular/blob/main/packages/core/test/zone/ng_zone_spec.ts" }
angular/packages/core/test/zone/ng_zone_spec.ts_23976_27973
it('should call onUnstable and onMicrotaskEmpty for promises created outside of run body', (done) => { let promise: Promise<any>; runNgZoneNoLog(() => { macroTask(() => { _zone.runOutsideAngular(() => { promise = Promise.resolve(4).then((x) => Promise.resolve(x)); })...
{ "end_byte": 27973, "start_byte": 23976, "url": "https://github.com/angular/angular/blob/main/packages/core/test/zone/ng_zone_spec.ts" }
angular/packages/core/test/zone/ng_zone_spec.ts_27977_37450
describe('coalescing', () => { it('should execute callback when a view transition is waiting for the callback to complete', async () => { if (!(document as any).startViewTransition) { return; } const startTime = performance.now(); // When there is a pending view transition, `request...
{ "end_byte": 37450, "start_byte": 27977, "url": "https://github.com/angular/angular/blob/main/packages/core/test/zone/ng_zone_spec.ts" }
angular/packages/core/test/zone/ng_zone_spec.ts_37456_41193
describe('shouldCoalesceRunChangeDetection = true', () => { let nativeSetTimeout: any = global[Zone.__symbol__('setTimeout')]; let patchedImmediate: any; let coalesceZone: NgZone; let logs: string[] = []; beforeEach(() => { patchedImmediate = global.setImmediate; global.se...
{ "end_byte": 41193, "start_byte": 37456, "url": "https://github.com/angular/angular/blob/main/packages/core/test/zone/ng_zone_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_0_1259
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { animate, animateChild, animation, AnimationEvent, AnimationMetadata, AnimationOptions, AUTO_ST...
{ "end_byte": 1259, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_1261_10844
nction () { // these tests are only meant to be run within the DOM (for now) if (isNode) return; describe('animation tests', function () { function getLog(): MockAnimationPlayer[] { return MockAnimationDriver.log as MockAnimationPlayer[]; } function resetLog() { MockAnimationDriver.log =...
{ "end_byte": 10844, "start_byte": 1261, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_10850_19918
be('animation triggers', () => { it('should trigger a state change animation from void => state', () => { @Component({ selector: 'if-cmp', template: ` <div *ngIf="exp" [@myAnimation]="exp"></div> `, animations: [ trigger('myAnimation', [ ...
{ "end_byte": 19918, "start_byte": 10850, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_19926_29006
always fire inner callbacks even if no animation is fired when a view is inserted', fakeAsync(() => { @Component({ selector: 'if-cmp', template: ` <div *ngIf="exp"> <div @myAnimation (@myAnimation.start)="track($event)" (@myAnimation.done)="track($event)"></div> ...
{ "end_byte": 29006, "start_byte": 19926, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_29014_38698
throw an error if a trigger with the same name exists in separate components', () => { @Component({ selector: 'cmp1', template: '...', animations: [trigger('trig', [])], standalone: false, }) class Cmp1 {} @Component({ selector: 'cmp2', ...
{ "end_byte": 38698, "start_byte": 29014, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_38708_48110
leave animation when both the inner and outer components trigger on the same element', fakeAsync(() => { @Component({ selector: 'parent-cmp', animations: [ trigger('host', [ transition(':leave', [ style({height: '100px'}), ...
{ "end_byte": 48110, "start_byte": 38708, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_48118_57226
yling of previous players that are grouped and queried and make sure match the players with the correct elements', () => { @Component({ selector: 'ani-cmp', template: ` <div class="container" [@myAnimation]="exp"> <div class="inner"></div> </div> `, ...
{ "end_byte": 57226, "start_byte": 48118, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_57234_65798
when the underlying DOM structure changes even if there are insert/remove animations', () => { @Component({ selector: 'ani-cmp', template: ` <div class="item" *ngFor="let item of items" [@color]="colorExp"> {{ item }} </div> `, anima...
{ "end_byte": 65798, "start_byte": 57234, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_65806_74881
child animations when a parent removal animation is set to go', () => { @Component({ selector: 'ani-cmp', template: ` <div *ngIf="exp1" @parent> <div [@child]="exp2" class="child1"></div> <div [@child]="exp2" class="child2"></div> </div> ...
{ "end_byte": 74881, "start_byte": 65806, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_74889_83838
when params update even if the expression hasn't changed", fakeAsync(() => { @Component({ selector: 'ani-cmp', template: ` <div [@myAnimation]="{value:exp,params:{color:color}}"></div> `, animations: [ trigger('myAnimation', [ state(...
{ "end_byte": 83838, "start_byte": 74889, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_83846_90974
inner component runs change detection', () => { @Component({ selector: 'outer-cmp', template: ` <div *ngIf="exp" @outer></div> <inner-cmp #inner></inner-cmp> `, animations: [ trigger('outer', [ transition(':enter', [style...
{ "end_byte": 90974, "start_byte": 83846, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_90980_99292
it('should trigger a `start` state change listener for when the animation changes state from void => state', fakeAsync(() => { @Component({ selector: 'if-cmp', template: ` <div *ngIf="exp" [@myAnimation]="exp" (@myAnimation.start)="callback($event)"></div> `, anim...
{ "end_byte": 99292, "start_byte": 90980, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_99300_105860
n the animation changes state from void => state on the host element', fakeAsync(() => { @Component({ selector: 'my-cmp', template: `...`, animations: [ trigger('myAnimation2', [ transition('void => *', [ style({'opacity': '0'}), ...
{ "end_byte": 105860, "start_byte": 99300, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_105868_109994
e totalTime and element details for any queried sub animations', fakeAsync(() => { @Component({ selector: 'my-cmp', template: ` <div class="parent" [@parent]="exp" (@parent.done)="cb('all','done', $event)"> <div *ngFor="let item of items" cl...
{ "end_byte": 109994, "start_byte": 105868, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_110000_119110
cribe('[@.disabled]', () => { it('should disable child animations when set to true', () => { @Component({ selector: 'if-cmp', template: ` <div [@.disabled]="disableExp"> <div [@myAnimation]="exp"></div> </div> `, ...
{ "end_byte": 119110, "start_byte": 110000, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_119120_127186
mponent handling the disable/enable flag', () => { @Component({ selector: 'parent-cmp', template: ` <div [@.disabled]="disableExp"> <child-cmp #child></child-cmp> </div> `, standalone: false, }) ...
{ "end_byte": 127186, "start_byte": 119120, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_127192_135999
{ it('should apply the delay specified in the animation', () => { const animationMetaData = animation( [style({color: 'red'}), animate(1000, style({color: 'green'}))], {delay: 3000}, ); @Component({ selector: 'cmp', template: ` <div @anim *...
{ "end_byte": 135999, "start_byte": 127192, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_136005_143534
ransitions', () => { @Component({ selector: 'if-cmp', template: ` <div [@myAnimation]="exp"></div> `, animations: [ trigger('myAnimation', [ transition('void => *', [style({opacity: 0}), animate('0.5s 1s', style({opacity: 1}))]), transiti...
{ "end_byte": 143534, "start_byte": 136005, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_integration_spec.ts_143540_148457
dAndAnimateSimpleTestComponent(triggerAnimationData: AnimationMetadata[]) { @Component({ selector: 'cmp', template: ` <div *ngIf="exp" [@myAnimation]="exp"> <p *ngIf="exp"></p> </div> `, animations: [trigger('myAnimation', [transition('void =...
{ "end_byte": 148457, "start_byte": 143540, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_integration_spec.ts" }
angular/packages/core/test/animation/animation_query_integration_spec.ts_0_1198
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { animate, animateChild, AnimationPlayer, AUTO_STYLE, group, query, sequence, stagger, state...
{ "end_byte": 1198, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/animation/animation_query_integration_spec.ts" }