This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tests): performance improvements and fixes to jasmine testing
* Refactor internal test utils to angular-material-spec.js * Publish material mocks `angular-material-mocks.js` to work with angular-mocks.js for 3rd party unit testing. * Removed module wrappers around all components * now only has a single module wrapper protecting all the angular material code * Replaced use of `Function.bind( )` with `angular.bind()` * Fixed tests runs with uncompiled source **or** compiled, deployed `angular-material.js` * Use angular-material-mocks.js to decorate $$rAF.throttle(), force $mdAria.expectWithText() to be synchronous, and disable the generation of Theme CSS rules. * Major testing speed improvements by disabling Theme CSS generation. * Theme improvements: test existence of Theme CSS rule before regenerating. * Now works with Safari, Firefox, PhantomJS, and Chrome browser testing. * Running karma on ci was not exiting with non zero code, giving the impression the specs passed * fix(tests): karma tests with minified source now pass properly * Restored module wrapper to material theme constants. * Passed global args to module wrapper for JS modules * Minified code no longer contains angular-material-mocks; which is not deployed as external file. * fix(tests): improve use of module wrappers * Auto-wrap all JS files in module wrapper. * Repackage angular-material-mocks.js to `/test/` directory * Change karma logLevel to 'warn' Closes #2800. Closes #2535.
- Loading branch information
1 parent
a8fd0f4
commit 786b0ed
Showing
37 changed files
with
826 additions
and
728 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.