Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: picker data add disabled option #453

Open
wants to merge 1,045 commits into
base: dev
Choose a base branch
from
Open

feat: picker data add disabled option #453

wants to merge 1,045 commits into from

Conversation

hezhongfeng
Copy link

  1. upgrade better-scroll to 1.15.1
  2. picker data add disabled option

dolymood and others added 9 commits March 11, 2019 19:03
* feat(date-picker): add columnOrder prop

add columnOrder prop which can be used to change the display order in case where the order is not
'Year-Month-Day Hour-Minute-Second'

* docs(date-picker): add version for columnOrder

* docs(date-picker): fix the mistake in document of date-picker

change "Day" to "Date" in the expression of columnOrder prop
picker data add disabled option

BREAKING CHANGE: picker
Doc changes about picker data option
@TravisBuddy
Copy link

Travis tests have failed

Hey @hezhongfeng,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 6

View build log

npm test
> cube-ui@1.12.14 test /home/travis/build/didi/cube-ui
> npm run unit && npm run codecov


> cube-ui@1.12.14 unit /home/travis/build/didi/cube-ui
> cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run

(node:5362) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
08 04 2019 10:43:38.755:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
08 04 2019 10:43:38.757:INFO [launcher]: Launching browser PhantomJS_mobile with unlimited concurrency
08 04 2019 10:43:38.764:INFO [launcher]: Starting browser PhantomJS
08 04 2019 10:43:39.310:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket 9-YdOGXS682807FNAAAA with id 4749571
PhantomJS 2.1.1 (Linux 0.0.0) INFO LOG: 'You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html'

  ActionSheet
    ActionSheet.vue
      ✓ use
      ✓ should render correct contents
      ✓ should render correct contents - no data
      ✓ should render correct contents - picker style
      ✓ should trigger events
    ActionSheet API
      ✓ $createActionSheet API

  Button.vue
    ✓ use
    ✓ should render correct contents
    ✓ props
    ✓ events-called
    ✓ events-no-called

  CascadePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✗ should trigger events
	AssertionError: expected spy to have been called exactly once, but it was called 4 times
	    spy(0, 0) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(1, 0) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(2, 0) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(0, 0) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23 (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

    ✓ should call methods
    ✓ should support async cascade
    ✓ $updateProps
    ✓ should add warn log when single is true

  CheckboxGroup.vue
    ✓ use
    ✓ should render correct contents (horizontal=false)
    ✓ should render correct contents (horizontal=true)
    ✓ should change v-model value
    ✓ should work correctly - min & max

  Checkbox.vue
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  Checker.vue
    ✓ use
    ✓ should render radio contents
    ✓ should render radio contents
    ✓ should render checkbox contents

  DatePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when configured startColumn and columnCount
    ✓ should render correct contents when configured format
    ✓ should render correct contents when configured columnOrder
    ✗ should trigger events
	AssertionError: expected spy to have been called exactly once, but it was called 4 times
	    spy(0, 2) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(1, 9) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(2, 0) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(0, 2) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23 (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

    ✓ should call methods
    ✓ should add warn log when single is true
    ✓ $updateProps: {"value":"2012-10-01T00:00:00.000Z"}
    ✓ $updateProps: {"min":"2012-04-05T00:00:00.000Z"}
    ✓ $updateProps: {"min":"2010-04-05T00:00:00.000Z"}
    ✓ $updateProps: {"max":"2025-10-20T00:00:00.000Z"}

  Dialog
    Dialog.vue
      ✓ use
      ✓ should render correct contents - icon
      ✓ should render correct contents - title
      ✓ should render correct contents - alert
      ✓ should render correct contents - confirm
      ✓ should render correct contents - prompt
      ✓ should render correct contents - confirmBtn/cancelBtn
      ✓ should trigger events
      ✓ should not trigger events when btn is disabled
    Dialog API
      ✓ $createDialog API

  Drawer
    ✓ use
    ✓ should render correct contents
    ✓ should trigger events

  Form.vue
    ✓ use
    ✓ should render correct contents
    ✓ should validate & reset correctly
    ✓ should validate & reset correctly - async validate
    ✓ should validate correctly - trigger blur
    ✓ should validate correctly - debounce
    ✓ should trigger events

  ImagePreview
    ImagePreview.vue
      ✓ use
      ✓ should render correct contents
      ✓ should trigger events
      ✓ should work correctly when slide & zoom
    ImagePreview API
      ✓ $createImagePreview API

  IndexList
    IndexList.vue
      ✓ use
      ✓ should render correct contents
      ✓ should trigger events
WARN LOG: '[Cube tip]: <cube-index-list> The property "pull-up-load" is deprecated, please use the recommended property "options" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/index-list#cube-Propsconfiguration-anchor'
      ✓ should trigger pulling-up
WARN LOG: '[Cube tip]: <cube-index-list> The property "pull-down-refresh" is deprecated, please use the recommended property "options" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/index-list#cube-Propsconfiguration-anchor'
      ✓ should trigger pulling-down
      ✓ should fixed title
      ✓ should not have navbar when navbar prop is false
      ✓ run normal when group or item undefined
      ✓ should handle condition of unexpected param

  Input.vue
    ✓ use
    ✓ should render correct contents
    ✓ should not show clear button when no text
    ✓ should show clear button when has text
    ✓ value should be empty when clear button clicked
    ✓ should support more native props
    ✓ should show password eye and work correctly
    ✓ should show clearable icon and work correctly
    ✓ should trigger events

  Loading.vue
    ✓ use
    ✓ should render correct contents - no size
    ✓ should render correct contents - with size

  Locale
    ✓ use
    ✓ should support adding helper function
    ✓ should render correct zh-CN language by default and support changing language

  Picker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should toggle by change v-model visible
    ✓ should trigger events
    ✓ should refill correct
    ✓ should add warn log when single is true
    ✓ setData when picker is invisible
    ✓ setData when picker is visible

  Popup
    Popup.vue
      ✓ use
      ✓ should render correct contents - no type
      ✓ should render correct contents
      ✓ should toggle by change v-model visible
      ✓ events
    Popup API
      ✓ $createPopup API

  Radio.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - horizontal
    ✓ should toggle v-model value
    ✓ v-model should be a number value

  Rate.vue
    ✓ use
    ✓ should render correct contents
    ✓ should trigger change event
    ✓ should trigger change event with click

  RecycleList
    ✓ use
    ✓ requires onFetch function to return a Promise
    ✓ render correct count data
    ✓ should stop scroll
    ✓ should clean all contents
    ✓ should call correct method

  ScrollNavBar
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - vertical
    ✓ should trigger events

  ScrollNav
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - side
    ✓ should sticky & nav correctly
    ✓ should trigger events

  Scroll
    ✓ use
    ✓ should correct by default
    ✓ should render correct contents
    ✓ should trigger pullingDown
    ✓ should not trigger pullingDown
    ✓ should trigger pullingUp
    ✓ should not trigger pullingUp
    ✓ should trigger click
    ✓ should not trigger scroll events
    ✓ should trigger scroll events - with scroll-events
WARN LOG: '[Cube tip]: <cube-scroll> The property "listen-scroll" is deprecated, please use the recommended property "scroll-events" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/scroll#cube-Propsconfiguration-anchor'
WARN LOG: '[Cube tip]: <cube-scroll> The property "listen-before-scroll" is deprecated, please use the recommended property "scroll-events" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/scroll#cube-Propsconfiguration-anchor'
    ✓ should trigger scroll events - with listen-scroll
    ✓ should call correct method
    Nest Scrolls
      ✓ should render scrolls correct
      ✓ should disable outer scroll when touch the inner one and not reach boundary
      ✓ should disable inner scroll when touch the inner one and reach boundary

  SegmentPicker
    ✓ use
    ✓ should render correct contents
    ✓ should correct by default
    ✗ should trigger events
	AssertionError: expected spy to have been called exactly once, but it was called twice
	    spy(0, 0, 1) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(0, 0, 1) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23 (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

    ✓ $updateProps
    ✓ should add warn log when single is true

  Select.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - update txt
    ✓ should trigger events

  Slide.vue
    ✓ use
    ✓ should render correct contents
    ✓ should clone nodes if loop is true
    ✗ should trigger events
	AssertionError: expected spy to have been called exactly once, but it was called twice
	    spy(0) at invoker@webpack:///node_modules/vue/dist/vue.esm.js:2027:0 <- index.js:2496:23
	    spy(1) at invoker@webpack:///node_modules/vue/dist/vue.esm.js:2027:0 <- index.js:2496:23 (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

    ✗ should trigger scroll-end but without change
	AssertionError: expected spy to have been called exactly once, but it was called twice
	    spy(0) at invoker@webpack:///node_modules/vue/dist/vue.esm.js:2027:0 <- index.js:2496:23
	    spy(0) at invoker@webpack:///node_modules/vue/dist/vue.esm.js:2027:0 <- index.js:2496:23 (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

    ✓ should trigger scroll when changed
    ✓ should not trigger scroll when option.probeType !== 3
    ✓ should go to right pageIndex if set initialIndex
    ✓ should not reset current when set refreshResetCurrent=false
    ✓ should change vertical pageIndex when direction is vertical

  Sticky
    ✓ use
    ✓ should render correct contents
    ✓ should fixed ele
    ✓ should fixed ele - checkTop
    ✓ should trigger events

  Swipe
    ✓ use
    ✓ should render correct contents
    ✓ should shrink if the swipe width not enough
    ✓ should shrink if the last moving direction is right
    ✓ should shrink and not moved if the duration is more than momentumLimitTime and moving distance is less than momentumLimitDistance
    ✓ should shrink and not moved if y-axis distance is more than x-axis distance
    ✓ should grow if the swipe width enough
    ✓ should grow if the duration is less than momentumLimitTime and moving distance is more than momentumLimitDistance
    ✓ should not swipe out of the boundaries when swiping left
    ✓ should not swipe out of the boundaries when swiping right
    ✓ should trigger events
    ✓ should shrink if another swipe item active
    ✓ should do nothing if active the same swipe item
    ✓ should call refresh if the btns prop has changed
    ✓ should use default props if do not pass any prop

  Switch
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  TabBar
    ✓ use
    ✓ props
    ✓ should render correct content when pass data prop
    ✓ should toggle v-model value
    ✓ should trigger click and change event
    ✓ should remove child dom when child component destroyed

  Textarea.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - no indicator
    ✓ should not expand when blur
    ✓ should expand when focus, fold when blur
    ✓ should has remain when focus
    ✓ should change value
    ✓ should support more native props
    ✓ should expand when autoExpand

  TimePicker
    ✓ use
08 04 2019 10:44:51.612:WARN [PhantomJS 2.1.1 (Linux 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  Disconnected, because no message in 10000 ms.

PhantomJS 2.1.1 (Linux 0.0.0): Executed 205 of 292 (5 FAILED) DISCONNECTED (1 min 11.775 secs / NaN secs)


=============================== Coverage summary ===============================
Statements   : 100% ( 0/0 )
Branches     : 100% ( 0/0 )
Functions    : 100% ( 0/0 )
Lines        : 100% ( 0/0 )
================================================================================

npm ERR! Linux 4.4.0-101-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v6.17.1/bin/node" "/home/travis/.nvm/versions/node/v6.17.1/bin/npm" "run" "unit"
npm ERR! node v6.17.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! cube-ui@1.12.14 unit: `cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the cube-ui@1.12.14 unit script 'cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cube-ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs cube-ui
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls cube-ui
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/travis/build/didi/cube-ui/npm-debug.log
npm ERR! Test failed.  See above for more details.
TravisBuddy Request Identifier: 5c1027a0-59eb-11e9-90e1-bb5a2c9949be

@hezhongfeng
Copy link
Author

这个先不急,得先解决升级bs带来的问题,需要先在bs上提PR

when inner element can't scroll
@dolymood dolymood requested a review from tank0317 April 10, 2019 08:35
@TravisBuddy
Copy link

Travis tests have failed

Hey @hezhongfeng,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 6

View build log

npm test
> cube-ui@1.12.15 test /home/travis/build/didi/cube-ui
> npm run unit && npm run codecov


> cube-ui@1.12.15 unit /home/travis/build/didi/cube-ui
> cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run

(node:5337) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
12 04 2019 10:15:15.583:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
12 04 2019 10:15:15.585:INFO [launcher]: Launching browser PhantomJS_mobile with unlimited concurrency
12 04 2019 10:15:15.660:INFO [launcher]: Starting browser PhantomJS
12 04 2019 10:15:16.490:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket pOV_xzf_bSv7OHH9AAAA with id 74762608
PhantomJS 2.1.1 (Linux 0.0.0) INFO LOG: 'You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html'

  ActionSheet
    ActionSheet.vue
      ✓ use
      ✓ should render correct contents
      ✓ should render correct contents - no data
      ✓ should render correct contents - picker style
      ✓ should trigger events
    ActionSheet API
      ✓ $createActionSheet API

  Button.vue
    ✓ use
    ✓ should render correct contents
    ✓ props
    ✓ events-called
    ✓ events-no-called

  CascadePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✗ should trigger events
	AssertionError: expected spy to have been called exactly once, but it was called 4 times
	    spy(0, 0) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(1, 0) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(2, 0) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(0, 0) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23 (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

    ✓ should call methods
    ✓ should support async cascade
    ✓ $updateProps
    ✓ should add warn log when single is true

  CheckboxGroup.vue
    ✓ use
    ✓ should render correct contents (horizontal=false)
    ✓ should render correct contents (horizontal=true)
    ✓ should change v-model value
    ✓ should work correctly - min & max

  Checkbox.vue
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  Checker.vue
    ✓ use
    ✓ should render radio contents
    ✓ should render radio contents
    ✓ should render checkbox contents

  DatePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when configured startColumn and columnCount
    ✓ should render correct contents when configured format
    ✓ should render correct contents when configured columnOrder
    ✗ should trigger events
	AssertionError: expected spy to have been called exactly once, but it was called 4 times
	    spy(0, 2) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(1, 9) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(2, 0) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(0, 2) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23 (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

    ✓ should call methods
    ✓ should add warn log when single is true
    ✓ $updateProps: {"value":"2012-10-01T00:00:00.000Z"}
    ✓ $updateProps: {"min":"2012-04-05T00:00:00.000Z"}
    ✓ $updateProps: {"min":"2010-04-05T00:00:00.000Z"}
    ✓ $updateProps: {"max":"2025-10-20T00:00:00.000Z"}

  Dialog
    Dialog.vue
      ✓ use
      ✓ should render correct contents - icon
      ✓ should render correct contents - title
      ✓ should render correct contents - alert
      ✓ should render correct contents - confirm
      ✓ should render correct contents - prompt
      ✓ should render correct contents - confirmBtn/cancelBtn
      ✓ should trigger events
      ✓ should not trigger events when btn is disabled
    Dialog API
      ✓ $createDialog API

  Drawer
    ✓ use
    ✓ should render correct contents
    ✓ should trigger events

  Form.vue
    ✓ use
    ✓ should render correct contents
    ✓ should validate & reset correctly
    ✓ should validate & reset correctly - async validate
    ✓ should validate correctly - trigger blur
    ✓ should validate correctly - debounce
    ✓ should trigger events

  ImagePreview
    ImagePreview.vue
      ✓ use
      ✓ should render correct contents
      ✓ should trigger events
      ✓ should work correctly when slide & zoom
    ImagePreview API
      ✓ $createImagePreview API

  IndexList
    IndexList.vue
      ✓ use
      ✓ should render correct contents
      ✓ should trigger events
WARN LOG: '[Cube tip]: <cube-index-list> The property "pull-up-load" is deprecated, please use the recommended property "options" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/index-list#cube-Propsconfiguration-anchor'
      ✓ should trigger pulling-up
WARN LOG: '[Cube tip]: <cube-index-list> The property "pull-down-refresh" is deprecated, please use the recommended property "options" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/index-list#cube-Propsconfiguration-anchor'
      ✓ should trigger pulling-down
      ✓ should fixed title
      ✓ should not have navbar when navbar prop is false
      ✓ run normal when group or item undefined
      ✓ should handle condition of unexpected param

  Input.vue
    ✓ use
    ✓ should render correct contents
    ✓ should not show clear button when no text
    ✓ should show clear button when has text
    ✓ value should be empty when clear button clicked
    ✓ should support more native props
    ✓ should show password eye and work correctly
    ✓ should show clearable icon and work correctly
    ✓ should trigger events

  Loading.vue
    ✓ use
    ✓ should render correct contents - no size
    ✓ should render correct contents - with size

  Locale
    ✓ use
    ✓ should support adding helper function
    ✓ should render correct zh-CN language by default and support changing language

  Picker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should toggle by change v-model visible
    ✓ should trigger events
    ✓ should refill correct
    ✓ should add warn log when single is true
    ✓ setData when picker is invisible
    ✓ setData when picker is visible

  Popup
    Popup.vue
      ✓ use
      ✓ should render correct contents - no type
      ✓ should render correct contents
      ✓ should toggle by change v-model visible
      ✓ events
    Popup API
      ✓ $createPopup API

  Radio.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - horizontal
    ✓ should toggle v-model value
    ✓ v-model should be a number value

  Rate.vue
    ✓ use
    ✓ should render correct contents
    ✓ should trigger change event
    ✓ should trigger change event with click

  RecycleList
    ✓ use
    ✓ requires onFetch function to return a Promise
    ✓ render correct count data
    ✓ should stop scroll
    ✓ should clean all contents
    ✓ should call correct method

  ScrollNavBar
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - vertical
    ✓ should trigger events

  ScrollNav
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - side
    ✓ should sticky & nav correctly
    ✓ should trigger events

  Scroll
    ✓ use
    ✓ should correct by default
    ✓ should render correct contents
    ✓ should trigger pullingDown
    ✓ should not trigger pullingDown
    ✓ should trigger pullingUp
    ✓ should not trigger pullingUp
    ✓ should trigger click
    ✓ should not trigger scroll events
    ✓ should trigger scroll events - with scroll-events
WARN LOG: '[Cube tip]: <cube-scroll> The property "listen-scroll" is deprecated, please use the recommended property "scroll-events" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/scroll#cube-Propsconfiguration-anchor'
WARN LOG: '[Cube tip]: <cube-scroll> The property "listen-before-scroll" is deprecated, please use the recommended property "scroll-events" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/scroll#cube-Propsconfiguration-anchor'
    ✓ should trigger scroll events - with listen-scroll
    ✓ should call correct method
    Nest Scrolls
      ✓ should render scrolls correct
      ✓ should disable outer scroll when touch the inner one and not reach boundary
      ✓ should disable inner scroll when touch the inner one and reach boundary

  SegmentPicker
    ✓ use
    ✓ should render correct contents
    ✓ should correct by default
    ✗ should trigger events
	AssertionError: expected spy to have been called exactly once, but it was called twice
	    spy(0, 0, 1) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(0, 0, 1) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23 (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

    ✓ $updateProps
    ✓ should add warn log when single is true

  Select.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - update txt
    ✓ should trigger events

  Slide.vue
    ✓ use
    ✓ should render correct contents
    ✓ should clone nodes if loop is true
    ✗ should trigger events
	AssertionError: expected spy to have been called exactly once, but it was called twice
	    spy(0) at invoker@webpack:///node_modules/vue/dist/vue.esm.js:2027:0 <- index.js:2496:23
	    spy(1) at invoker@webpack:///node_modules/vue/dist/vue.esm.js:2027:0 <- index.js:2496:23 (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

    ✗ should trigger scroll-end but without change
	AssertionError: expected spy to have been called exactly once, but it was called twice
	    spy(0) at invoker@webpack:///node_modules/vue/dist/vue.esm.js:2027:0 <- index.js:2496:23
	    spy(0) at invoker@webpack:///node_modules/vue/dist/vue.esm.js:2027:0 <- index.js:2496:23 (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

    ✓ should trigger scroll when changed
    ✓ should not trigger scroll when option.probeType !== 3
    ✓ should go to right pageIndex if set initialIndex
    ✓ should not reset current when set refreshResetCurrent=false
    ✓ should change vertical pageIndex when direction is vertical

  Sticky
    ✓ use
    ✓ should render correct contents
    ✓ should fixed ele
    ✓ should fixed ele - checkTop
    ✓ should trigger events

  Swipe
    ✓ use
    ✓ should render correct contents
    ✓ should shrink if the swipe width not enough
    ✓ should shrink if the last moving direction is right
    ✓ should shrink and not moved if the duration is more than momentumLimitTime and moving distance is less than momentumLimitDistance
    ✓ should shrink and not moved if y-axis distance is more than x-axis distance
    ✓ should grow if the swipe width enough
    ✓ should grow if the duration is less than momentumLimitTime and moving distance is more than momentumLimitDistance
    ✓ should not swipe out of the boundaries when swiping left
    ✓ should not swipe out of the boundaries when swiping right
    ✓ should trigger events
    ✓ should shrink if another swipe item active
    ✓ should do nothing if active the same swipe item
    ✓ should call refresh if the btns prop has changed
    ✓ should use default props if do not pass any prop

  Switch
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  TabBar
    ✓ use
    ✓ props
    ✓ should render correct content when pass data prop
    ✓ should toggle v-model value
    ✓ should trigger click and change event
    ✓ should remove child dom when child component destroyed

  Textarea.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - no indicator
    ✓ should not expand when blur
    ✓ should expand when focus, fold when blur
    ✓ should has remain when focus
    ✓ should change value
    ✓ should support more native props
    ✓ should expand when autoExpand

  TimePicker
    ✓ use
12 04 2019 10:16:28.013:WARN [PhantomJS 2.1.1 (Linux 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  Disconnected, because no message in 10000 ms.

PhantomJS 2.1.1 (Linux 0.0.0): Executed 205 of 292 (5 FAILED) DISCONNECTED (1 min 11.011 secs / NaN secs)


=============================== Coverage summary ===============================
Statements   : 100% ( 0/0 )
Branches     : 100% ( 0/0 )
Functions    : 100% ( 0/0 )
Lines        : 100% ( 0/0 )
================================================================================

npm ERR! Linux 4.4.0-101-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v6.17.1/bin/node" "/home/travis/.nvm/versions/node/v6.17.1/bin/npm" "run" "unit"
npm ERR! node v6.17.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! cube-ui@1.12.15 unit: `cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the cube-ui@1.12.15 unit script 'cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cube-ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs cube-ui
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls cube-ui
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/travis/build/didi/cube-ui/npm-debug.log
npm ERR! Test failed.  See above for more details.
TravisBuddy Request Identifier: 0b34c830-5d0c-11e9-8db0-bbda51d68b34

@TravisBuddy
Copy link

Travis tests have failed

Hey @hezhongfeng,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 6

View build log

npm test
> cube-ui@1.12.15 test /home/travis/build/didi/cube-ui
> npm run unit && npm run codecov


> cube-ui@1.12.15 unit /home/travis/build/didi/cube-ui
> cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run

(node:5338) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
16 04 2019 08:39:31.780:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
16 04 2019 08:39:31.782:INFO [launcher]: Launching browser PhantomJS_mobile with unlimited concurrency
16 04 2019 08:39:31.835:INFO [launcher]: Starting browser PhantomJS
16 04 2019 08:39:32.601:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket lzzXUTaG3FkElMmGAAAA with id 17288583
PhantomJS 2.1.1 (Linux 0.0.0) INFO LOG: 'You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html'

  ActionSheet
    ActionSheet.vue
      ✓ use
      ✓ should render correct contents
      ✓ should render correct contents - no data
      ✓ should render correct contents - picker style
      ✓ should trigger events
    ActionSheet API
      ✓ $createActionSheet API

  Button.vue
    ✓ use
    ✓ should render correct contents
    ✓ props
    ✓ events-called
    ✓ events-no-called

  CascadePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should trigger events
    ✓ should call methods
    ✓ should support async cascade
    ✓ $updateProps
    ✓ should add warn log when single is true

  CheckboxGroup.vue
    ✓ use
    ✓ should render correct contents (horizontal=false)
    ✓ should render correct contents (horizontal=true)
    ✓ should change v-model value
    ✓ should work correctly - min & max

  Checkbox.vue
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  Checker.vue
    ✓ use
    ✓ should render radio contents
    ✓ should render radio contents
    ✓ should render checkbox contents

  DatePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when configured startColumn and columnCount
    ✓ should render correct contents when configured format
    ✓ should render correct contents when configured columnOrder
    ✓ should trigger events
    ✓ should call methods
    ✓ should add warn log when single is true
    ✓ $updateProps: {"value":"2012-10-01T00:00:00.000Z"}
    ✓ $updateProps: {"min":"2012-04-05T00:00:00.000Z"}
    ✓ $updateProps: {"min":"2010-04-05T00:00:00.000Z"}
    ✓ $updateProps: {"max":"2025-10-20T00:00:00.000Z"}

  Dialog
    Dialog.vue
      ✓ use
      ✓ should render correct contents - icon
      ✓ should render correct contents - title
      ✓ should render correct contents - alert
      ✓ should render correct contents - confirm
      ✓ should render correct contents - prompt
      ✓ should render correct contents - confirmBtn/cancelBtn
      ✓ should trigger events
      ✓ should not trigger events when btn is disabled
    Dialog API
      ✓ $createDialog API

  Drawer
    ✓ use
    ✓ should render correct contents
    ✓ should trigger events

  Form.vue
    ✓ use
    ✓ should render correct contents
    ✓ should validate & reset correctly
    ✓ should validate & reset correctly - async validate
    ✓ should validate correctly - trigger blur
    ✓ should validate correctly - debounce
    ✓ should trigger events

  ImagePreview
    ImagePreview.vue
      ✓ use
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
      ✓ should render correct contents
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
      ✓ should trigger events
LOG LOG: '_onScrollEnd'
      ✓ should work correctly when slide & zoom
LOG LOG: '_onScrollEnd'
    ImagePreview API
      ✓ $createImagePreview API

  IndexList
    IndexList.vue
      ✓ use
      ✓ should render correct contents
      ✓ should trigger events
WARN LOG: '[Cube tip]: <cube-index-list> The property "pull-up-load" is deprecated, please use the recommended property "options" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/index-list#cube-Propsconfiguration-anchor'
      ✓ should trigger pulling-up
WARN LOG: '[Cube tip]: <cube-index-list> The property "pull-down-refresh" is deprecated, please use the recommended property "options" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/index-list#cube-Propsconfiguration-anchor'
      ✓ should trigger pulling-down
      ✓ should fixed title
      ✓ should not have navbar when navbar prop is false
      ✓ run normal when group or item undefined
      ✓ should handle condition of unexpected param

  Input.vue
    ✓ use
    ✓ should render correct contents
    ✓ should not show clear button when no text
    ✓ should show clear button when has text
    ✓ value should be empty when clear button clicked
    ✓ should support more native props
    ✓ should show password eye and work correctly
    ✓ should show clearable icon and work correctly
    ✓ should trigger events

  Loading.vue
    ✓ use
    ✓ should render correct contents - no size
    ✓ should render correct contents - with size

  Locale
    ✓ use
    ✓ should support adding helper function
    ✓ should render correct zh-CN language by default and support changing language

  Picker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should toggle by change v-model visible
    ✓ should trigger events
    ✓ should refill correct
    ✓ should add warn log when single is true
    ✓ setData when picker is invisible
    ✓ setData when picker is visible

  Popup
    Popup.vue
      ✓ use
      ✓ should render correct contents - no type
      ✓ should render correct contents
      ✓ should toggle by change v-model visible
      ✓ events
    Popup API
      ✓ $createPopup API

  Radio.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - horizontal
    ✓ should toggle v-model value
    ✓ v-model should be a number value

  Rate.vue
    ✓ use
    ✓ should render correct contents
    ✓ should trigger change event
    ✓ should trigger change event with click

  RecycleList
    ✓ use
    ✓ requires onFetch function to return a Promise
    ✓ render correct count data
    ✓ should stop scroll
    ✓ should clean all contents
    ✓ should call correct method

  ScrollNavBar
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - vertical
    ✓ should trigger events

  ScrollNav
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - side
    ✓ should sticky & nav correctly
    ✓ should trigger events

  Scroll
    ✓ use
    ✓ should correct by default
    ✓ should render correct contents
    ✓ should trigger pullingDown
    ✓ should not trigger pullingDown
    ✓ should trigger pullingUp
    ✓ should not trigger pullingUp
    ✓ should trigger click
    ✓ should not trigger scroll events
    ✓ should trigger scroll events - with scroll-events
WARN LOG: '[Cube tip]: <cube-scroll> The property "listen-scroll" is deprecated, please use the recommended property "scroll-events" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/scroll#cube-Propsconfiguration-anchor'
WARN LOG: '[Cube tip]: <cube-scroll> The property "listen-before-scroll" is deprecated, please use the recommended property "scroll-events" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/scroll#cube-Propsconfiguration-anchor'
    ✓ should trigger scroll events - with listen-scroll
    ✓ should call correct method
    Nest Scrolls
      ✓ should render scrolls correct
      ✓ should disable outer scroll when touch the inner one and not reach boundary
      ✓ should disable inner scroll when touch the inner one and reach boundary

  SegmentPicker
    ✓ use
    ✓ should render correct contents
    ✓ should correct by default
    ✓ should trigger events
    ✓ $updateProps
    ✓ should add warn log when single is true

  Select.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - update txt
    ✓ should trigger events

  Slide.vue
    ✓ use
    ✓ should render correct contents
    ✓ should clone nodes if loop is true
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
    ✓ should trigger events
LOG LOG: '_onScrollEnd'
    ✓ should trigger scroll-end but without change
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
    ✓ should trigger scroll when changed
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
    ✓ should not trigger scroll when option.probeType !== 3
LOG LOG: '_onScrollEnd'
    ✓ should go to right pageIndex if set initialIndex
    ✓ should not reset current when set refreshResetCurrent=false
LOG LOG: '_onScrollEnd'
    ✓ should change vertical pageIndex when direction is vertical

  Sticky
    ✓ use
    ✓ should render correct contents
    ✓ should fixed ele
    ✓ should fixed ele - checkTop
    ✓ should trigger events

  Swipe
    ✓ use
    ✓ should render correct contents
    ✓ should shrink if the swipe width not enough
    ✓ should shrink if the last moving direction is right
    ✓ should shrink and not moved if the duration is more than momentumLimitTime and moving distance is less than momentumLimitDistance
    ✓ should shrink and not moved if y-axis distance is more than x-axis distance
    ✓ should grow if the swipe width enough
    ✓ should grow if the duration is less than momentumLimitTime and moving distance is more than momentumLimitDistance
    ✓ should not swipe out of the boundaries when swiping left
    ✓ should not swipe out of the boundaries when swiping right
    ✓ should trigger events
    ✓ should shrink if another swipe item active
    ✓ should do nothing if active the same swipe item
    ✓ should call refresh if the btns prop has changed
    ✓ should use default props if do not pass any prop

  Switch
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  TabBar
    ✓ use
    ✓ props
    ✓ should render correct content when pass data prop
    ✓ should toggle v-model value
    ✓ should trigger click and change event
    ✓ should remove child dom when child component destroyed

  Textarea.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - no indicator
    ✓ should not expand when blur
    ✓ should expand when focus, fold when blur
    ✓ should has remain when focus
    ✓ should change value
    ✓ should support more native props
    ✓ should expand when autoExpand

  TimePicker
    ✓ use
16 04 2019 08:40:44.952:WARN [PhantomJS 2.1.1 (Linux 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  Disconnected, because no message in 10000 ms.

PhantomJS 2.1.1 (Linux 0.0.0): Executed 205 of 292 DISCONNECTED (1 min 11.838 secs / 1 min 1.223 secs)


=============================== Coverage summary ===============================
Statements   : 100% ( 0/0 )
Branches     : 100% ( 0/0 )
Functions    : 100% ( 0/0 )
Lines        : 100% ( 0/0 )
================================================================================

npm ERR! Linux 4.4.0-101-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v6.17.1/bin/node" "/home/travis/.nvm/versions/node/v6.17.1/bin/npm" "run" "unit"
npm ERR! node v6.17.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! cube-ui@1.12.15 unit: `cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the cube-ui@1.12.15 unit script 'cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cube-ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs cube-ui
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls cube-ui
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/travis/build/didi/cube-ui/npm-debug.log
npm ERR! Test failed.  See above for more details.
TravisBuddy Request Identifier: 59756b20-6023-11e9-b35f-176b031e922f

@TravisBuddy
Copy link

Travis tests have failed

Hey @hezhongfeng,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 6

View build log

npm test
> cube-ui@1.12.15 test /home/travis/build/didi/cube-ui
> npm run unit && npm run codecov


> cube-ui@1.12.15 unit /home/travis/build/didi/cube-ui
> cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run

(node:5383) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
16 04 2019 11:22:26.324:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
16 04 2019 11:22:26.326:INFO [launcher]: Launching browser PhantomJS_mobile with unlimited concurrency
16 04 2019 11:22:26.333:INFO [launcher]: Starting browser PhantomJS
16 04 2019 11:22:27.222:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket IsXHqvh_3MOQXTxdAAAA with id 23675752
PhantomJS 2.1.1 (Linux 0.0.0) INFO LOG: 'You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html'

  ActionSheet
    ActionSheet.vue
      ✓ use
      ✓ should render correct contents
      ✓ should render correct contents - no data
      ✓ should render correct contents - picker style
      ✓ should trigger events
    ActionSheet API
      ✓ $createActionSheet API

  Button.vue
    ✓ use
    ✓ should render correct contents
    ✓ props
    ✓ events-called
    ✓ events-no-called

  CascadePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should trigger events
    ✓ should call methods
    ✓ should support async cascade
    ✓ $updateProps
    ✓ should add warn log when single is true

  CheckboxGroup.vue
    ✓ use
    ✓ should render correct contents (horizontal=false)
    ✓ should render correct contents (horizontal=true)
    ✓ should change v-model value
    ✓ should work correctly - min & max

  Checkbox.vue
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  Checker.vue
    ✓ use
    ✓ should render radio contents
    ✓ should render radio contents
    ✓ should render checkbox contents

  DatePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when configured startColumn and columnCount
    ✓ should render correct contents when configured format
    ✓ should render correct contents when configured columnOrder
    ✓ should trigger events
    ✓ should call methods
    ✓ should add warn log when single is true
    ✓ $updateProps: {"value":"2012-10-01T00:00:00.000Z"}
    ✓ $updateProps: {"min":"2012-04-05T00:00:00.000Z"}
    ✓ $updateProps: {"min":"2010-04-05T00:00:00.000Z"}
    ✓ $updateProps: {"max":"2025-10-20T00:00:00.000Z"}

  Dialog
    Dialog.vue
      ✓ use
      ✓ should render correct contents - icon
      ✓ should render correct contents - title
      ✓ should render correct contents - alert
      ✓ should render correct contents - confirm
      ✓ should render correct contents - prompt
      ✓ should render correct contents - confirmBtn/cancelBtn
      ✓ should trigger events
      ✓ should not trigger events when btn is disabled
    Dialog API
      ✓ $createDialog API

  Drawer
    ✓ use
    ✓ should render correct contents
    ✓ should trigger events

  Form.vue
    ✓ use
    ✓ should render correct contents
    ✓ should validate & reset correctly
    ✓ should validate & reset correctly - async validate
    ✓ should validate correctly - trigger blur
    ✓ should validate correctly - debounce
    ✓ should trigger events

  ImagePreview
    ImagePreview.vue
      ✓ use
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
      ✓ should render correct contents
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
      ✓ should trigger events
LOG LOG: '_onScrollEnd'
      ✓ should work correctly when slide & zoom
LOG LOG: '_onScrollEnd'
    ImagePreview API
      ✓ $createImagePreview API

  IndexList
    IndexList.vue
      ✓ use
      ✓ should render correct contents
      ✓ should trigger events
WARN LOG: '[Cube tip]: <cube-index-list> The property "pull-up-load" is deprecated, please use the recommended property "options" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/index-list#cube-Propsconfiguration-anchor'
      ✓ should trigger pulling-up
WARN LOG: '[Cube tip]: <cube-index-list> The property "pull-down-refresh" is deprecated, please use the recommended property "options" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/index-list#cube-Propsconfiguration-anchor'
      ✓ should trigger pulling-down
      ✓ should fixed title
      ✓ should not have navbar when navbar prop is false
      ✓ run normal when group or item undefined
      ✓ should handle condition of unexpected param

  Input.vue
    ✓ use
    ✓ should render correct contents
    ✓ should not show clear button when no text
    ✓ should show clear button when has text
    ✓ value should be empty when clear button clicked
    ✓ should support more native props
    ✓ should show password eye and work correctly
    ✓ should show clearable icon and work correctly
    ✓ should trigger events

  Loading.vue
    ✓ use
    ✓ should render correct contents - no size
    ✓ should render correct contents - with size

  Locale
    ✓ use
    ✓ should support adding helper function
    ✓ should render correct zh-CN language by default and support changing language

  Picker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should toggle by change v-model visible
    ✓ should trigger events
    ✓ should refill correct
    ✓ should add warn log when single is true
    ✓ setData when picker is invisible
    ✓ setData when picker is visible

  Popup
    Popup.vue
      ✓ use
      ✓ should render correct contents - no type
      ✓ should render correct contents
      ✓ should toggle by change v-model visible
      ✓ events
    Popup API
      ✓ $createPopup API

  Radio.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - horizontal
    ✓ should toggle v-model value
    ✓ v-model should be a number value

  Rate.vue
    ✓ use
    ✓ should render correct contents
    ✓ should trigger change event
    ✓ should trigger change event with click

  RecycleList
    ✓ use
    ✓ requires onFetch function to return a Promise
    ✓ render correct count data
    ✓ should stop scroll
    ✓ should clean all contents
    ✓ should call correct method

  ScrollNavBar
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - vertical
    ✓ should trigger events

  ScrollNav
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - side
    ✓ should sticky & nav correctly
    ✓ should trigger events

  Scroll
    ✓ use
    ✓ should correct by default
    ✓ should render correct contents
    ✓ should trigger pullingDown
    ✓ should not trigger pullingDown
    ✓ should trigger pullingUp
    ✓ should not trigger pullingUp
    ✓ should trigger click
    ✓ should not trigger scroll events
    ✓ should trigger scroll events - with scroll-events
WARN LOG: '[Cube tip]: <cube-scroll> The property "listen-scroll" is deprecated, please use the recommended property "scroll-events" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/scroll#cube-Propsconfiguration-anchor'
WARN LOG: '[Cube tip]: <cube-scroll> The property "listen-before-scroll" is deprecated, please use the recommended property "scroll-events" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/scroll#cube-Propsconfiguration-anchor'
    ✓ should trigger scroll events - with listen-scroll
    ✓ should call correct method
    Nest Scrolls
      ✓ should render scrolls correct
      ✓ should disable outer scroll when touch the inner one and not reach boundary
      ✓ should disable inner scroll when touch the inner one and reach boundary

  SegmentPicker
    ✓ use
    ✓ should render correct contents
    ✓ should correct by default
    ✓ should trigger events
    ✓ $updateProps
    ✓ should add warn log when single is true

  Select.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - update txt
    ✓ should trigger events

  Slide.vue
    ✓ use
    ✓ should render correct contents
    ✓ should clone nodes if loop is true
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
    ✓ should trigger events
LOG LOG: '_onScrollEnd'
    ✓ should trigger scroll-end but without change
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
    ✓ should trigger scroll when changed
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
    ✓ should not trigger scroll when option.probeType !== 3
LOG LOG: '_onScrollEnd'
    ✓ should go to right pageIndex if set initialIndex
    ✓ should not reset current when set refreshResetCurrent=false
LOG LOG: '_onScrollEnd'
    ✓ should change vertical pageIndex when direction is vertical

  Sticky
    ✓ use
    ✓ should render correct contents
    ✓ should fixed ele
    ✓ should fixed ele - checkTop
    ✓ should trigger events

  Swipe
    ✓ use
    ✓ should render correct contents
    ✓ should shrink if the swipe width not enough
    ✓ should shrink if the last moving direction is right
    ✓ should shrink and not moved if the duration is more than momentumLimitTime and moving distance is less than momentumLimitDistance
    ✓ should shrink and not moved if y-axis distance is more than x-axis distance
    ✓ should grow if the swipe width enough
    ✓ should grow if the duration is less than momentumLimitTime and moving distance is more than momentumLimitDistance
    ✓ should not swipe out of the boundaries when swiping left
    ✓ should not swipe out of the boundaries when swiping right
    ✓ should trigger events
    ✓ should shrink if another swipe item active
    ✓ should do nothing if active the same swipe item
    ✓ should call refresh if the btns prop has changed
    ✓ should use default props if do not pass any prop

  Switch
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  TabBar
    ✓ use
    ✓ props
    ✓ should render correct content when pass data prop
    ✓ should toggle v-model value
    ✓ should trigger click and change event
    ✓ should remove child dom when child component destroyed

  Textarea.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - no indicator
    ✓ should not expand when blur
    ✓ should expand when focus, fold when blur
    ✓ should has remain when focus
    ✓ should change value
    ✓ should support more native props
    ✓ should expand when autoExpand

  TimePicker
    ✓ use
16 04 2019 11:23:39.530:WARN [PhantomJS 2.1.1 (Linux 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  Disconnected, because no message in 10000 ms.

PhantomJS 2.1.1 (Linux 0.0.0): Executed 205 of 292 DISCONNECTED (1 min 11.753 secs / 1 min 1.304 secs)


=============================== Coverage summary ===============================
Statements   : 100% ( 0/0 )
Branches     : 100% ( 0/0 )
Functions    : 100% ( 0/0 )
Lines        : 100% ( 0/0 )
================================================================================

npm ERR! Linux 4.4.0-101-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v6.17.1/bin/node" "/home/travis/.nvm/versions/node/v6.17.1/bin/npm" "run" "unit"
npm ERR! node v6.17.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! cube-ui@1.12.15 unit: `cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the cube-ui@1.12.15 unit script 'cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cube-ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs cube-ui
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls cube-ui
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/travis/build/didi/cube-ui/npm-debug.log
npm ERR! Test failed.  See above for more details.
TravisBuddy Request Identifier: 17df7180-603a-11e9-b35f-176b031e922f

@TravisBuddy
Copy link

Travis tests have failed

Hey @hezhongfeng,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 6

View build log

npm test
> cube-ui@1.12.15 test /home/travis/build/didi/cube-ui
> npm run unit && npm run codecov


> cube-ui@1.12.15 unit /home/travis/build/didi/cube-ui
> cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run

(node:5334) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
17 04 2019 03:49:11.570:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
17 04 2019 03:49:11.572:INFO [launcher]: Launching browser PhantomJS_mobile with unlimited concurrency
17 04 2019 03:49:11.631:INFO [launcher]: Starting browser PhantomJS
17 04 2019 03:49:12.562:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket _TNm0HIMYnr6UABgAAAA with id 27098173
PhantomJS 2.1.1 (Linux 0.0.0) INFO LOG: 'You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html'

  ActionSheet
    ActionSheet.vue
      ✓ use
      ✓ should render correct contents
      ✓ should render correct contents - no data
      ✓ should render correct contents - picker style
      ✓ should trigger events
    ActionSheet API
      ✓ $createActionSheet API

  Button.vue
    ✓ use
    ✓ should render correct contents
    ✓ props
    ✓ events-called
    ✓ events-no-called

  CascadePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should trigger events
    ✓ should call methods
    ✓ should support async cascade
    ✓ $updateProps
    ✓ should add warn log when single is true

  CheckboxGroup.vue
    ✓ use
    ✓ should render correct contents (horizontal=false)
    ✓ should render correct contents (horizontal=true)
    ✓ should change v-model value
    ✓ should work correctly - min & max

  Checkbox.vue
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  Checker.vue
    ✓ use
    ✓ should render radio contents
    ✓ should render radio contents
    ✓ should render checkbox contents

  DatePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when configured startColumn and columnCount
    ✓ should render correct contents when configured format
    ✓ should render correct contents when configured columnOrder
    ✓ should trigger events
    ✓ should call methods
    ✓ should add warn log when single is true
    ✓ $updateProps: {"value":"2012-10-01T00:00:00.000Z"}
    ✓ $updateProps: {"min":"2012-04-05T00:00:00.000Z"}
    ✓ $updateProps: {"min":"2010-04-05T00:00:00.000Z"}
    ✓ $updateProps: {"max":"2025-10-20T00:00:00.000Z"}

  Dialog
    Dialog.vue
      ✓ use
      ✓ should render correct contents - icon
      ✓ should render correct contents - title
      ✓ should render correct contents - alert
      ✓ should render correct contents - confirm
      ✓ should render correct contents - prompt
      ✓ should render correct contents - confirmBtn/cancelBtn
      ✓ should trigger events
      ✓ should not trigger events when btn is disabled
    Dialog API
      ✓ $createDialog API

  Drawer
    ✓ use
    ✓ should render correct contents
    ✓ should trigger events

  Form.vue
    ✓ use
    ✓ should render correct contents
    ✓ should validate & reset correctly
    ✓ should validate & reset correctly - async validate
    ✓ should validate correctly - trigger blur
    ✓ should validate correctly - debounce
    ✓ should trigger events

  ImagePreview
    ImagePreview.vue
      ✓ use
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
      ✓ should render correct contents
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
      ✓ should trigger events
LOG LOG: '_onScrollEnd'
      ✓ should work correctly when slide & zoom
LOG LOG: '_onScrollEnd'
    ImagePreview API
      ✓ $createImagePreview API

  IndexList
    IndexList.vue
      ✓ use
      ✓ should render correct contents
      ✓ should trigger events
WARN LOG: '[Cube tip]: <cube-index-list> The property "pull-up-load" is deprecated, please use the recommended property "options" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/index-list#cube-Propsconfiguration-anchor'
      ✓ should trigger pulling-up
WARN LOG: '[Cube tip]: <cube-index-list> The property "pull-down-refresh" is deprecated, please use the recommended property "options" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/index-list#cube-Propsconfiguration-anchor'
      ✓ should trigger pulling-down
      ✓ should fixed title
      ✓ should not have navbar when navbar prop is false
      ✓ run normal when group or item undefined
      ✓ should handle condition of unexpected param

  Input.vue
    ✓ use
    ✓ should render correct contents
    ✓ should not show clear button when no text
    ✓ should show clear button when has text
    ✓ value should be empty when clear button clicked
    ✓ should support more native props
    ✓ should show password eye and work correctly
    ✓ should show clearable icon and work correctly
    ✓ should trigger events

  Loading.vue
    ✓ use
    ✓ should render correct contents - no size
    ✓ should render correct contents - with size

  Locale
    ✓ use
    ✓ should support adding helper function
    ✓ should render correct zh-CN language by default and support changing language

  Picker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should toggle by change v-model visible
    ✓ should trigger events
    ✓ should refill correct
    ✓ should add warn log when single is true
    ✓ setData when picker is invisible
    ✓ setData when picker is visible

  Popup
    Popup.vue
      ✓ use
      ✓ should render correct contents - no type
      ✓ should render correct contents
      ✓ should toggle by change v-model visible
      ✓ events
    Popup API
      ✓ $createPopup API

  Radio.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - horizontal
    ✓ should toggle v-model value
    ✓ v-model should be a number value

  Rate.vue
    ✓ use
    ✓ should render correct contents
    ✓ should trigger change event
    ✓ should trigger change event with click

  RecycleList
    ✓ use
    ✓ requires onFetch function to return a Promise
    ✓ render correct count data
    ✓ should stop scroll
    ✓ should clean all contents
    ✓ should call correct method

  ScrollNavBar
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - vertical
    ✓ should trigger events

  ScrollNav
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - side
    ✓ should sticky & nav correctly
    ✓ should trigger events

  Scroll
    ✓ use
    ✓ should correct by default
    ✓ should render correct contents
    ✓ should trigger pullingDown
    ✓ should not trigger pullingDown
    ✓ should trigger pullingUp
    ✓ should not trigger pullingUp
    ✓ should trigger click
    ✓ should not trigger scroll events
    ✓ should trigger scroll events - with scroll-events
WARN LOG: '[Cube tip]: <cube-scroll> The property "listen-scroll" is deprecated, please use the recommended property "scroll-events" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/scroll#cube-Propsconfiguration-anchor'
WARN LOG: '[Cube tip]: <cube-scroll> The property "listen-before-scroll" is deprecated, please use the recommended property "scroll-events" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/scroll#cube-Propsconfiguration-anchor'
    ✓ should trigger scroll events - with listen-scroll
    ✓ should call correct method
    Nest Scrolls
      ✓ should render scrolls correct
      ✓ should disable outer scroll when touch the inner one and not reach boundary
      ✓ should disable inner scroll when touch the inner one and reach boundary

  SegmentPicker
    ✓ use
    ✓ should render correct contents
    ✓ should correct by default
    ✓ should trigger events
    ✓ $updateProps
    ✓ should add warn log when single is true

  Select.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - update txt
    ✓ should trigger events

  Slide.vue
    ✓ use
    ✓ should render correct contents
    ✓ should clone nodes if loop is true
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
    ✓ should trigger events
LOG LOG: '_onScrollEnd'
    ✓ should trigger scroll-end but without change
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
    ✓ should trigger scroll when changed
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
LOG LOG: '_onScrollEnd'
    ✓ should not trigger scroll when option.probeType !== 3
LOG LOG: '_onScrollEnd'
    ✓ should go to right pageIndex if set initialIndex
    ✓ should not reset current when set refreshResetCurrent=false
LOG LOG: '_onScrollEnd'
    ✓ should change vertical pageIndex when direction is vertical

  Sticky
    ✓ use
    ✓ should render correct contents
    ✓ should fixed ele
    ✓ should fixed ele - checkTop
    ✓ should trigger events

  Swipe
    ✓ use
    ✓ should render correct contents
    ✓ should shrink if the swipe width not enough
    ✓ should shrink if the last moving direction is right
    ✓ should shrink and not moved if the duration is more than momentumLimitTime and moving distance is less than momentumLimitDistance
    ✓ should shrink and not moved if y-axis distance is more than x-axis distance
    ✓ should grow if the swipe width enough
    ✓ should grow if the duration is less than momentumLimitTime and moving distance is more than momentumLimitDistance
    ✓ should not swipe out of the boundaries when swiping left
    ✓ should not swipe out of the boundaries when swiping right
    ✓ should trigger events
    ✓ should shrink if another swipe item active
    ✓ should do nothing if active the same swipe item
    ✓ should call refresh if the btns prop has changed
    ✓ should use default props if do not pass any prop

  Switch
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  TabBar
    ✓ use
    ✓ props
    ✓ should render correct content when pass data prop
    ✓ should toggle v-model value
    ✓ should trigger click and change event
    ✓ should remove child dom when child component destroyed

  Textarea.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - no indicator
    ✓ should not expand when blur
    ✓ should expand when focus, fold when blur
    ✓ should has remain when focus
    ✓ should change value
    ✓ should support more native props
    ✓ should expand when autoExpand

  TimePicker
    ✓ use
17 04 2019 03:50:25.404:WARN [PhantomJS 2.1.1 (Linux 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  Disconnected, because no message in 10000 ms.

PhantomJS 2.1.1 (Linux 0.0.0): Executed 205 of 292 DISCONNECTED (1 min 12.262 secs / 1 min 1.716 secs)


=============================== Coverage summary ===============================
Statements   : 100% ( 0/0 )
Branches     : 100% ( 0/0 )
Functions    : 100% ( 0/0 )
Lines        : 100% ( 0/0 )
================================================================================

npm ERR! Linux 4.4.0-101-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v6.17.1/bin/node" "/home/travis/.nvm/versions/node/v6.17.1/bin/npm" "run" "unit"
npm ERR! node v6.17.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! cube-ui@1.12.15 unit: `cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the cube-ui@1.12.15 unit script 'cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cube-ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs cube-ui
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls cube-ui
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/travis/build/didi/cube-ui/npm-debug.log
npm ERR! Test failed.  See above for more details.
TravisBuddy Request Identifier: f5193570-60c3-11e9-872d-3ffbb4cd282a

@TravisBuddy
Copy link

Travis tests have failed

Hey @hezhongfeng,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 6

View build log

npm test
> cube-ui@1.12.15 test /home/travis/build/didi/cube-ui
> npm run unit && npm run codecov


> cube-ui@1.12.15 unit /home/travis/build/didi/cube-ui
> cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run

(node:5319) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
17 04 2019 03:51:20.311:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
17 04 2019 03:51:20.313:INFO [launcher]: Launching browser PhantomJS_mobile with unlimited concurrency
17 04 2019 03:51:20.319:INFO [launcher]: Starting browser PhantomJS
17 04 2019 03:51:21.275:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket kHdmQXBnbTDlNjfXAAAA with id 40158301
PhantomJS 2.1.1 (Linux 0.0.0) INFO LOG: 'You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html'

  ActionSheet
    ActionSheet.vue
      ✓ use
      ✓ should render correct contents
      ✓ should render correct contents - no data
      ✓ should render correct contents - picker style
      ✓ should trigger events
    ActionSheet API
      ✓ $createActionSheet API

  Button.vue
    ✓ use
    ✓ should render correct contents
    ✓ props
    ✓ events-called
    ✓ events-no-called

  CascadePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should trigger events
    ✓ should call methods
    ✓ should support async cascade
    ✓ $updateProps
    ✓ should add warn log when single is true

  CheckboxGroup.vue
    ✓ use
    ✓ should render correct contents (horizontal=false)
    ✓ should render correct contents (horizontal=true)
    ✓ should change v-model value
    ✓ should work correctly - min & max

  Checkbox.vue
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  Checker.vue
    ✓ use
    ✓ should render radio contents
    ✓ should render radio contents
    ✓ should render checkbox contents

  DatePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when configured startColumn and columnCount
    ✓ should render correct contents when configured format
    ✓ should render correct contents when configured columnOrder
    ✓ should trigger events
    ✓ should call methods
    ✓ should add warn log when single is true
    ✓ $updateProps: {"value":"2012-10-01T00:00:00.000Z"}
    ✓ $updateProps: {"min":"2012-04-05T00:00:00.000Z"}
    ✓ $updateProps: {"min":"2010-04-05T00:00:00.000Z"}
    ✓ $updateProps: {"max":"2025-10-20T00:00:00.000Z"}

  Dialog
    Dialog.vue
      ✓ use
      ✓ should render correct contents - icon
      ✓ should render correct contents - title
      ✓ should render correct contents - alert
      ✓ should render correct contents - confirm
      ✓ should render correct contents - prompt
      ✓ should render correct contents - confirmBtn/cancelBtn
      ✓ should trigger events
      ✓ should not trigger events when btn is disabled
    Dialog API
      ✓ $createDialog API

  Drawer
    ✓ use
    ✓ should render correct contents
    ✓ should trigger events

  Form.vue
    ✓ use
    ✓ should render correct contents
    ✓ should validate & reset correctly
    ✓ should validate & reset correctly - async validate
    ✓ should validate correctly - trigger blur
    ✓ should validate correctly - debounce
    ✓ should trigger events

  ImagePreview
    ImagePreview.vue
      ✓ use
      ✓ should render correct contents
      ✓ should trigger events
      ✓ should work correctly when slide & zoom
    ImagePreview API
      ✓ $createImagePreview API

  IndexList
    IndexList.vue
      ✓ use
      ✓ should render correct contents
      ✓ should trigger events
WARN LOG: '[Cube tip]: <cube-index-list> The property "pull-up-load" is deprecated, please use the recommended property "options" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/index-list#cube-Propsconfiguration-anchor'
      ✓ should trigger pulling-up
WARN LOG: '[Cube tip]: <cube-index-list> The property "pull-down-refresh" is deprecated, please use the recommended property "options" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/index-list#cube-Propsconfiguration-anchor'
      ✓ should trigger pulling-down
      ✓ should fixed title
      ✓ should not have navbar when navbar prop is false
      ✓ run normal when group or item undefined
      ✓ should handle condition of unexpected param

  Input.vue
    ✓ use
    ✓ should render correct contents
    ✓ should not show clear button when no text
    ✓ should show clear button when has text
    ✓ value should be empty when clear button clicked
    ✓ should support more native props
    ✓ should show password eye and work correctly
    ✓ should show clearable icon and work correctly
    ✓ should trigger events

  Loading.vue
    ✓ use
    ✓ should render correct contents - no size
    ✓ should render correct contents - with size

  Locale
    ✓ use
    ✓ should support adding helper function
    ✓ should render correct zh-CN language by default and support changing language

  Picker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should toggle by change v-model visible
    ✓ should trigger events
    ✓ should refill correct
    ✓ should add warn log when single is true
    ✓ setData when picker is invisible
    ✓ setData when picker is visible

  Popup
    Popup.vue
      ✓ use
      ✓ should render correct contents - no type
      ✓ should render correct contents
      ✓ should toggle by change v-model visible
      ✓ events
    Popup API
      ✓ $createPopup API

  Radio.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - horizontal
    ✓ should toggle v-model value
    ✓ v-model should be a number value

  Rate.vue
    ✓ use
    ✓ should render correct contents
    ✓ should trigger change event
    ✓ should trigger change event with click

  RecycleList
    ✓ use
    ✓ requires onFetch function to return a Promise
    ✓ render correct count data
    ✓ should stop scroll
    ✓ should clean all contents
    ✓ should call correct method

  ScrollNavBar
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - vertical
    ✓ should trigger events

  ScrollNav
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - side
    ✓ should sticky & nav correctly
    ✓ should trigger events

  Scroll
    ✓ use
    ✓ should correct by default
    ✓ should render correct contents
    ✓ should trigger pullingDown
    ✓ should not trigger pullingDown
    ✓ should trigger pullingUp
    ✓ should not trigger pullingUp
    ✓ should trigger click
    ✓ should not trigger scroll events
    ✓ should trigger scroll events - with scroll-events
WARN LOG: '[Cube tip]: <cube-scroll> The property "listen-scroll" is deprecated, please use the recommended property "scroll-events" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/scroll#cube-Propsconfiguration-anchor'
WARN LOG: '[Cube tip]: <cube-scroll> The property "listen-before-scroll" is deprecated, please use the recommended property "scroll-events" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/scroll#cube-Propsconfiguration-anchor'
    ✓ should trigger scroll events - with listen-scroll
    ✓ should call correct method
    Nest Scrolls
      ✓ should render scrolls correct
      ✓ should disable outer scroll when touch the inner one and not reach boundary
      ✓ should disable inner scroll when touch the inner one and reach boundary

  SegmentPicker
    ✓ use
    ✓ should render correct contents
    ✓ should correct by default
    ✓ should trigger events
    ✓ $updateProps
    ✓ should add warn log when single is true

  Select.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - update txt
    ✓ should trigger events

  Slide.vue
    ✓ use
    ✓ should render correct contents
    ✓ should clone nodes if loop is true
    ✓ should trigger events
    ✓ should trigger scroll-end but without change
    ✓ should trigger scroll when changed
    ✓ should not trigger scroll when option.probeType !== 3
    ✓ should go to right pageIndex if set initialIndex
    ✓ should not reset current when set refreshResetCurrent=false
    ✓ should change vertical pageIndex when direction is vertical

  Sticky
    ✓ use
    ✓ should render correct contents
    ✓ should fixed ele
    ✓ should fixed ele - checkTop
    ✓ should trigger events

  Swipe
    ✓ use
    ✓ should render correct contents
    ✓ should shrink if the swipe width not enough
    ✓ should shrink if the last moving direction is right
    ✓ should shrink and not moved if the duration is more than momentumLimitTime and moving distance is less than momentumLimitDistance
    ✓ should shrink and not moved if y-axis distance is more than x-axis distance
    ✓ should grow if the swipe width enough
    ✓ should grow if the duration is less than momentumLimitTime and moving distance is more than momentumLimitDistance
    ✓ should not swipe out of the boundaries when swiping left
    ✓ should not swipe out of the boundaries when swiping right
    ✓ should trigger events
    ✓ should shrink if another swipe item active
    ✓ should do nothing if active the same swipe item
    ✓ should call refresh if the btns prop has changed
    ✓ should use default props if do not pass any prop

  Switch
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  TabBar
    ✓ use
    ✓ props
    ✓ should render correct content when pass data prop
    ✓ should toggle v-model value
    ✓ should trigger click and change event
    ✓ should remove child dom when child component destroyed

  Textarea.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - no indicator
    ✓ should not expand when blur
    ✓ should expand when focus, fold when blur
    ✓ should has remain when focus
    ✓ should change value
    ✓ should support more native props
    ✓ should expand when autoExpand

  TimePicker
    ✓ use
17 04 2019 03:52:34.285:WARN [PhantomJS 2.1.1 (Linux 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  Disconnected, because no message in 10000 ms.

PhantomJS 2.1.1 (Linux 0.0.0): Executed 205 of 292 DISCONNECTED (1 min 12.4 secs / 1 min 1.896 secs)


=============================== Coverage summary ===============================
Statements   : 100% ( 0/0 )
Branches     : 100% ( 0/0 )
Functions    : 100% ( 0/0 )
Lines        : 100% ( 0/0 )
================================================================================

npm ERR! Linux 4.4.0-101-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v6.17.1/bin/node" "/home/travis/.nvm/versions/node/v6.17.1/bin/npm" "run" "unit"
npm ERR! node v6.17.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! cube-ui@1.12.15 unit: `cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the cube-ui@1.12.15 unit script 'cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cube-ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs cube-ui
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls cube-ui
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/travis/build/didi/cube-ui/npm-debug.log
npm ERR! Test failed.  See above for more details.
TravisBuddy Request Identifier: 42154ee0-60c4-11e9-872d-3ffbb4cd282a

@TravisBuddy
Copy link

Travis tests have failed

Hey @hezhongfeng,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 6

View build log

npm test
> cube-ui@1.12.15 test /home/travis/build/didi/cube-ui
> npm run unit && npm run codecov


> cube-ui@1.12.15 unit /home/travis/build/didi/cube-ui
> cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run

(node:5259) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
17 04 2019 05:29:09.519:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
17 04 2019 05:29:09.521:INFO [launcher]: Launching browser PhantomJS_mobile with unlimited concurrency
17 04 2019 05:29:09.528:INFO [launcher]: Starting browser PhantomJS
17 04 2019 05:29:10.458:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket HLBJJTkqu92EWGWYAAAA with id 12040824
PhantomJS 2.1.1 (Linux 0.0.0) INFO LOG: 'You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html'

  ActionSheet
    ActionSheet.vue
      ✓ use
      ✓ should render correct contents
      ✓ should render correct contents - no data
      ✓ should render correct contents - picker style
      ✓ should trigger events
    ActionSheet API
      ✓ $createActionSheet API

  Button.vue
    ✓ use
    ✓ should render correct contents
    ✓ props
    ✓ events-called
    ✓ events-no-called

  CascadePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should trigger events
    ✓ should call methods
    ✓ should support async cascade
    ✓ $updateProps
    ✓ should add warn log when single is true

  CheckboxGroup.vue
    ✓ use
    ✓ should render correct contents (horizontal=false)
    ✓ should render correct contents (horizontal=true)
    ✓ should change v-model value
    ✓ should work correctly - min & max

  Checkbox.vue
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  Checker.vue
    ✓ use
    ✓ should render radio contents
    ✓ should render radio contents
    ✓ should render checkbox contents

  DatePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when configured startColumn and columnCount
    ✓ should render correct contents when configured format
    ✓ should render correct contents when configured columnOrder
    ✓ should trigger events
    ✓ should call methods
    ✓ should add warn log when single is true
    ✓ $updateProps: {"value":"2012-10-01T00:00:00.000Z"}
    ✓ $updateProps: {"min":"2012-04-05T00:00:00.000Z"}
    ✓ $updateProps: {"min":"2010-04-05T00:00:00.000Z"}
    ✓ $updateProps: {"max":"2025-10-20T00:00:00.000Z"}

  Dialog
    Dialog.vue
      ✓ use
      ✓ should render correct contents - icon
      ✓ should render correct contents - title
      ✓ should render correct contents - alert
      ✓ should render correct contents - confirm
      ✓ should render correct contents - prompt
      ✓ should render correct contents - confirmBtn/cancelBtn
      ✓ should trigger events
      ✓ should not trigger events when btn is disabled
    Dialog API
      ✓ $createDialog API

  Drawer
    ✓ use
    ✓ should render correct contents
    ✓ should trigger events

  Form.vue
    ✓ use
    ✓ should render correct contents
    ✓ should validate & reset correctly
    ✓ should validate & reset correctly - async validate
    ✓ should validate correctly - trigger blur
    ✓ should validate correctly - debounce
    ✓ should trigger events

  ImagePreview
    ImagePreview.vue
      ✓ use
      ✓ should render correct contents
      ✓ should trigger events
      ✓ should work correctly when slide & zoom
    ImagePreview API
      ✓ $createImagePreview API

  IndexList
    IndexList.vue
      ✓ use
      ✓ should render correct contents
      ✓ should trigger events
WARN LOG: '[Cube tip]: <cube-index-list> The property "pull-up-load" is deprecated, please use the recommended property "options" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/index-list#cube-Propsconfiguration-anchor'
      ✓ should trigger pulling-up
WARN LOG: '[Cube tip]: <cube-index-list> The property "pull-down-refresh" is deprecated, please use the recommended property "options" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/index-list#cube-Propsconfiguration-anchor'
      ✓ should trigger pulling-down
      ✓ should fixed title
      ✓ should not have navbar when navbar prop is false
      ✓ run normal when group or item undefined
      ✓ should handle condition of unexpected param

  Input.vue
    ✓ use
    ✓ should render correct contents
    ✓ should not show clear button when no text
    ✓ should show clear button when has text
    ✓ value should be empty when clear button clicked
    ✓ should support more native props
    ✓ should show password eye and work correctly
    ✓ should show clearable icon and work correctly
    ✓ should trigger events

  Loading.vue
    ✓ use
    ✓ should render correct contents - no size
    ✓ should render correct contents - with size

  Locale
    ✓ use
    ✓ should support adding helper function
    ✓ should render correct zh-CN language by default and support changing language

  Picker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should toggle by change v-model visible
    ✓ should trigger events
    ✓ should refill correct
    ✓ should add warn log when single is true
    ✓ setData when picker is invisible
    ✓ setData when picker is visible

  Popup
    Popup.vue
      ✓ use
      ✓ should render correct contents - no type
      ✓ should render correct contents
      ✓ should toggle by change v-model visible
      ✓ events
    Popup API
      ✓ $createPopup API

  Radio.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - horizontal
    ✓ should toggle v-model value
    ✓ v-model should be a number value

  Rate.vue
    ✓ use
    ✓ should render correct contents
    ✓ should trigger change event
    ✓ should trigger change event with click

  RecycleList
    ✓ use
    ✓ requires onFetch function to return a Promise
    ✓ render correct count data
    ✓ should stop scroll
    ✓ should clean all contents
    ✓ should call correct method

  ScrollNavBar
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - vertical
    ✓ should trigger events

  ScrollNav
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - side
    ✓ should sticky & nav correctly
    ✓ should trigger events

  Scroll
    ✓ use
    ✓ should correct by default
    ✓ should render correct contents
    ✓ should trigger pullingDown
    ✓ should not trigger pullingDown
    ✓ should trigger pullingUp
    ✓ should not trigger pullingUp
    ✓ should trigger click
    ✓ should not trigger scroll events
    ✓ should trigger scroll events - with scroll-events
WARN LOG: '[Cube tip]: <cube-scroll> The property "listen-scroll" is deprecated, please use the recommended property "scroll-events" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/scroll#cube-Propsconfiguration-anchor'
WARN LOG: '[Cube tip]: <cube-scroll> The property "listen-before-scroll" is deprecated, please use the recommended property "scroll-events" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/scroll#cube-Propsconfiguration-anchor'
    ✓ should trigger scroll events - with listen-scroll
    ✓ should call correct method
    Nest Scrolls
      ✓ should render scrolls correct
      ✓ should disable outer scroll when touch the inner one and not reach boundary
      ✓ should disable inner scroll when touch the inner one and reach boundary

  SegmentPicker
    ✓ use
    ✓ should render correct contents
    ✓ should correct by default
    ✓ should trigger events
    ✓ $updateProps
    ✓ should add warn log when single is true

  Select.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - update txt
    ✓ should trigger events

  Slide.vue
    ✓ use
    ✓ should render correct contents
    ✓ should clone nodes if loop is true
    ✓ should trigger events
    ✓ should trigger scroll-end but without change
    ✓ should trigger scroll when changed
    ✓ should not trigger scroll when option.probeType !== 3
    ✓ should go to right pageIndex if set initialIndex
    ✓ should not reset current when set refreshResetCurrent=false
    ✓ should change vertical pageIndex when direction is vertical

  Sticky
    ✓ use
    ✓ should render correct contents
    ✓ should fixed ele
    ✓ should fixed ele - checkTop
    ✓ should trigger events

  Swipe
    ✓ use
    ✓ should render correct contents
    ✓ should shrink if the swipe width not enough
    ✓ should shrink if the last moving direction is right
    ✓ should shrink and not moved if the duration is more than momentumLimitTime and moving distance is less than momentumLimitDistance
    ✓ should shrink and not moved if y-axis distance is more than x-axis distance
    ✓ should grow if the swipe width enough
    ✓ should grow if the duration is less than momentumLimitTime and moving distance is more than momentumLimitDistance
    ✓ should not swipe out of the boundaries when swiping left
    ✓ should not swipe out of the boundaries when swiping right
    ✓ should trigger events
    ✓ should shrink if another swipe item active
    ✓ should do nothing if active the same swipe item
    ✓ should call refresh if the btns prop has changed
    ✓ should use default props if do not pass any prop

  Switch
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  TabBar
    ✓ use
    ✓ props
    ✓ should render correct content when pass data prop
    ✓ should toggle v-model value
    ✓ should trigger click and change event
    ✓ should remove child dom when child component destroyed

  Textarea.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - no indicator
    ✓ should not expand when blur
    ✓ should expand when focus, fold when blur
    ✓ should has remain when focus
    ✓ should change value
    ✓ should support more native props
    ✓ should expand when autoExpand

  TimePicker
    ✓ use
e.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cube-ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs cube-ui
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls cube-ui
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/travis/build/didi/cube-ui/npm-debug.log
npm ERR! Test failed.  See above for more details.
TravisBuddy Request Identifier: e83416f0-60d1-11e9-872d-3ffbb4cd282a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.