ImportSVG Test Specifics - Stetson-Team-Alpha/paper.js GitHub Wiki

All objected labeled Tested have either passed or have details in the results page

ImportSVG

Import Text

Input text with (x, y, dx, dy, rotate, textLength, lengthAdjust, textContent) value not set or invalid

  • Expected Value (EV): Set variable to 0
  • Tested

Create various text SVG objects, with a range of parameters, some paying close attention to rotation

  • EV: Visual evaluation, Justin-style
  • Tested

Import Line

Input line with (x1, y1, x2, y2) value not set or invalid

  • EV: Set variable to 0
  • Tested

Create various line SVG objects, with a range of parameters.

  • EV: Visual evaluation
  • Tested

Import Rectangle

Input square and rounded rectangles with (x, y, rx, ry, width, height) value not set or invalid

  • EV: Set variable to 0
  • Tested

Create various square rectangle SVG objects, with a range of parameters.

  • EV: Visual evaluation
  • Tested

Create various rounded rectangle SVG objects, with a range of parameters.

  • EV: Visual evaluation
  • Tested

Import Oval/Circle

Input oval with (cx, cy, rx, ry) value not set or invalid

  • EV: Set variable to 0
  • Tested

Create various oval SVG objects, with a range of parameters.

  • EV: Visual evaluation
  • Tested

Input circle with (cx, cy, r) value not set or invalid

  • EV: Set variable to 0
  • Tested

Create various circle SVG objects, with a range of parameters.

  • EV: Visual evaluation
  • Tested

Import Group

Import SVG with at least 20x nested groups with alternating strokeColors, then count each color and observe each shape is visible and contained within its parent

  • EV: Visual evaluation
  • Tested

Import Path

  • Tested in other test cases

Import SVG's with multiple shapes

  • EV: Visual evaluation
  • Tested

SVG Example

Create an SVG file and try to load it

  • EV: Visual evaluation
  • Tested