fix(test): "integration tests svg should support svg elements" fails in non-Chrome browsers
Fixes #4987 Closes #5000
This commit is contained in:
parent
6815acea32
commit
c4964e7c9b
@ -1758,7 +1758,15 @@ export function main() {
|
|||||||
.toEqual('http://www.w3.org/2000/svg');
|
.toEqual('http://www.w3.org/2000/svg');
|
||||||
expect(DOM.getProperty(<Element>use, 'namespaceURI'))
|
expect(DOM.getProperty(<Element>use, 'namespaceURI'))
|
||||||
.toEqual('http://www.w3.org/2000/svg');
|
.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();
|
async.done();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user