diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-10-12 18:36:31 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-10-12 18:36:31 +0200 |
commit | 9b0408547ed18e15ea9221303c707877ae8e8798 (patch) | |
tree | 93cd4a4ec375887858d721bb78ca03ff1235762b /spec | |
parent | 42664efc087efacec3d44af87919a7305720c9bc (diff) | |
download | svg.js-9b0408547ed18e15ea9221303c707877ae8e8798.tar.gz svg.js-9b0408547ed18e15ea9221303c707877ae8e8798.zip |
fixed id in test which is different in headless browser
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/element.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/spec/element.js b/spec/spec/element.js index e577566..30d9749 100644 --- a/spec/spec/element.js +++ b/spec/spec/element.js @@ -585,8 +585,8 @@ describe('Element', function() { // Test for different browsers namely Firefox and Chrome expect( - toBeTested === '<svg xmlns:svgjs="http://svgjs.com/svgjs" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" xmlns="http://www.w3.org/2000/svg" height="100" width="100" id="SvgjsSvg1001"><rect height="100" width="100"></rect><circle fill="#ff0066" cy="50" cx="50" r="50"></circle></svg>' - || toBeTested === '<svg id="SvgjsSvg1001" width="100" height="100" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs"><rect width="100" height="100"></rect><circle r="50" cx="50" cy="50" fill="#ff0066"></circle></svg>').toBeTruthy() + toBeTested === '<svg xmlns:svgjs="http://svgjs.com/svgjs" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" xmlns="http://www.w3.org/2000/svg" height="100" width="100" id="' + draw.id() + '"><rect height="100" width="100"></rect><circle fill="#ff0066" cy="50" cx="50" r="50"></circle></svg>' + || toBeTested === '<svg id="' + draw.id() + '" width="100" height="100" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs"><rect width="100" height="100"></rect><circle r="50" cx="50" cy="50" fill="#ff0066"></circle></svg>').toBeTruthy() }) it('returns partial raw svg when called on a sub group', function() { |