File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
modules/angular2/test/core/linker Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1758,7 +1758,15 @@ export function main() {
1758
1758
. toEqual ( 'http://www.w3.org/2000/svg' ) ;
1759
1759
expect ( DOM . getProperty ( < Element > use , 'namespaceURI' ) )
1760
1760
. toEqual ( 'http://www.w3.org/2000/svg' ) ;
1761
- expect ( DOM . getOuterHTML ( < HTMLElement > use ) ) . toContain ( 'xmlns:xlink' ) ;
1761
+
1762
+ if ( ! IS_DART ) {
1763
+ var firstAttribute = DOM . getProperty ( < Element > use , 'attributes' ) [ 0 ] ;
1764
+ expect ( firstAttribute . name ) . toEqual ( 'xlink:href' ) ;
1765
+ expect ( firstAttribute . namespaceURI ) . toEqual ( 'http://www.w3.org/1999/xlink' ) ;
1766
+ } else {
1767
+ // For Dart where '_Attr' has no instance getter 'namespaceURI'
1768
+ expect ( DOM . getOuterHTML ( < HTMLElement > use ) ) . toContain ( 'xmlns:xlink' ) ;
1769
+ }
1762
1770
1763
1771
async . done ( ) ;
1764
1772
} ) ;
You can’t perform that action at this time.
0 commit comments