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 {
145
145
async matchesSelector ( selector : string ) : Promise < boolean > {
146
146
return browser . executeScript ( `
147
147
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])
153
149
` , this . element , selector ) ;
154
150
}
155
151
Original file line number Diff line number Diff line change @@ -141,12 +141,8 @@ export class UnitTestElement implements TestElement {
141
141
async matchesSelector ( selector : string ) : Promise < boolean > {
142
142
await this . _stabilize ( ) ;
143
143
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 ) ;
150
146
}
151
147
152
148
async forceStabilize ( ) : Promise < void > {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export class MatMenuItemHarness extends ComponentHarness {
26
26
* @return a `HarnessPredicate` configured with the given options.
27
27
*/
28
28
static with ( options : MenuItemHarnessFilters = { } ) : HarnessPredicate < MatMenuItemHarness > {
29
- return new HarnessPredicate ( MatMenuItemHarness , options ) ; // TODO: add options here
29
+ return new HarnessPredicate ( MatMenuItemHarness , options ) ;
30
30
}
31
31
32
32
/** Gets a boolean promise indicating if the menu is disabled. */
You can’t perform that action at this time.
0 commit comments