function(element, transformAttr, expectedCss) {
    var testDiv = angular.element('<div>');
    testDiv.css(transformAttr, expectedCss);
    expect(element.css(transformAttr)).toBe(testDiv.css(transformAttr));
  }
function(element, transformAttr, expectedCss) {
    var testDiv = angular.element('<div>');
    testDiv.css(transformAttr, expectedCss);
    expect(element.css(transformAttr)).toBe(testDiv.css(transformAttr));
  }
function ( element , transformAttr , expectedCss ) { var testDiv = angular . element ( '<div>' ) ; testDiv . css ( transformAttr , expectedCss ) ; expect ( element . css ( transformAttr ) ) . toBe ( testDiv . css ( transformAttr ) ) ; }
Verifies that an element has the expected CSS for its transform property.
Works by creating a new element, setting the expected CSS on that
element, and comparing to the element being tested. This convoluted
approach is needed because if jQuery is installed it can rewrite
'translate3d' values to equivalent 'matrix' values, for example turning
'translate3d(240px, 120px, 0px) scale(0.5, 0.5)' into
'matrix(0.5, 0, 0, 0.5, 240, 120)'.
Verifies that an element has the expected CSS for its transform property . Works by creating a new element setting the expected CSS on that element and comparing to the element being tested . This convoluted approach is needed because if jQuery is installed it can rewrite translate3d values to equivalent matrix values for example turning translate3d ( 240px 120px 0px ) scale ( 0 . 5 0 . 5 ) into matrix ( 0 . 5 0 0 0 . 5 240 120 ) .
Tests that an element has a transform attribute