diff --git a/src/components/autocomplete/autocomplete.spec.js b/src/components/autocomplete/autocomplete.spec.js index 925c3f44537..043031765ab 100644 --- a/src/components/autocomplete/autocomplete.spec.js +++ b/src/components/autocomplete/autocomplete.spec.js @@ -914,7 +914,7 @@ describe('', function() { })); it('removes the md-scroll-mask on cleanup', inject(function($mdUtil, $timeout, $material) { - spyOn($mdUtil, 'enableScrolling'); + spyOn($mdUtil, 'enableScrolling').and.callThrough(); var scope = createScope(); var template = @@ -957,7 +957,7 @@ describe('', function() { })); it('removes the md-scroll-mask when md-autocomplete removed on change', inject(function($mdUtil, $timeout, $material) { - spyOn($mdUtil, 'enableScrolling'); + spyOn($mdUtil, 'enableScrolling').and.callThrough(); var scope = createScope(); var template = diff --git a/src/components/panel/panel.spec.js b/src/components/panel/panel.spec.js index 208f36210d5..657d040ff5e 100644 --- a/src/components/panel/panel.spec.js +++ b/src/components/panel/panel.spec.js @@ -675,14 +675,10 @@ describe('$mdPanel', function() { spyOn($mdUtil, 'disableScrollAround').and.callThrough(); openPanel(config); - expect(PANEL_EL).toExist(); - expect(SCROLL_MASK_CLASS).toExist(); - + expect(SCROLL_MASK_CLASS).not.toExist(); closePanel(); - var scrollMaskEl = $rootEl[0].querySelector(SCROLL_MASK_CLASS); - expect(scrollMaskEl).not.toExist(); expect($mdUtil.disableScrollAround).toHaveBeenCalled(); });