From 032f8b784008b249ff7112f5b2be6248625a4ce1 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Tue, 12 May 2015 14:11:29 -0700 Subject: [PATCH] fix(test): fixed a test --- .../test/render/dom/dom_renderer_integration_spec.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/angular2/test/render/dom/dom_renderer_integration_spec.js b/modules/angular2/test/render/dom/dom_renderer_integration_spec.js index 5b0d6bfd4c..4db5f06116 100644 --- a/modules/angular2/test/render/dom/dom_renderer_integration_spec.js +++ b/modules/angular2/test/render/dom/dom_renderer_integration_spec.js @@ -101,15 +101,16 @@ export function main() { tb.compileAll([someComponent, new ViewDefinition({ componentId: 'someComponent', - template: '
', + template: '', directives: [directiveWithHostActions] }) ]).then( (protoViewDtos) => { var views = tb.createRootViews(protoViewDtos); var componentView = views[1]; - tb.renderer.callAction(componentView.viewRef, 0, 'setAttribute("key", "value")', null); - expect(DOM.getOuterHTML(tb.rootEl)).toContain('key="value"'); + tb.renderer.callAction(componentView.viewRef, 0, 'value = "val"', null); + + expect(DOM.getValue(DOM.childNodes(tb.rootEl)[0])).toEqual('val'); async.done(); }); })); @@ -177,6 +178,6 @@ var directiveWithHostActions = new DirectiveMetadata({ type: DirectiveMetadata.DIRECTIVE_TYPE, selector: '[with-host-actions]', hostActions: MapWrapper.createFromStringMap({ - 'setAttr' : 'setAttribute("key", "value")' + 'setValue' : 'value = "val"' }) });