chore(tests): fix broken linker integration test and fix DebugNode export

Fixes two small issues introduced with pr #6555
This commit is contained in:
Julie Ralph 2016-01-29 13:30:36 -08:00
parent e1bf3d33f8
commit a78dcfa5f3
5 changed files with 33 additions and 4 deletions

View File

@ -16,8 +16,7 @@ export './src/core/zone.dart';
export './src/core/render.dart';
export './src/core/linker.dart';
export './src/core/debug/debug_node.dart' show DebugElement,
Scope,
inspectElement,
DebugNode,
asNativeElements;
export './src/core/testability/testability.dart';
export './src/core/change_detection.dart';

View File

@ -20,7 +20,7 @@ export {
export * from './src/core/zone';
export * from './src/core/render';
export * from './src/core/linker';
export {DebugElement, asNativeElements} from './src/core/debug/debug_node';
export {DebugElement, DebugNode, asNativeElements} from './src/core/debug/debug_node';
export * from './src/core/testability/testability';
export * from './src/core/change_detection';
export * from './src/core/platform_directives_and_pipes';

View File

@ -149,7 +149,7 @@ export function main() {
.createAsync(MyComp)
.then((view) => {
view.detectChanges();
var q = view.debugElement.componentViewChildren[0].getLocal('q');
var q = view.debugElement.children[0].getLocal('q');
expect(q.log).toEqual([["setter", "foo"], ["init", "foo"], ["check", "foo"]]);

View File

@ -888,6 +888,24 @@ var NG_CORE = [
'CyclicDependencyError.message=',
'CyclicDependencyError.stackTrace',
'PLATFORM_PIPES:js',
'DebugNode',
'DebugNode.getLocal()',
'DebugNode.inject()',
'DebugNode.setDebugInfo()',
'DebugNode.componentInstance',
'DebugNode.componentInstance=',
'DebugNode.injector',
'DebugNode.injector=',
'DebugNode.listeners',
'DebugNode.listeners=',
'DebugNode.locals',
'DebugNode.locals=',
'DebugNode.nativeNode',
'DebugNode.nativeNode=',
'DebugNode.parent',
'DebugNode.parent=',
'DebugNode.providerTokens',
'DebugNode.providerTokens=',
'DebugElement',
'DebugElement.children',
'DebugElement.attributes',

View File

@ -117,6 +117,18 @@ const CORE = [
'ContentChildrenMetadata.constructor(_selector:Type|string, {descendants=false}:{descendants?:boolean})',
'CyclicDependencyError',
'CyclicDependencyError.constructor(injector:Injector, key:Key)',
'DebugNode',
'DebugNode.componentInstance:any',
'DebugNode.constructor(nativeNode:any, parent:DebugNode)',
'DebugNode.getLocal(name:string):any',
'DebugNode.inject(token:any):any',
'DebugNode.injector:Injector',
'DebugNode.listeners:EventListener[]',
'DebugNode.locals:Map<string, any>',
'DebugNode.nativeNode:any',
'DebugNode.parent:DebugElement',
'DebugNode.providerTokens:any[]',
'DebugNode.setDebugInfo(info:RenderDebugInfo):any',
'DebugElement',
'DebugElement.children:DebugElement[]',
'DebugElement.nativeElement:any',