Skip to content

Commit a78dcfa

Browse files
committed
chore(tests): fix broken linker integration test and fix DebugNode export
Fixes two small issues introduced with pr angular#6555
1 parent e1bf3d3 commit a78dcfa

File tree

5 files changed

+33
-4
lines changed

5 files changed

+33
-4
lines changed

modules/angular2/core.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ export './src/core/zone.dart';
1616
export './src/core/render.dart';
1717
export './src/core/linker.dart';
1818
export './src/core/debug/debug_node.dart' show DebugElement,
19-
Scope,
20-
inspectElement,
19+
DebugNode,
2120
asNativeElements;
2221
export './src/core/testability/testability.dart';
2322
export './src/core/change_detection.dart';

modules/angular2/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export {
2020
export * from './src/core/zone';
2121
export * from './src/core/render';
2222
export * from './src/core/linker';
23-
export {DebugElement, asNativeElements} from './src/core/debug/debug_node';
23+
export {DebugElement, DebugNode, asNativeElements} from './src/core/debug/debug_node';
2424
export * from './src/core/testability/testability';
2525
export * from './src/core/change_detection';
2626
export * from './src/core/platform_directives_and_pipes';

modules/angular2/test/core/linker/query_integration_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export function main() {
149149
.createAsync(MyComp)
150150
.then((view) => {
151151
view.detectChanges();
152-
var q = view.debugElement.componentViewChildren[0].getLocal('q');
152+
var q = view.debugElement.children[0].getLocal('q');
153153

154154
expect(q.log).toEqual([["setter", "foo"], ["init", "foo"], ["check", "foo"]]);
155155

modules/angular2/test/public_api_spec.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,24 @@ var NG_CORE = [
888888
'CyclicDependencyError.message=',
889889
'CyclicDependencyError.stackTrace',
890890
'PLATFORM_PIPES:js',
891+
'DebugNode',
892+
'DebugNode.getLocal()',
893+
'DebugNode.inject()',
894+
'DebugNode.setDebugInfo()',
895+
'DebugNode.componentInstance',
896+
'DebugNode.componentInstance=',
897+
'DebugNode.injector',
898+
'DebugNode.injector=',
899+
'DebugNode.listeners',
900+
'DebugNode.listeners=',
901+
'DebugNode.locals',
902+
'DebugNode.locals=',
903+
'DebugNode.nativeNode',
904+
'DebugNode.nativeNode=',
905+
'DebugNode.parent',
906+
'DebugNode.parent=',
907+
'DebugNode.providerTokens',
908+
'DebugNode.providerTokens=',
891909
'DebugElement',
892910
'DebugElement.children',
893911
'DebugElement.attributes',

tools/public_api_guard/public_api_spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,18 @@ const CORE = [
117117
'ContentChildrenMetadata.constructor(_selector:Type|string, {descendants=false}:{descendants?:boolean})',
118118
'CyclicDependencyError',
119119
'CyclicDependencyError.constructor(injector:Injector, key:Key)',
120+
'DebugNode',
121+
'DebugNode.componentInstance:any',
122+
'DebugNode.constructor(nativeNode:any, parent:DebugNode)',
123+
'DebugNode.getLocal(name:string):any',
124+
'DebugNode.inject(token:any):any',
125+
'DebugNode.injector:Injector',
126+
'DebugNode.listeners:EventListener[]',
127+
'DebugNode.locals:Map<string, any>',
128+
'DebugNode.nativeNode:any',
129+
'DebugNode.parent:DebugElement',
130+
'DebugNode.providerTokens:any[]',
131+
'DebugNode.setDebugInfo(info:RenderDebugInfo):any',
120132
'DebugElement',
121133
'DebugElement.children:DebugElement[]',
122134
'DebugElement.nativeElement:any',

0 commit comments

Comments
 (0)