Fix styleSheets index issue

This commit is contained in:
Tyler Long
2017-09-12 16:23:21 +08:00
parent 5424092189
commit b1dffc9eec

View File

@@ -100,7 +100,7 @@ describe('when cloning CSS ', function () {
svg.setAttribute('id', 'mermaid-01') svg.setAttribute('id', 'mermaid-01')
// Firefox throws a SecurityError when trying to access cssRules // Firefox throws a SecurityError when trying to access cssRules
document.styleSheets[document.styleSheets.length] = { document.styleSheets[document.styleSheets.length - 1] = {
get cssRules () { throw new Error('SecurityError') } get cssRules () { throw new Error('SecurityError') }
} }