update master to V7

This commit is contained in:
JFH
2021-05-09 19:29:45 +02:00
parent 41fc05672d
commit 593c415664
1000 changed files with 47537 additions and 54304 deletions

View File

@@ -38,11 +38,10 @@ describe('use various parts of svg-edit', function () {
cy.get('#tool_text')
.click({force: true});
cy.get('#rect')
.trigger('mousedown', 'center', {force: true})
.trigger('mousedown', 46, 35, {force: true})
.trigger('mouseup', {force: true});
// svgedit use the #text text field to capture the text
// cy.get('#text').type('1234', {force: true});
cy.get('#text').type('B', {force: true});
cy.get('#text').type('AB', {force: true});
testSnapshot();
});
@@ -88,76 +87,22 @@ describe('use various parts of svg-edit', function () {
.click({force: true});
testSnapshot();
});
it('check tool_text_decoration_underline', function () {
cy.get('#svg_1').click({force: true});
cy.get('#tool_text_decoration_underline')
.click({force: true});
testSnapshot();
});
it('check tool_text_decoration_overline', function () {
cy.get('#svg_1').click({force: true});
cy.get('#tool_text_decoration_overline')
.click({force: true});
testSnapshot();
});
it('check tool_text_decoration_linethrough', function () {
cy.get('#svg_1').click({force: true});
cy.get('#tool_text_decoration_linethrough')
.click({force: true});
testSnapshot();
});
it('check tool_letter_spacing', function () {
cy.get('#svg_1').click({force: true});
cy.get('#letter_spacing')
.type('{selectall}', {force: true})
.type('150', {force: true})
.type('{enter}', {force: true});
testSnapshot();
});
it('check tool_word_spacing', function () {
cy.get('#svg_1').click({force: true});
cy.get('#word_spacing')
.type('{selectall}', {force: true})
.type('10', {force: true})
.type('{enter}', {force: true});
testSnapshot();
});
it('check tool_text_length', function () {
cy.get('#svg_1').click({force: true});
cy.get('#text_length')
.type('{selectall}', {force: true})
.type('600', {force: true})
.type('{enter}', {force: true});
testSnapshot();
});
it('check tool_length_adjust_spacing', function () {
cy.get('#svg_1').click({force: true});
cy.get('#tool_length_adjust_spacing')
.click({force: true});
testSnapshot();
});
it('check tool_length_adjust_spacingAndGlyphs', function () {
cy.get('#svg_1').click({force: true});
cy.get('#tool_length_adjust_spacingAndGlyphs')
.click({force: true});
testSnapshot();
});
it('check tool_star', function () {
cy.get('#tool_star')
.click({force: true});
cy.get('#svgcontent')
.trigger('mousedown', {which: 1, pageX: 600, pageY: 150, force: true})
.trigger('mousemove', {which: 1, pageX: 600, pageY: 170, force: true})
.trigger('mousedown', 300, 150, {force: true})
.trigger('mousemove', 300, 250, {force: true})
.trigger('mouseup', {force: true});
cy.get('#svgcontent').toMatchSnapshot();
testSnapshot();
});
it('check tool_polygon', function () {
cy.get('#tool_polygon')
.click({force: true});
cy.get('#svgcontent')
.trigger('mousedown', {which: 1, pageX: 650, pageY: 200, force: true})
.trigger('mousemove', {which: 1, pageX: 650, pageY: 210, force: true})
.trigger('mousedown', 350, 250, {force: true})
.trigger('mousemove', 350, 370, {force: true})
.trigger('mouseup', {force: true});
cy.get('#svgcontent').toMatchSnapshot();
testSnapshot();
});
});