Skip to content

Commit

Permalink
Add some More data url tests (fabricjs#5453)
Browse files Browse the repository at this point in the history
* added some tests

* added flipped text example

* no navigator break down
  • Loading branch information
asturur authored Dec 30, 2018
1 parent ecc5d0d commit 21b0ce6
Show file tree
Hide file tree
Showing 8 changed files with 136 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/static_canvas.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@

/**
* Indicates whether toObject/toDatalessObject should include default values
* if set to false, takes precedence over the object value.
* @type Boolean
* @default
*/
Expand Down Expand Up @@ -1176,7 +1177,7 @@
objects: this._toObjects(methodName, propertiesToInclude),
};
if (clipPath) {
clipPath = clipPath.toObject(propertiesToInclude);
data.clipPath = this._toObjectMethod(clipPath, methodName, propertiesToInclude);
}
extend(data, this.__serializeBgOverlay(methodName, propertiesToInclude));

Expand Down
Binary file added test/visual/golden/dataurl31.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/visual/golden/dataurl4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/visual/golden/dataurl5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/visual/golden/dataurl6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/visual/golden/dataurl7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
144 changes: 134 additions & 10 deletions test/visual/toDataURL.js

Large diffs are not rendered by default.

File renamed without changes.

0 comments on commit 21b0ce6

Please sign in to comment.