Update gradient.js

Add test for imported transform
Update gradient.class.js

Added import of gradient transform
Merge pull request #1557 from asturur/gradient-transform-impor

attribute gradientTransform import