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

autoNumeric / autoNumeric / 120
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: v4.5.6
DEFAULT BRANCH: master
Ran 16 Mar 2017 08:05PM UTC
Jobs 1
Files 4
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

pending completion
120

push

travis-ci

AlexandreBonneau
Add unit tests for the new `global.*` features

Fix issue #412 Using `set('')` does not respect the `emptyInputBehavior` option when it's set to `'always'`
Add a `createLocalList` option which allow to control whether a local list of AutoNumeric objects should be saved on initializations.
Add a `global.update()` function to update the settings on a local list.
Modify the `global.clear()` function to be able to force a `clear` call.
Add a `global.nuke()` function to `remove` then delete the local list DOM element from the DOM.
Update the `global.clear()` function signature with the `clear()` one.
Fix the `global.addObject()` function that did not update the local list of the added element.
Fix the `global.addObject()` function so that if it add an AutoNumeric object that already has a local list with multiple other AutoNumeric objects, it merges the list.
Fix the `global.removeObject()` function to make it update all the objects local list. Also add special behaviors when an AutoNumeric element removes itself or another one.
Fix the `global.empty()` function to match the `removeObject` behavior.
Simplify the `init()` method by removing a negation in one of its parameter.
Fix the `init()` method initialization process by preventing creating a local list, then removing it immediately if the user wanted a detached element. Now, the local list is just not created (Using the `createLocalList` option set to `false`).
Add an end-to-end test for the `remove()` method.
Add a `_hasLocalList()` method that tests if the AutoNumeric element has a local list and that it has at least one element in it (itself usually).

Signed-off-by: Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>

72 of 72 new or added lines in 2 files covered. (100.0%)

1474 of 2512 relevant lines covered (58.68%)

313.65 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
100.0
src/AutoNumeric.js
2
100.0
src/AutoNumericHelper.js

Coverage Regressions

Lines Coverage ∆ File
1
100.0
src/AutoNumeric.js
Jobs
ID Job ID Ran Files Coverage
1 120.1 16 Mar 2017 08:05PM UTC 0
58.68
Travis Job 120.1
Source Files on build 120
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #120
  • a5fc577e on github
  • Prev Build on next (#119)
  • Next Build on next (#121)
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

© 2026 Coveralls, Inc