File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
test/unit/modules/vdom/patch Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,17 @@ describe('element', () => {
1616 expect ( elm . namespaceURI ) . toBe ( 'http://www.w3.org/2000/svg' )
1717 } )
1818
19- it ( 'should warn unknown element' , ( ) => {
20- const vnode = new VNode ( 'unknown' )
21- patch ( null , vnode )
22- expect ( `Unknown custom element: <unknown>` ) . toHaveBeenWarned ( )
23- } )
19+ const el = document . createElement ( 'unknown' )
20+ // Android Browser <= 4.2 doesn't use correct class name,
21+ // but it doesn't matter because no one's gonna use it as their primary
22+ // development browser.
23+ if ( / H T M L U n k n o w n E l e m e n t / . test ( el . toString ( ) ) ) {
24+ it ( 'should warn unknown element' , ( ) => {
25+ const vnode = new VNode ( 'unknown' )
26+ patch ( null , vnode )
27+ expect ( `Unknown custom element: <unknown>` ) . toHaveBeenWarned ( )
28+ } )
29+ }
2430
2531 it ( 'should warn unknown element with hyphen' , ( ) => {
2632 const vnode = new VNode ( 'unknown-foo' )
You can’t perform that action at this time.
0 commit comments