Fix browser.js error messages when testing whether replaceItem and insertItemBefore work, since paths must start with M commands

master
Jeff Schiller 2016-02-14 13:42:28 -08:00
parent 6715e62146
commit 948ba30214
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ var supportsPathReplaceItem_ = (function() {
var seglist = path.pathSegList;
var seg = path.createSVGPathSegLinetoAbs(5,5);
try {
seglist.replaceItem(seg, 0);
seglist.replaceItem(seg, 1);
return true;
} catch(err) {}
return false;
@ -71,7 +71,7 @@ var supportsPathInsertItemBefore_ = (function() {
var seglist = path.pathSegList;
var seg = path.createSVGPathSegLinetoAbs(5,5);
try {
seglist.insertItemBefore(seg, 0);
seglist.insertItemBefore(seg, 1);
return true;
} catch(err) {}
return false;