diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-07 19:41:56 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-07 19:48:06 +0100 |
commit | 40f705bfd8409ecbe03e2e182cf8477c4679be4b (patch) | |
tree | 913c07ebf93f2725abe6dc5bf8840e77e081f4a1 | |
parent | f5f4791a5a9e124e6136184e053904f29970cd7b (diff) | |
download | svg.js-40f705bfd8409ecbe03e2e182cf8477c4679be4b.tar.gz svg.js-40f705bfd8409ecbe03e2e182cf8477c4679be4b.zip |
fix mistake in test
-rw-r--r-- | spec/spec/element.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/spec/element.js b/spec/spec/element.js index a02d635..c209f34 100644 --- a/spec/spec/element.js +++ b/spec/spec/element.js @@ -890,7 +890,7 @@ describe('Element', function() { rect = draw.rect(10, 10) circle = draw.circle(20, 20) group = draw.group() - + group.add(rect) group.add(circle) }) @@ -901,9 +901,9 @@ describe('Element', function() { }) expect( - result === '<g><rect width="10" height="10" class="test"></rect><circle r="10" cx="10" cy="10" class="test"></circle></g>' - || result === '<g><rect height="10" width="10" class="test"></rect><circle r="10" cx="10" cy="10" class="test"></circle></g>' - || result === '<g xmlns="http://www.w3.org/2000/svg"><rect width="10" height="10" class="test"></rect><circle r="10" cx="10" cy="10" class="test"></circle></g>' + result === '<g class="test"><rect width="10" height="10" class="test"></rect><circle r="10" cx="10" cy="10" class="test"></circle></g>' + || result === '<g class="test"><rect height="10" width="10" class="test"></rect><circle r="10" cx="10" cy="10" class="test"></circle></g>' + || result === '<g class="test" xmlns="http://www.w3.org/2000/svg"><rect width="10" height="10" class="test"></rect><circle r="10" cx="10" cy="10" class="test"></circle></g>' ).toBeTruthy() }) @@ -913,7 +913,7 @@ describe('Element', function() { return draw.rect(15, 15) } }) - + expect( result === '<g><rect width="10" height="10"></rect><rect width="15" height="15"></rect></g>' || result === '<g><rect height="10" width="10"></rect><rect height="15" width="15"></rect></g>' @@ -927,7 +927,7 @@ describe('Element', function() { return false } }) - + expect( result === '<g><rect width="10" height="10"></rect></g>' || result === '<g><rect height="10" width="10"></rect></g>' |