Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

fix(tests): performance improvements and fixes to jasmine testing #2800

Closed
wants to merge 6 commits into from

Commits on May 11, 2015

  1. 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.
    ThomasBurleson committed May 11, 2015
    Configuration menu
    Copy the full SHA
    5defa04 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3a256fb View commit details
    Browse the repository at this point in the history
  3. fix(tests): CI error reporting improved

    Running karma on ci was not exiting with non zero code, giving the impression the specs passed
    
    Closes #2535.
    ThomasBurleson committed May 11, 2015
    Configuration menu
    Copy the full SHA
    6288d88 View commit details
    Browse the repository at this point in the history
  4. 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.
    ThomasBurleson committed May 11, 2015
    Configuration menu
    Copy the full SHA
    b5353df View commit details
    Browse the repository at this point in the history
  5. 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'
    ThomasBurleson committed May 11, 2015
    Configuration menu
    Copy the full SHA
    601b3d4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f0f138a View commit details
    Browse the repository at this point in the history