File tree Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -145,11 +145,7 @@ export class ProtractorElement implements TestElement {
145145 async matchesSelector ( selector : string ) : Promise < boolean > {
146146 return browser . executeScript ( `
147147 return (Element.prototype.matches ||
148- Element.prototype.matchesSelector ||
149- Element.prototype.mozMatchesSelector ||
150- Element.prototype.msMatchesSelector ||
151- Element.prototype.oMatchesSelector ||
152- Element.prototype.webkitMatchesSelector).call(arguments[0], arguments[1])
148+ Element.prototype.msMatchesSelector).call(arguments[0], arguments[1])
153149 ` , this . element , selector ) ;
154150 }
155151
Original file line number Diff line number Diff line change @@ -141,12 +141,8 @@ export class UnitTestElement implements TestElement {
141141 async matchesSelector ( selector : string ) : Promise < boolean > {
142142 await this . _stabilize ( ) ;
143143 const elementPrototype = Element . prototype as any ;
144- return ( elementPrototype [ 'matches' ] ||
145- elementPrototype [ 'matchesSelector' ] ||
146- elementPrototype [ 'mozMatchesSelector' ] ||
147- elementPrototype [ 'msMatchesSelector' ] ||
148- elementPrototype [ 'oMatchesSelector' ] ||
149- elementPrototype [ 'webkitMatchesSelector' ] ) . call ( this . element , selector ) ;
144+ return ( elementPrototype [ 'matches' ] || elementPrototype [ 'msMatchesSelector' ] )
145+ . call ( this . element , selector ) ;
150146 }
151147
152148 async forceStabilize ( ) : Promise < void > {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export class MatMenuItemHarness extends ComponentHarness {
2626 * @return a `HarnessPredicate` configured with the given options.
2727 */
2828 static with ( options : MenuItemHarnessFilters = { } ) : HarnessPredicate < MatMenuItemHarness > {
29- return new HarnessPredicate ( MatMenuItemHarness , options ) ; // TODO: add options here
29+ return new HarnessPredicate ( MatMenuItemHarness , options ) ;
3030 }
3131
3232 /** Gets a boolean promise indicating if the menu is disabled. */
You can’t perform that action at this time.
0 commit comments