test(ivy): re-enable passing tests and misc cleanup (#28093)
PR Close #28093
This commit is contained in:
parent
978ffa9d32
commit
6fff74e576
@ -168,8 +168,7 @@ describe('ngInjectableDef Bazel Integration', () => {
|
|||||||
expect(TestBed.get(INJECTOR).get('foo')).toEqual('bar');
|
expect(TestBed.get(INJECTOR).get('foo')).toEqual('bar');
|
||||||
});
|
});
|
||||||
|
|
||||||
fixmeIvy('FW-854: NodeInjector does not know how to get itself (INJECTOR)')
|
it('Component injector understands requests for INJECTABLE', () => {
|
||||||
.it('Component injector understands requests for INJECTABLE', () => {
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'test-cmp',
|
selector: 'test-cmp',
|
||||||
template: 'test',
|
template: 'test',
|
||||||
|
@ -12,7 +12,6 @@ import {ChangeDetectionStrategy, Component, Injectable, NgModule, NgModuleFactor
|
|||||||
import {ComponentFixture, TestBed, fakeAsync, inject, tick} from '@angular/core/testing';
|
import {ComponentFixture, TestBed, fakeAsync, inject, tick} from '@angular/core/testing';
|
||||||
import {By} from '@angular/platform-browser/src/dom/debug/by';
|
import {By} from '@angular/platform-browser/src/dom/debug/by';
|
||||||
import {expect} from '@angular/platform-browser/testing/src/matchers';
|
import {expect} from '@angular/platform-browser/testing/src/matchers';
|
||||||
import {fixmeIvy} from '@angular/private/testing';
|
|
||||||
import {ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, CanActivate, CanDeactivate, ChildActivationEnd, ChildActivationStart, DetachedRouteHandle, Event, GuardsCheckEnd, GuardsCheckStart, Navigation, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, PRIMARY_OUTLET, ParamMap, Params, PreloadAllModules, PreloadingStrategy, Resolve, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, Router, RouterEvent, RouterModule, RouterPreloader, RouterStateSnapshot, RoutesRecognized, RunGuardsAndResolvers, UrlHandlingStrategy, UrlSegmentGroup, UrlSerializer, UrlTree} from '@angular/router';
|
import {ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, CanActivate, CanDeactivate, ChildActivationEnd, ChildActivationStart, DetachedRouteHandle, Event, GuardsCheckEnd, GuardsCheckStart, Navigation, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, PRIMARY_OUTLET, ParamMap, Params, PreloadAllModules, PreloadingStrategy, Resolve, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, Router, RouterEvent, RouterModule, RouterPreloader, RouterStateSnapshot, RoutesRecognized, RunGuardsAndResolvers, UrlHandlingStrategy, UrlSegmentGroup, UrlSerializer, UrlTree} from '@angular/router';
|
||||||
import {Observable, Observer, Subscription, of } from 'rxjs';
|
import {Observable, Observer, Subscription, of } from 'rxjs';
|
||||||
import {filter, first, map, tap} from 'rxjs/operators';
|
import {filter, first, map, tap} from 'rxjs/operators';
|
||||||
|
@ -169,9 +169,7 @@ withEachNg1Version(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('scope/component change-detection', () => {
|
describe('scope/component change-detection', () => {
|
||||||
fixmeIvy(
|
it('should interleave scope and component expressions', async(() => {
|
||||||
'FW-918: Create API and mental model to work with Host Element; and ChangeDetections')
|
|
||||||
.it('should interleave scope and component expressions', async(() => {
|
|
||||||
const adapter: UpgradeAdapter = new UpgradeAdapter(forwardRef(() => Ng2Module));
|
const adapter: UpgradeAdapter = new UpgradeAdapter(forwardRef(() => Ng2Module));
|
||||||
const ng1Module = angular.module('ng1', []);
|
const ng1Module = angular.module('ng1', []);
|
||||||
const log: string[] = [];
|
const log: string[] = [];
|
||||||
@ -197,9 +195,8 @@ withEachNg1Version(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations:
|
||||||
adapter.upgradeNg1Component('ng1a'), adapter.upgradeNg1Component('ng1b'), Ng2
|
[adapter.upgradeNg1Component('ng1a'), adapter.upgradeNg1Component('ng1b'), Ng2],
|
||||||
],
|
|
||||||
imports: [BrowserModule],
|
imports: [BrowserModule],
|
||||||
})
|
})
|
||||||
class Ng2Module {
|
class Ng2Module {
|
||||||
|
@ -21,8 +21,7 @@ withEachNg1Version(() => {
|
|||||||
beforeEach(() => destroyPlatform());
|
beforeEach(() => destroyPlatform());
|
||||||
afterEach(() => destroyPlatform());
|
afterEach(() => destroyPlatform());
|
||||||
|
|
||||||
fixmeIvy('FW-918: Create API and mental model to work with Host Element; and ChangeDetections')
|
it('should interleave scope and component expressions', async(() => {
|
||||||
.it('should interleave scope and component expressions', async(() => {
|
|
||||||
const log: string[] = [];
|
const log: string[] = [];
|
||||||
const l = (value: string) => {
|
const l = (value: string) => {
|
||||||
log.push(value);
|
log.push(value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user