Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some tests i have no idea why broke with last merge master #3

Merged
merged 1 commit into from
Nov 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions test/unit/itext_click_behaviour.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
(function(){

var canvas = new fabric.Canvas();

var canvas;
QUnit.module('iText click interaction', function(hooks) {
hooks.beforeEach(function() {
canvas = new fabric.Canvas(null, {
enableRetinaScaling: false
});
});
hooks.afterEach(function() {
canvas.clear();
canvas.cancelRequestedRender();
Expand Down Expand Up @@ -164,7 +167,6 @@
hooks.beforeEach(function() {
canvas.enableRetinaScaling = false;
});

QUnit.test('click on editing itext make selection:changed fire', function(assert) {
var done = assert.async();
var eventData = {
Expand Down Expand Up @@ -210,9 +212,11 @@

QUnit.module('iText click interaction with canvas.enableRetinaScaling = true', function(hooks) {
hooks.beforeEach(function() {
canvas.enableRetinaScaling = true;
fabric.devicePixelRatio = 2;
canvas = new fabric.Canvas(null, {
enableRetinaScaling: true,
});
});

QUnit.test('click on editing itext make selection:changed fire', function(assert) {
var done = assert.async();
var eventData = {
Expand Down