_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/core/test/render3/instructions_spec.ts_1349_8937
() => { function createAnchor() { ɵɵelement(0, 'a'); } function createDiv() { ɵɵelement(0, 'div'); } function createScript() { ɵɵelement(0, 'script'); } afterEach(ViewFixture.cleanUp); describe('ɵɵadvance', () => { it('should error in DevMode if index is out of range', () => { ...
{ "end_byte": 8937, "start_byte": 1349, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/instructions_spec.ts" }
angular/packages/core/test/render3/instructions_spec.ts_8941_10264
{ ɵɵelement(0, 'div'); } it('should add class', () => { const fixture = new ViewFixture({ create: createDivWithStyling, update: () => { ɵɵclassMap('multiple classes'); }, decls: 1, vars: 2, }); fixture.update(); const div = fixtu...
{ "end_byte": 10264, "start_byte": 8941, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/instructions_spec.ts" }
angular/packages/core/test/render3/instructions_spec.ts_10268_17662
work for url sanitization', () => { const s = new LocalMockSanitizer((value) => `${value}-sanitized`); const t = new ViewFixture({create: createAnchor, decls: 1, vars: 1, sanitizer: s}); const inputValue = 'http://foo'; const outputValue = 'http://foo-sanitized'; t.update(() => { ...
{ "end_byte": 17662, "start_byte": 10268, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/instructions_spec.ts" }
angular/packages/core/test/render3/instructions_spec.ts_17668_20581
; const t = new ViewFixture({create: createDiv, decls: 1, vars: 1, sanitizer: s}); const inputValue = s.bypassSecurityTrustHtml('<div onclick="alert(123)"></div>'); const outputValue = '<div onclick="alert(123)"></div>'; t.update(() => { ɵɵproperty('innerHTML', inputValue, ɵɵsanitizeHtm...
{ "end_byte": 20581, "start_byte": 17668, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/instructions_spec.ts" }
angular/packages/core/test/render3/testing_spec.ts_0_1529
/** * @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 {withBody} from '@angular/private/testing'; describe('testing', () => { describe('withBody', () => { l...
{ "end_byte": 1529, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/testing_spec.ts" }
angular/packages/core/test/render3/providers_spec.ts_0_8391
/** * @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 {TestBed} from '@angular/core/testing'; import { Component, createEnvironmentInjector, ElementRef, E...
{ "end_byte": 8391, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/providers_spec.ts" }
angular/packages/core/test/render3/providers_spec.ts_8395_11281
ide rules:', () => { it('directiveProviders should override providers', () => { expectProvidersScenario({ parent: { providers: [{provide: String, useValue: 'Message 1'}], directiveProviders: [{provide: String, useValue: 'Message 2'}], componentAssertion: () => { ...
{ "end_byte": 11281, "start_byte": 8395, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/providers_spec.ts" }
angular/packages/core/test/render3/providers_spec.ts_11285_20673
e', () => { @NgModule({ providers: [{provide: String, useValue: 'From module'}], }) class MyModule {} describe('without directives', () => { it('should work without providers nor viewProviders in component', () => { expectProvidersScenario({ parent: { component...
{ "end_byte": 20673, "start_byte": 11285, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/providers_spec.ts" }
angular/packages/core/test/render3/providers_spec.ts_20677_25263
, () => { @NgModule({ providers: [{provide: String, useValue: 'From module', multi: true}], }) class MyModule {} describe('without directives', () => { it('should work without providers nor viewProviders in component', () => { expectProvidersScenario({ parent: { ...
{ "end_byte": 25263, "start_byte": 20677, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/providers_spec.ts" }
angular/packages/core/test/render3/providers_spec.ts_25269_33541
irectives (order in ɵcmp.directives matters)', () => { it('should work without providers nor viewProviders in component', () => { expectProvidersScenario({ parent: { directiveProviders: [{provide: String, useValue: 'From directive 1', multi: true}], directive2Providers: [...
{ "end_byte": 33541, "start_byte": 25269, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/providers_spec.ts" }
angular/packages/core/test/render3/providers_spec.ts_33545_40542
ponents dependency resolution', () => { let hostComponent: HostComponent | null = null; @Component({ standalone: true, template: `{{s}}`, selector: 'embedded-cmp', }) class EmbeddedComponent { constructor(private s: String) {} } @Component({ standalone: true, ...
{ "end_byte": 40542, "start_byte": 33545, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/providers_spec.ts" }
angular/packages/core/test/render3/providers_spec.ts_40545_44167
actory on class with custom decorator', () => { function addFoo() { return (constructor: Type<any>): any => { const decoratedClass = class Extender extends constructor { foo = 'bar'; }; return decoratedClass; }; } it('should find the correct factories if a pare...
{ "end_byte": 44167, "start_byte": 40545, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/providers_spec.ts" }
angular/packages/core/test/render3/reactive_safety_spec.ts_0_7223
/** * @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, ComponentFactoryResolver, createComponent, createEnvironmentInjector, effect, ENVIRO...
{ "end_byte": 7223, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/reactive_safety_spec.ts" }
angular/packages/core/test/render3/utils.ts_0_3948
/** * @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 */ /** Template string function that can be used to strip indentation from a given string literal. */ export function d...
{ "end_byte": 3948, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/utils.ts" }
angular/packages/core/test/render3/change_detection_spec.ts_0_1340
/** * @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 {TestBed} from '@angular/core/testing'; import {withBody} from '@angular/private/testing'; import {Component...
{ "end_byte": 1340, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/change_detection_spec.ts" }
angular/packages/core/test/render3/reactivity_spec.ts_0_1264
/** * @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 {AsyncPipe} from '@angular/common'; import { AfterViewInit, ApplicationRef, ChangeDetectionStrategy, ...
{ "end_byte": 1264, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/reactivity_spec.ts" }
angular/packages/core/test/render3/reactivity_spec.ts_1266_9943
describe('reactivity', () => { let prev: boolean; beforeEach(() => { prev = setUseMicrotaskEffectsByDefault(false); }); afterEach(() => setUseMicrotaskEffectsByDefault(prev)); describe('effects', () => { beforeEach(destroyPlatform); afterEach(destroyPlatform); it( 'should run effects i...
{ "end_byte": 9943, "start_byte": 1266, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/reactivity_spec.ts" }
angular/packages/core/test/render3/reactivity_spec.ts_9949_13665
it('should check views made dirty from markForCheck() from an effect in a directive', async () => { TestBed.configureTestingModule({ providers: [provideExperimentalZonelessChangeDetection()], }); const source = signal(''); @Directive({ standalone: true, selector: '[dir]...
{ "end_byte": 13665, "start_byte": 9949, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/reactivity_spec.ts" }
angular/packages/core/test/render3/reactivity_spec.ts_13669_19856
describe('safeguards', () => { it('should allow writing to signals within effects', () => { const counter = signal(0); effect(() => counter.set(1), {injector: TestBed.inject(Injector)}); TestBed.flushEffects(); expect(counter()).toBe(1); }); it('should allow writing to signals in n...
{ "end_byte": 19856, "start_byte": 13669, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/reactivity_spec.ts" }
angular/packages/core/test/render3/reactivity_spec.ts_19862_25868
describe('effects created in components should first run after ngOnInit', () => { it('when created during bootstrapping', () => { let log: string[] = []; @Component({ standalone: true, selector: 'test-cmp', template: '', }) class TestCmp { co...
{ "end_byte": 25868, "start_byte": 19862, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/reactivity_spec.ts" }
angular/packages/core/test/render3/imported_renderer2.ts_0_2035
/** * @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 {PLATFORM_BROWSER_ID, PLATFORM_SERVER_ID} from '@angular/common/src/platform_id'; import {NgZone, RendererFac...
{ "end_byte": 2035, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/imported_renderer2.ts" }
angular/packages/core/test/render3/view_utils_spec.ts_0_986
/** * @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 {createLContainer, createTNode} from '@angular/core/src/render3/instructions/shared'; import {isLContainer, i...
{ "end_byte": 986, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/view_utils_spec.ts" }
angular/packages/core/test/render3/list_reconciliation_spec.ts_0_2288
/** * @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 {LiveCollection, reconcile} from '@angular/core/src/render3/list_reconciliation'; import {assertDefined} from...
{ "end_byte": 2288, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/list_reconciliation_spec.ts" }
angular/packages/core/test/render3/list_reconciliation_spec.ts_2290_8603
describe('list reconciliation', () => { describe('fast path', () => { it('should do nothing if 2 lists are the same', () => { const pc = new LoggingLiveCollection(['a', 'b', 'c']); reconcile(pc, ['a', 'b', 'c'], trackByIdentity); expect(pc.getCollection()).toEqual(['a', 'b', 'c']); expect...
{ "end_byte": 8603, "start_byte": 2290, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/list_reconciliation_spec.ts" }
angular/packages/core/test/render3/list_reconciliation_spec.ts_8607_11358
describe('iterables', () => { it('should do nothing if 2 lists represented as iterables are the same', () => { const pc = new LoggingLiveCollection(['a', 'b', 'c']); reconcile(pc, new Set(['a', 'b', 'c']), trackByIdentity); expect(pc.getCollection()).toEqual(['a', 'b', 'c']); expect(pc.getL...
{ "end_byte": 11358, "start_byte": 8607, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/list_reconciliation_spec.ts" }
angular/packages/core/test/render3/list_reconciliation_spec.ts_11362_15450
describe('identity and index update', () => { interface KeyValueItem<K, V> { k: K; v: V; } interface RepeaterLikeItem<T> { index: number; implicit: T; } class RepeaterLikeItemFactory<T> implements ItemAdapter<RepeaterLikeItem<T>, T> { keySequence = 0; create(in...
{ "end_byte": 15450, "start_byte": 11362, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/list_reconciliation_spec.ts" }
angular/packages/core/test/render3/is_shape_of_spec.ts_0_1394
/** * @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 {isShapeOf, ShapeOf} from './is_shape_of'; describe('isShapeOf', () => { const ShapeOfEmptyObject: ShapeOf...
{ "end_byte": 1394, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/is_shape_of_spec.ts" }
angular/packages/core/test/render3/view_fixture.ts_0_6457
/** * @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 {Sanitizer, Type} from '@angular/core'; import {stringifyElement} from '@angular/platform-browser/testing/src...
{ "end_byte": 6457, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/view_fixture.ts" }
angular/packages/core/test/render3/global_utils_spec.ts_0_2807
/** * @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 {setProfiler} from '@angular/core/src/render3/profiler'; import {applyChanges} from '../../src/render3/util/...
{ "end_byte": 2807, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/global_utils_spec.ts" }
angular/packages/core/test/render3/BUILD.bazel_0_2107
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "render3_lib", testonly = True, srcs = glob( ["**/*.ts"], exclude = [ "**/*_perf.ts", "domino.d.ts", ...
{ "end_byte": 2107, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/BUILD.bazel" }
angular/packages/core/test/render3/query_spec.ts_0_3057
/** * @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, Injectable, QueryList, TemplateRef, ViewChild, ViewChildren, ViewCont...
{ "end_byte": 3057, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/query_spec.ts" }
angular/packages/core/test/render3/providers_helper.ts_0_3709
/** * @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, Provider, Type, ViewEncapsulation} from '@angular/core'; import {TestBed} from '@angul...
{ "end_byte": 3709, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/providers_helper.ts" }
angular/packages/core/test/render3/microtask_effect_spec.ts_0_914
/** * @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 {AsyncPipe} from '@angular/common'; import { AfterViewInit, ApplicationRef, Component, computed, Co...
{ "end_byte": 914, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/microtask_effect_spec.ts" }
angular/packages/core/test/render3/microtask_effect_spec.ts_916_9646
escribe('microtask effects', () => { beforeEach(destroyPlatform); afterEach(destroyPlatform); it( 'should run effects in the zone in which they get created', withBody('<test-cmp></test-cmp>', async () => { const log: string[] = []; @Component({ selector: 'test-cmp', standalone...
{ "end_byte": 9646, "start_byte": 916, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/microtask_effect_spec.ts" }
angular/packages/core/test/render3/microtask_effect_spec.ts_9650_17421
t('should not execute query setters in the reactive context', () => { const state = signal('initial'); @Component({ selector: 'with-query-setter', standalone: true, template: '<div #el></div>', }) class WithQuerySetter { el: unknown; @ViewChild('el', {static: true}) ...
{ "end_byte": 17421, "start_byte": 9650, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/microtask_effect_spec.ts" }
angular/packages/core/test/render3/microtask_effect_spec.ts_17423_19814
escribe('microtask effects in TestBed', () => { it('created in the constructor should run with detectChanges()', () => { const log: string[] = []; @Component({ selector: 'test-cmp', standalone: true, template: '', }) class Cmp { constructor() { log.push('Ctor'); ...
{ "end_byte": 19814, "start_byte": 17423, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/microtask_effect_spec.ts" }
angular/packages/core/test/render3/i18n_debug_spec.ts_0_6576
/** * @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 { i18nCreateOpCodesToString, i18nRemoveOpCodesToString, i18nUpdateOpCodesToString, icuCreateOpCodesTo...
{ "end_byte": 6576, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/i18n_debug_spec.ts" }
angular/packages/core/test/render3/di_spec.ts_0_6587
/** * @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, Self} from '@angular/core'; import { createLView, createTView, getOrCreateTNode,...
{ "end_byte": 6587, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/di_spec.ts" }
angular/packages/core/test/render3/deps_tracker_spec.ts_0_9253
/** * @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, forwardRef, NgModule, Pipe} from '@angular/core'; import {NgModuleDef} from '../../sr...
{ "end_byte": 9253, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/deps_tracker_spec.ts" }
angular/packages/core/test/render3/deps_tracker_spec.ts_9259_10855
ibe('cache specs', () => { it('should use cache for re-calculation', () => { @Component({ standalone: false, }) class Component1 {} @NgModule({ declarations: [Component1], }) class MainModule {} let ans = depsTracker.getNgModuleScope(Ma...
{ "end_byte": 10855, "start_byte": 9259, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/deps_tracker_spec.ts" }
angular/packages/core/test/render3/deps_tracker_spec.ts_10861_19040
e('forward ref specs', () => { it('should include the exported scope of a forward ref imported module in the compilation scope when compiling in JIT mode', () => { @NgModule({imports: [forwardRef(() => SubModule)]}) class MainModule {} @Component({ standalone: false, }) ...
{ "end_byte": 19040, "start_byte": 10861, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/deps_tracker_spec.ts" }
angular/packages/core/test/render3/deps_tracker_spec.ts_19044_27832
tStandaloneComponentScope method', () => { it('should only include the component itself in the compilation scope when there is no imports', () => { class MainComponent {} const ans = depsTracker.getStandaloneComponentScope(MainComponent as ComponentType<any>, []); expect(ans.compilation).toEqual...
{ "end_byte": 27832, "start_byte": 19044, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/deps_tracker_spec.ts" }
angular/packages/core/test/render3/deps_tracker_spec.ts_27836_37376
tComponentDependencies method', () => { describe('for non-standalone component', () => { it('should include the compilation scope of the declaring module', () => { @Component({ standalone: false, }) class Component1 {} @Directive({ standalone: false, ...
{ "end_byte": 37376, "start_byte": 27836, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/deps_tracker_spec.ts" }
angular/packages/core/test/render3/load_domino.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 */ // Needed to run animation tests import '@angular/compiler'; // For JIT mode. Must be in front of any other @angular...
{ "end_byte": 963, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/load_domino.ts" }
angular/packages/core/test/render3/component_ref_spec.ts_0_3116
/** * @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 {ComponentRef} from '@angular/core'; import {ComponentFactoryResolver} from '@angular/core/src/render3/compon...
{ "end_byte": 3116, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/component_ref_spec.ts" }
angular/packages/core/test/render3/component_ref_spec.ts_3120_10604
describe('create()', () => { let rendererFactorySpy = new MockRendererFactory(); let cf: ComponentFactory<any>; beforeEach(() => { @Component({ selector: 'test', template: '...', host: { 'class': 'HOST_COMPONENT', }, encapsulation: ViewEncapsulation.N...
{ "end_byte": 10604, "start_byte": 3120, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/component_ref_spec.ts" }
angular/packages/core/test/render3/component_ref_spec.ts_10608_15735
describe('setInput', () => { it('should allow setting inputs on the ComponentRef', () => { const inputChangesLog: string[] = []; @Component({template: `{{in}}`, standalone: false}) class DynamicCmp implements OnChanges { ngOnChanges(changes: SimpleChanges): void { const inChange...
{ "end_byte": 15735, "start_byte": 10608, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/component_ref_spec.ts" }
angular/packages/core/test/render3/node_selector_matcher_spec.ts_0_1336
/** * @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 {createTNode} from '@angular/core/src/render3/instructions/shared'; import {AttributeMarker} from '../../src...
{ "end_byte": 1336, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/node_selector_matcher_spec.ts" }
angular/packages/core/test/render3/node_selector_matcher_spec.ts_1340_9841
describe('isNodeMatchingSimpleSelector', () => { describe('element matching', () => { it('should match element name only if names are the same', () => { expect(isMatching('span', null, ['span'])).toBeTruthy( `Selector 'span' should match <span>`, ); expect(isMatching('span',...
{ "end_byte": 9841, "start_byte": 1340, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/node_selector_matcher_spec.ts" }
angular/packages/core/test/render3/node_selector_matcher_spec.ts_9847_14043
describe('class matching', () => { it('should match with a class selector when an element has multiple classes', () => { expect( isMatching('span', ['class', 'foo bar'], ['', SelectorFlags.CLASS, 'foo']), ).toBeTruthy(`Selector '.foo' should match <span class="foo bar">`); expec...
{ "end_byte": 14043, "start_byte": 9847, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/node_selector_matcher_spec.ts" }
angular/packages/core/test/render3/node_selector_matcher_spec.ts_14047_20576
describe('negations', () => { it('should match when negation part is null', () => { expect(isMatching('span', null, ['span'])).toBeTruthy(`Selector 'span' should match <span>`); }); it('should not match when negation part does not match', () => { expect( isMatching('span', ['foo', ''], ...
{ "end_byte": 20576, "start_byte": 14047, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/node_selector_matcher_spec.ts" }
angular/packages/core/test/render3/node_selector_matcher_spec.ts_20578_26019
describe('stringifyCSSSelectorList', () => { it('should stringify selector with a tag name only', () => { expect(stringifyCSSSelectorList([['button']])).toBe('button'); }); it('should stringify selector with attributes', () => { expect(stringifyCSSSelectorList([['', 'id', '']])).toBe('[id]'); expect(...
{ "end_byte": 26019, "start_byte": 20578, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/node_selector_matcher_spec.ts" }
angular/packages/core/test/render3/instructions/mock_renderer_factory.ts_0_3196
/** * @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 {RendererStyleFlags2, RendererType2} from '@angular/core'; import {Renderer, RendererFactory} from '@angular/...
{ "end_byte": 3196, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/instructions/mock_renderer_factory.ts" }
angular/packages/core/test/render3/instructions/shared_spec.ts_0_2341
/** * @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 {createLView, createTNode, createTView} from '@angular/core/src/render3/instructions/shared'; import {TNodeTy...
{ "end_byte": 2341, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/instructions/shared_spec.ts" }
angular/packages/core/test/render3/instructions/styling_spec.ts_0_5097
/** * @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 {AttributeMarker, DirectiveDef} from '@angular/core/src/render3'; import {ɵɵdefineDirective} from '@angular/c...
{ "end_byte": 5097, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/instructions/styling_spec.ts" }
angular/packages/core/test/render3/instructions/styling_spec.ts_5101_9064
) => { ngDevModeResetPerfCounters(); ɵɵstyleMap({}); expectStyle(div).toEqual({}); expect(ngDevMode!.rendererSetStyle).toEqual(0); expect(ngDevMode!.rendererRemoveStyle).toEqual(0); ngDevModeResetPerfCounters(); clearFirstUpdatePass(); rewindBindingIndex(); ɵɵstyl...
{ "end_byte": 9064, "start_byte": 5101, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/instructions/styling_spec.ts" }
angular/packages/core/test/render3/instructions/styling_spec.ts_9068_16380
ylingKey', () => { givenTemplateAttrs([AttributeMarker.Styles, 'content', '"TEMPLATE"']); ɵɵstyleProp('content', '"dynamic"'); expectTStylingKeys('style').toEqual([ ['', 'content', 'content', '"TEMPLATE"'], 'prev', // contains statics null, // residual ]); ...
{ "end_byte": 16380, "start_byte": 9068, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/instructions/styling_spec.ts" }
angular/packages/core/test/render3/instructions/styling_spec.ts_16384_21093
) => { expect(() => toTStylingRange(0, -1)).toThrow(); expect(() => toTStylingRange(-1, 0)).toThrow(); }); it('should throw on overflow', () => { expect(() => toTStylingRange(0, MAX_VALUE + 1)).toThrow(); expect(() => toTStylingRange(MAX_VALUE + 1, 0)).toThrow(); }); it('should...
{ "end_byte": 21093, "start_byte": 16384, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/instructions/styling_spec.ts" }
angular/packages/core/test/render3/ivy/jit_spec.ts_0_928
/** * @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, ContentChild, ContentChildren, Directive, ElementRef, forwardRef, getNgModuleById,...
{ "end_byte": 928, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/ivy/jit_spec.ts" }
angular/packages/core/test/render3/ivy/jit_spec.ts_930_8614
'render3 jit', () => { let injector: any; beforeAll(() => { injector = setCurrentInjector(null); }); afterAll(() => { setCurrentInjector(injector); }); it('compiles a component', () => { @Component({ template: 'test', selector: 'test-cmp', standalone: false, }) class ...
{ "end_byte": 8614, "start_byte": 930, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/ivy/jit_spec.ts" }
angular/packages/core/test/render3/ivy/jit_spec.ts_8618_14309
() => { @Component({ template: 'foo', selector: 'foo', host: { '[class.red]': 'isRed', '(click)': 'onClick()', }, standalone: false, }) class Cmp { @HostBinding('class.green') green: boolean = false; @HostListener('change', ['$event']) onChang...
{ "end_byte": 14309, "start_byte": 8618, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/ivy/jit_spec.ts" }
angular/packages/core/test/render3/ivy/BUILD.bazel_0_544
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") package(default_visibility = ["//visibility:public"]) ts_library( name = "ivy_lib", testonly = True, srcs = glob(["**/*.ts"]), deps = [ "//packages:types", "//packages/core", "//packages/core/src/di/interface", ...
{ "end_byte": 544, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/ivy/BUILD.bazel" }
angular/packages/core/test/render3/util/stringify_util_spec.ts_0_1602
/** * @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 {ɵsetClassDebugInfo, ɵɵdefineComponent} from '@angular/core/src/render3'; import {debugStringifyTypeForError}...
{ "end_byte": 1602, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/util/stringify_util_spec.ts" }
angular/packages/core/test/render3/util/attr_util_spec.ts_0_5416
/** * @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 {AttributeMarker} from '@angular/core/src/render3'; import {TAttributes} from '@angular/core/src/render3/inte...
{ "end_byte": 5416, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/util/attr_util_spec.ts" }
angular/packages/core/test/render3/jit/declare_factory_spec.ts_0_2962
/** * @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 { Injector, ɵcreateInjector, ɵInjectorProfilerContext, ɵsetInjectorProfilerContext, ɵɵFactoryTarget...
{ "end_byte": 2962, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/jit/declare_factory_spec.ts" }
angular/packages/core/test/render3/jit/declare_classmetadata_spec.ts_0_2300
/** * @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 {Injectable, Input, Type, ɵɵngDeclareClassMetadata} from '@angular/core'; interface Decorator { type: any;...
{ "end_byte": 2300, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/jit/declare_classmetadata_spec.ts" }
angular/packages/core/test/render3/jit/directive_spec.ts_0_5814
/** * @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 {Directive, HostListener, Input} from '@angular/core'; import { convertToR3QueryMetadata, directiveMetad...
{ "end_byte": 5814, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/jit/directive_spec.ts" }
angular/packages/core/test/render3/jit/declare_injector_spec.ts_0_1440
/** * @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 {InjectionToken, ɵɵInjectorDef, ɵɵngDeclareInjector} from '@angular/core'; describe('Injector declaration ji...
{ "end_byte": 1440, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/jit/declare_injector_spec.ts" }
angular/packages/core/test/render3/jit/declare_component_spec.ts_0_646
/** * @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 {InputFlags} from '@angular/compiler/src/core'; import { ChangeDetectionStrategy, Component, Directive,...
{ "end_byte": 646, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/jit/declare_component_spec.ts" }
angular/packages/core/test/render3/jit/declare_component_spec.ts_648_8302
('component declaration jit compilation', () => { it('should compile a minimal component declaration', () => { const def = ɵɵngDeclareComponent({ version: '18.0.0', type: TestClass, template: `<div></div>`, }) as ComponentDef<TestClass>; expectComponentDef(def, { template: functio...
{ "end_byte": 8302, "start_byte": 648, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/jit/declare_component_spec.ts" }
angular/packages/core/test/render3/jit/declare_component_spec.ts_8306_15201
s', () => { const def = ɵɵngDeclareComponent({ version: '18.0.0', type: TestClass, template: '<div></div>', styles: ['div {}'], }) as ComponentDef<TestClass>; expectComponentDef(def, { styles: ['div[_ngcontent-%COMP%] {}'], encapsulation: ViewEncapsulation.Emulated, ...
{ "end_byte": 15201, "start_byte": 8306, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/jit/declare_component_spec.ts" }
angular/packages/core/test/render3/jit/declare_component_spec.ts_15202_18524
cted: Partial<ComponentDefExpectations>, ): void { const expectation: ComponentDefExpectations = { selectors: [], template: jasmine.any(Function), inputs: {}, declaredInputs: {}, inputTransforms: null, outputs: {}, features: null, hostAttrs: null, hostBindings: null, hostVars: ...
{ "end_byte": 18524, "start_byte": 15202, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/jit/declare_component_spec.ts" }
angular/packages/core/test/render3/jit/declare_ng_module_spec.ts_0_4794
/** * @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 { NO_ERRORS_SCHEMA, SchemaMetadata, Type, ɵNgModuleDef, ɵɵngDeclareNgModule, } from '@angular/core'...
{ "end_byte": 4794, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/jit/declare_ng_module_spec.ts" }
angular/packages/core/test/render3/jit/declare_pipe_spec.ts_0_1695
/** * @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 {ɵɵngDeclarePipe} from '@angular/core'; import {PipeDef} from '../../../src/render3'; describe('Pipe declara...
{ "end_byte": 1695, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/jit/declare_pipe_spec.ts" }
angular/packages/core/test/render3/jit/matcher.ts_0_1652
/** * @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 */ /** * Jasmine matcher to verify that a function contains the provided code fragments. */ export function functionC...
{ "end_byte": 1652, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/jit/matcher.ts" }
angular/packages/core/test/render3/jit/declare_directive_spec.ts_0_7383
/** * @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 {ElementRef, forwardRef, ɵɵngDeclareDirective} from '@angular/core'; import { AttributeMarker, Directive...
{ "end_byte": 7383, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/jit/declare_directive_spec.ts" }
angular/packages/core/test/render3/jit/declare_directive_spec.ts_7387_11298
', () => { class One {} class Two {} const def = ɵɵngDeclareDirective({ version: '18.0.0', type: TestClass, hostDirectives: [ { directive: One, inputs: ['firstInput', 'firstInput', 'secondInput', 'secondInputAlias'], outputs: ['firstOutput', 'firstOut...
{ "end_byte": 11298, "start_byte": 7387, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/jit/declare_directive_spec.ts" }
angular/packages/core/test/render3/jit/declare_injectable_spec.ts_0_6052
/** * @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 { forwardRef, InjectionToken, Injector, ɵcreateInjector, ɵInjectorProfilerContext, ɵsetCurrentInj...
{ "end_byte": 6052, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/jit/declare_injectable_spec.ts" }
angular/packages/core/test/render3/styling_next/style_binding_list_spec.ts_0_4228
/** * @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 {createTNode} from '@angular/core/src/render3/instructions/shared'; import {TNode, TNodeType} from '@angular/...
{ "end_byte": 4228, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/styling_next/style_binding_list_spec.ts" }
angular/packages/core/test/render3/styling_next/style_binding_list_spec.ts_4229_10404
{ // See: `tnode_linked_list.ts` file description for this example. // Template: (ExampleComponent) // ɵɵstyleMap({color: '#001'}); // Binding index: 10 // ɵɵstyleProp('color', '#002'); // Binding index: 12 // MyComponent // ɵɵstyleMap({color: '#003'}); // Binding index: 2...
{ "end_byte": 10404, "start_byte": 4229, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/styling_next/style_binding_list_spec.ts" }
angular/packages/core/test/render3/styling_next/style_binding_list_spec.ts_10411_15343
null, [false, 26, false, 12], // 10 - Template: ɵɵstyleMap({color: '#001'}); 'color', [false, 10, false, 0], // 12 - Template: ɵɵstyleProp('color', '#002'}); ...empty_14_through_19, // 14-19 null, [false, 0, false, 22], // 20 - MyComponent: ɵɵstyleMap({color: '#003'});...
{ "end_byte": 15343, "start_byte": 10411, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/styling_next/style_binding_list_spec.ts" }
angular/packages/core/test/render3/styling_next/style_binding_list_spec.ts_15347_22055
Type.Element, 0, '', null); const tData: TData = [null, null]; insertTStylingBinding(tData, tNode, 'color', 2, false, false); expectPriorityOrder(tData, tNode, false).toEqual([ // PREV, NEXT [2, 'color', false, false], ]); insertTStylingBinding(tData, tNode, 'w...
{ "end_byte": 22055, "start_byte": 15347, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/styling_next/style_binding_list_spec.ts" }
angular/packages/core/test/render3/styling_next/style_binding_list_spec.ts_22056_22497
lassBindings : tNode.styleBindings); while (true) { const tStylingRange = tData[index + 1] as TStylingRange; const prev = getTStylingRangePrev(tStylingRange); if (prev === 0) { // found head exit. return index; } else { index = prev; } } }
{ "end_byte": 22497, "start_byte": 22056, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/styling_next/style_binding_list_spec.ts" }
angular/packages/core/test/render3/styling_next/static_styling_spec.ts_0_1941
/** * @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 {createTNode} from '@angular/core/src/render3/instructions/shared'; import {AttributeMarker} from '@angular/c...
{ "end_byte": 1941, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/styling_next/static_styling_spec.ts" }
angular/packages/core/test/render3/styling_next/class_differ_spec.ts_0_976
/** * @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 {classIndexOf} from '../../../src/render3/styling/class_differ'; describe('class differ', () => { describe...
{ "end_byte": 976, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/styling_next/class_differ_spec.ts" }
angular/packages/core/test/render3/i18n/i18n_spec.ts_0_991
/** * @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 {ɵɵi18nAttributes, ɵɵi18nPostprocess, ɵɵi18nStart} from '@angular/core'; import {ɵɵi18n} from '@angular/core/...
{ "end_byte": 991, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/i18n/i18n_spec.ts" }
angular/packages/core/test/render3/i18n/i18n_spec.ts_993_7864
ntime i18n', () => { describe('getTranslationForTemplate', () => { it('should crop messages for the selected template', () => { let message = `simple text`; expect(getTranslationForTemplate(message, -1)).toEqual(message); message = `Hello �0�!`; expect(getTranslationForTemplate(message, -...
{ "end_byte": 7864, "start_byte": 993, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/i18n/i18n_spec.ts" }
angular/packages/core/test/render3/i18n/i18n_spec.ts_7870_11122
! // </div> const message = `�0� is rendered as: �*2:1��#1:1�before�*2:2��#1:2�middle�/#1:2��/*2:2�after�/#1:1��/*2:1�!`; /**** Root template ****/ // �0� is rendered as: �*2:1��/*2:1�! let nbConsts = 3; let index = 1; let opCodes = getOpCodes( message, () =...
{ "end_byte": 11122, "start_byte": 7870, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/i18n/i18n_spec.ts" }
angular/packages/core/test/render3/i18n/i18n_spec.ts_11128_16255
getOpCodes( message, () => { ɵɵelementStart(0, 'div'); ɵɵi18nStart(index, 0); ɵɵelementEnd(); }, nbConsts, HEADER_OFFSET + index, ) as TI18n; expect(opCodes).toEqual({ create: matchDebug([ `lView[${HEADER_OFFSET + 2}] =...
{ "end_byte": 16255, "start_byte": 11128, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/i18n/i18n_spec.ts" }
angular/packages/core/test/render3/i18n/i18n_spec.ts_16261_23218
const index = 1; const opCodes = getOpCodes( message, () => { ɵɵelementStart(0, 'div'); ɵɵi18n(index, 0); ɵɵelementEnd(); }, nbConsts, HEADER_OFFSET + index, ); expect(opCodes).toEqual({ create: matchDebug([ ...
{ "end_byte": 23218, "start_byte": 16261, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/i18n/i18n_spec.ts" }
angular/packages/core/test/render3/i18n/i18n_spec.ts_23222_28771
] Bar - no ICU here'], // multi-value cases [ `Start: ${str}, ${str} and ${str}, ${str} end.`, {}, `Start: ${arr[0]}, ${arr[1]} and ${arr[2]}, ${arr[3]} end.`, ], // replace VAR_SELECT [ 'My ICU: {VAR_SELECT, select, =1 {one} other {other...
{ "end_byte": 28771, "start_byte": 23222, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/i18n/i18n_spec.ts" }
angular/packages/core/test/render3/i18n/i18n_spec.ts_28775_34191
n index; } it('should process text node with no siblings and no children', () => { i18nStartFirstCreatePass( fixture.tView, 0, fixture.lView, HEADER_OFFSET + 1, 'Hello World!', -1, ); const ti18n = fixture.tView.data[HEADER_OFFSET + 1] as TI18n;...
{ "end_byte": 34191, "start_byte": 28775, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/i18n/i18n_spec.ts" }
angular/packages/core/test/render3/i18n/i18n_parse_spec.ts_0_5966
/** * @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 {ɵɵi18nApply, ɵɵi18nExp} from '@angular/core'; import {applyCreateOpCodes} from '@angular/core/src/render3/i1...
{ "end_byte": 5966, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/i18n/i18n_parse_spec.ts" }
angular/packages/core/test/render3/i18n/i18n_parse_spec.ts_5972_11995
fixture = new ViewFixture({decls: 1, vars: 3}); // TData | LView // ---------------------------+------------------------------- // ----- DECL ----- // 21: TI18n | // ----- VARS ----- // 22: Binding for ...
{ "end_byte": 11995, "start_byte": 5972, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/i18n/i18n_parse_spec.ts" }
angular/packages/core/test/render3/i18n/i18n_insert_before_index_spec.ts_0_7937
/** * @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 {addTNodeAndUpdateInsertBeforeIndex} from '@angular/core/src/render3/i18n/i18n_insert_before_index'; import {...
{ "end_byte": 7937, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/i18n/i18n_insert_before_index_spec.ts" }
angular/packages/core/test/render3/i18n/i18n_insert_before_index_spec.ts_7941_9540
describe('scenario', () => { it('should rearrange the nodes', () => { const previousTNodes: TNode[] = []; addTNodeAndUpdateInsertBeforeIndex( previousTNodes, tPlaceholderElementNode(HEADER_OFFSET + 2), ); addTNodeAndUpdateInsertBeforeIndex( previousTNodes, tPl...
{ "end_byte": 9540, "start_byte": 7941, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/i18n/i18n_insert_before_index_spec.ts" }
angular/packages/core/test/render3/interfaces/node_spec.ts_0_1421
/** * @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 {TNodeType, toTNodeTypeAsString} from '@angular/core/src/render3/interfaces/node'; describe('node interfaces...
{ "end_byte": 1421, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/render3/interfaces/node_spec.ts" }
angular/packages/core/test/dom/dom_adapter_spec.ts_0_2312
/** * @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 {isTextNode} from '@angular/platform-browser/testing/src/b...
{ "end_byte": 2312, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/dom/dom_adapter_spec.ts" }
angular/packages/core/test/dom/shim_spec.ts_0_666
/** * @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 */ // This isn't used for anything, but for some reason Bazel won't // serve the file if there isn't at least one impor...
{ "end_byte": 666, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/dom/shim_spec.ts" }
angular/packages/core/test/strict_types/inheritance_spec.ts_0_1402
/** * @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 {ɵɵComponentDeclaration, ɵɵPipeDeclaration} from '@angular/core'; declare class SuperComponent { static ɵc...
{ "end_byte": 1402, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/strict_types/inheritance_spec.ts" }