/** * * Angular-Material-Mocks * * Developers interested in running their own custom unit tests WITH angular-material.js loaded... * must also include this *mocks* file. Similar to `angular-mocks.js`, `angular-material-mocks.js` * will override and disable specific Angular Material performance settings: * * - Disabled Theme CSS rule generations * - Forces $mdAria.expectWithText() to be synchronous * - Mocks $$rAF.throttle() * - Captures flush exceptions from $$rAF * */ (function(window, angular, undefined) { 'use strict'; /** * @ngdoc module * @name ngMaterial-mock * @packageName angular-material-mocks * * @description * * The `ngMaterial-mock` module provides support * */ angular.module('ngMaterial-mock', ['ngMock', 'material.core']) .config(['$provide', function($provide) { /** * Angular Material dynamically generates Style tags * based on themes and palletes; for each ng-app. * * For testing, we want to disable generation and *