File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 414414 this . _importPath = meta . url . slice ( 0 , meta . url . lastIndexOf ( '/' ) + 1 ) ;
415415 } else {
416416 const module = Polymer . DomModule && Polymer . DomModule . import ( /** @type {PolymerElementConstructor } */ ( this ) . is ) ;
417- if ( module ) {
418- this . _importPath = module ? module . assetpath : '' ;
419- } else {
420- this . _importPath = Object . getPrototypeOf ( /** @type {PolymerElementConstructor }*/ ( this ) . prototype ) . constructor . importPath ;
421- }
417+ this . _importPath = ( module && module . assetpath ) ||
418+ Object . getPrototypeOf ( /** @type {PolymerElementConstructor }*/ ( this ) . prototype ) . constructor . importPath ;
422419 }
423420 }
424421 return this . _importPath ;
Original file line number Diff line number Diff line change 5858 var resolvedUrl = new RegExp ( `${ folder } /foo\\.z` ) ;
5959 var styleHashUrl = / u r l \( ' # b a r ' \) / ;
6060 var styleAbsUrl = / u r l \( ' \/ z o t ' \) / ;
61- var style = el . shadowRoot . querySelector ( 'style' ) || document . querySelector ( ' style[scope=p-r]' ) ;
61+ var style = el . shadowRoot . querySelector ( 'style' ) || document . querySelector ( ` style[scope=${ elementName } ]` ) ;
6262 assert . match ( style . textContent , resolvedUrl , 'url not relative to main document' ) ;
6363 assert . match ( style . textContent , styleHashUrl , 'hash url incorrectly resolved' ) ;
6464 assert . match ( style . textContent , styleAbsUrl , 'absolute url incorrectly resolved' ) ;
You can’t perform that action at this time.
0 commit comments