fix(test): "integration tests svg should support svg elements" fails in non-Chrome browsers

Fixes #4987

Closes #5000
This commit is contained in:
mlaval 2015-10-29 14:38:35 +01:00 committed by Marc Laval
parent 6815acea32
commit c4964e7c9b
1 changed files with 9 additions and 1 deletions

View File

@ -1758,7 +1758,15 @@ export function main() {
.toEqual('http://www.w3.org/2000/svg');
expect(DOM.getProperty(<Element>use, 'namespaceURI'))
.toEqual('http://www.w3.org/2000/svg');
expect(DOM.getOuterHTML(<HTMLElement>use)).toContain('xmlns:xlink');
if (!IS_DART) {
var firstAttribute = DOM.getProperty(<Element>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(<HTMLElement>use)).toContain('xmlns:xlink');
}
async.done();
});