• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hustcc / jest-canvas-mock / 65 / 5
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 29 Jan 2019 05:56AM UTC
Files 7
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Jan 2019 05:54AM UTC coverage: 100.0%. Remained the same
65.5

push

travis-ci

hustcc
CanvasRenderingContext2D class implementation (#17)

* first commit, add classes, add a few properties

* implement DOMMatrix and acheive 100% coverage for DOMMatrix

* implement ImageData, fix DOMMatrix constructor, remove createCanvas and relative testing (since jsdom supports creating canvas objects)

* fix getImageData implementation

* Strange error

* fix mocking code, implement createPattern

* implement a bunch of tests, acheive almost 100% test coverage

* implement globalCompositeOperation

* implement imageSmoothingQuality

* Implement setLineDash

* implement setTransform, todo: implement DOMMatrix setTransform

* lineWidth, setTransform

* refactor tests into their own files, implement a lot more properties

* textAlign, textBaseline

* add addHitRegion, todo: finish addHitRegion

* add addHitRegion, todo: finish addHitRegion

* add a lot of functions

* add a lot of functions

* add stroke, scale, save

* fix getImageData, createRadialGradient, create fillRect, rect, resetTransform, strokeRect, and clearRect

* translate, moveTo, lineTo

* fix arc, createRadialGradient, add TextMetrics to window, add createLinearGradient, measureText, ellipse, rotate, bezierCurveTo

* isPointInPath, isPointInStroke, drawImage, drawFocusIfNeeded

* Implement fill, fillText, putImageData, quadraticCurveTo, removeHitRegion, scrollPathIntoView, strokeText, transform

* update package.json format

* fix canvasgradient output

353 of 353 branches covered (100.0%)

Branch coverage included in aggregate %.

392 of 392 relevant lines covered (100.0%)

39.39 hits per line

Source Files on job 65.5
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 50
  • Travis Job 65.5
  • ca486a1d on github
  • Prev Job for on master (#36.1)
  • Next Job for on master (#73.6)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc