In the browser all console.log calls will show the correct results. When run as unit tests curContext.lineWidth will return function () {} instead of 1 on the first console.log call. The second and third calls will be correct but the last two console.log calls will incorrectly show the same result as the third one (in other words popStyle will have no effect on the values of curContext.lineWidth and curContext.fillStyle.
See discussion in #234 as to where the potential issue may lie.
If this can be fixed it'd be good to later add unit tests for most style changes that can be done with pushStyle/popStyle.
Activity