]> source.dussan.org Git - svg.js.git/commitdiff
fixed id in test which is different in headless browser
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Wed, 12 Oct 2016 16:36:31 +0000 (18:36 +0200)
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Wed, 12 Oct 2016 16:36:31 +0000 (18:36 +0200)
spec/spec/element.js

index e577566b37c2a7331f98a22b82bd08e84d1bdb26..30d97491abdc9fe1a23d75c0eb41f9cd3646878e 100644 (file)
@@ -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() {