diff --git a/modules/angular2/test/core/linker/integration_spec.ts b/modules/angular2/test/core/linker/integration_spec.ts index 383dcc8ed5..b801211df4 100644 --- a/modules/angular2/test/core/linker/integration_spec.ts +++ b/modules/angular2/test/core/linker/integration_spec.ts @@ -1758,7 +1758,15 @@ export function main() { .toEqual('http://www.w3.org/2000/svg'); expect(DOM.getProperty(use, 'namespaceURI')) .toEqual('http://www.w3.org/2000/svg'); - expect(DOM.getOuterHTML(use)).toContain('xmlns:xlink'); + + if (!IS_DART) { + var firstAttribute = DOM.getProperty(use, 'attributes')[0]; + expect(firstAttribute.name).toEqual('xlink:href'); + expect(firstAttribute.namespaceURI).toEqual('http://www.w3.org/1999/xlink'); + } else { + // For Dart where '_Attr' has no instance getter 'namespaceURI' + expect(DOM.getOuterHTML(use)).toContain('xmlns:xlink'); + } async.done(); });