Commit Graph

1093 Commits

Author SHA1 Message Date
Evan You 79bfb1809a more transition tests 2016-05-31 20:36:06 -04:00
Evan You 74538b4529 basic transition tests 2016-05-31 19:09:57 -04:00
Evan You 9c2ca07cc6 more coverage improvements 2016-05-31 15:26:55 -04:00
Evan You 6a48b35473 props tests 2016-05-31 15:15:01 -04:00
Evan You 4179ba0b1c small coverage tweaks 2016-05-31 13:46:08 -04:00
Evan You 47f24430cb also warn set/delete on instance root $data 2016-05-31 13:31:29 -04:00
Evan You 818faa7d58 options watch tests 2016-05-31 11:21:41 -04:00
Evan You 26bc0002d7 options computed test 2016-05-30 18:37:22 -04:00
Evan You 563cdba11e improve coverage 2016-05-29 15:02:03 -04:00
Evan You 7913a96ccb fix test in phantomjs 2016-05-29 14:39:48 -04:00
Evan You 2a09188e01 options propsData tests 2016-05-29 14:28:03 -04:00
Evan You ed10dcf293 add asset resolution warning tests 2016-05-29 14:01:43 -04:00
Evan You 2f79bd26a4 options data tests 2016-05-29 13:55:30 -04:00
Evan You 0abbdd98c6 more filter tests 2016-05-29 13:35:47 -04:00
Evan You f23498242f test for misc instance properties 2016-05-29 13:21:09 -04:00
Evan You 5b18542eea option extends tests 2016-05-29 13:02:45 -04:00
Evan You 43da334ec1 test programmatic $slot access 2016-05-28 21:39:59 -04:00
Evan You 7bb5234074 options filters tests 2016-05-28 21:29:05 -04:00
Evan You 1e90fd6a52 component option tests 2016-05-28 21:14:37 -04:00
Evan You 0450aba1f1 improve Vue.extend tests 2016-05-28 21:09:01 -04:00
Evan You d62eacd1da directive option tests 2016-05-28 21:08:55 -04:00
Evan You 99a96d3c37 should invoke destroy hook for replaced root nodes too 2016-05-28 21:05:53 -04:00
Evan You 5aeb7f5eef lifecycle hook tests 2016-05-28 20:17:19 -04:00
Evan You 20758d554f instance methods tests 2016-05-27 21:38:06 -04:00
kazuya kawaguchi f5bc3e584f add options render tests (#2966)
ref: #2872
2016-05-27 21:05:42 -04:00
Evan You a99bed7267 just use lodash itself since it is already a dep 2016-05-27 20:00:12 -04:00
kazuya kawaguchi d91eda8556 add options el tests (#2967)
* add options el tests

ref: #2872

* fix error at phantomjs env
2016-05-27 19:17:57 -04:00
kazuya kawaguchi 05235942a7 add options template tests (#2968)
* add options template tests

ref: #2872

* fix runtime error and warning optimaize

* update invalid template
2016-05-27 19:17:03 -04:00
Evan You c6d749b268 bump dependencies and fix toEqual matcher in Safari 2016-05-27 19:16:14 -04:00
Evan You 3a0557a317 component slot tests 2016-05-27 17:14:23 -04:00
Evan You 87820e9fbd remove select append selectedIndex test case 2016-05-26 23:54:06 -04:00
Evan You 2a64b8a356 tests for v-model select 2016-05-26 23:51:34 -04:00
Evan You 22d7acba03 always set props even if value is the same 2016-05-26 20:47:23 -04:00
Evan You c2ef6d8df9 v-model checkbox tests 2016-05-26 20:41:34 -04:00
Evan You 1914dfe4dd v-model radio tests 2016-05-26 20:11:47 -04:00
Evan You 0e67d82356 remove transition specs (to be tested in its own suite) 2016-05-26 19:46:33 -04:00
Evan You b370eacfce fix unit tests in IE9 2016-05-26 19:07:44 -04:00
Evan You cc06868882 improve hydration test case 2016-05-26 18:22:22 -04:00
Evan You 0fd43c9653 Merge branch 'test/patch' of git://github.com/kazupon/vue into test/patch 2016-05-26 18:16:40 -04:00
Bartek Iwańczuk 2421265f61 tests for parent, name and mixins (#2959)
* tests for parent, name and mixins

* split mixin test case into to, prefixed test suites
2016-05-26 18:11:56 -04:00
Evan You 1c6325367e amend render tests 2016-05-26 18:10:20 -04:00
kazuya kawaguchi af16d36122 add render tests
ref: #2872
2016-05-26 17:57:19 -04:00
Evan You dc76830b7b fix test error in phantomjs 2016-05-26 13:58:10 -04:00
Evan You 056cb7f295 test for v-model text 2016-05-26 13:54:37 -04:00
kazuya kawaguchi 6b4a617e6d Fix render codegen bug (#2954) 2016-05-26 10:31:49 -04:00
Evan You 34b37a62ec test for v-cloak 2016-05-25 18:28:05 -04:00
kazuya kawaguchi a6ac886f2c
add vdom helper 2016-05-25 15:50:00 +09:00
kazuya kawaguchi 31c63559ed
add eslint ignore for test 2016-05-25 15:43:12 +09:00
kazuya kawaguchi 02cdbd2dbb
add patch tests
ref: #2872
2016-05-25 15:42:39 +09:00
Evan You cb915d0120 fix linting issues 2016-05-24 20:52:59 -04:00
Evan You 5594a7cd3d tests for v-bind object 2016-05-24 20:51:01 -04:00
Evan You 54e648e49f include patch process in watcher getter to ensure correct dep collection for deep updates 2016-05-24 19:53:58 -04:00
Evan You 8c8eaea0fb restructure global api tests + ensure global mixins work regardless of constructor creation time 2016-05-24 14:12:10 -04:00
Bartek 7d55af6b6a Delimiters tests (#2948)
* delimiters spec

* delete Vue.options.delimiters
2016-05-24 13:32:03 -04:00
Evan You 0a15d9ee27 add root element warnings 2016-05-23 19:03:02 -04:00
Evan You df73cbf0a8 remove v-bind:style important test case due to phantomjs inconsistency 2016-05-23 19:02:46 -04:00
kazuya kawaguchi 30c82195d1 add create-element tests (#2930) 2016-05-23 16:32:48 -04:00
Brendan Bowidas 93bfc9baa7 Unit tests for v-bind:style (#2932)
* begin unit tests for v-bind:style

* add unit tests for v-bind:style directive
2016-05-23 16:30:58 -04:00
Evan You 82c76175ec use extend instead of Object.assign() since the latter is not avaialble in phantomjs 2016-05-20 11:46:51 -04:00
Evan You f5297358af fix linting problems 2016-05-20 11:42:58 -04:00
Evan You 9d3479a76c rearrange option tests 2016-05-20 11:41:26 -04:00
Blake Newman 79b29f7ba4 added ref directive tests (#2892) 2016-05-20 11:36:29 -04:00
Evan You acd712d54d fix ref codegen 2016-05-20 11:36:14 -04:00
Evan You af0bf2a886 async component tests 2016-05-19 23:43:05 -04:00
Evan You 600ebfbaa4 simplify compiler tests 2016-05-19 23:15:58 -04:00
kazuya kawaguchi 0f46d950ec add create-component tests (#2928)
ref: #2872
2016-05-19 14:01:30 -04:00
Evan You 6fe268874c improve codegen for smaller generated code size 2016-05-18 20:57:51 -04:00
kazuya kawaguchi 680baf846e add codegen tests (#2894)
ref #2872
2016-05-18 13:18:31 -04:00
Evan You f8ece6144a improve waitForUpdate() syntax 2016-05-18 13:08:14 -04:00
Blake Newman 8e35604dab added pre directive tests (#2891) 2016-05-18 01:35:13 -04:00
Jinjiang 1d45c4b9e9 extract style/class/transition as web platform compiler modules (#2885)
* extract style/class/transition as web platform compiler modules

* fixed genData bug

* made module.staticKeys optional in compiler

* changed module.genData just return additional data in compiler

* cached genStaticKeys in compiler optimizer
2016-05-16 21:02:13 -04:00
Evan You da4124c4ca unit tests for v-bind:class 2016-05-16 18:18:51 -04:00
kazuya kawaguchi 6daba53750 add optimizer tests (#2882)
ref: #2872
2016-05-16 12:56:53 -04:00
Evan You eaddbe5739 update track-by usage in test 2016-05-16 01:03:47 -04:00
kazuya kawaguchi b8ffc659e9 add parser tests (#2878)
ref #2872
2016-05-15 16:50:44 -04:00
kazuya kawaguchi b65511e111 add scheduler tests (#2869) 2016-05-14 06:21:46 -04:00
Evan You 45d96c7dbc annotation for vdom (wip) 2016-05-14 03:08:21 -04:00
kazuya kawaguchi 82da272bdf add watcher tests (#2868) 2016-05-13 20:53:09 -04:00
Evan You 7ac7cae195 add error handling for srr 2016-05-12 02:49:11 -04:00
Blake Newman 9b59ccc6b4 Fix issue with renderToString stack length overflowing (#2840)
* Fix issue with renderToString stack length overflowing

* SSR renderToString asyncronous callback
2016-05-12 02:13:38 -04:00
Evan You d6ced71719 prohibit Vue.set/delete on Vue instances 2016-05-12 01:56:01 -04:00
kazuya kawaguchi 64de68b6f5 add observer tests (#2855)
* test: add observer tests

NOTE: bring vue 1.x observer test

* update observer tests
2016-05-12 01:40:50 -04:00
Blake Newman 35440d9856 SSR warn for no VUE_ENV and add tests (#2844)
- Added test coverage for data observation and VUE environment variable
- Moved Test helpers into own folder for reusability
2016-05-12 01:21:53 -04:00
Evan You 07cf6444c6 return this in $mount, make unit tests more consistent 2016-05-11 15:40:50 -04:00
Evan You 76d06ba422 implement $isServer and ssr observation skipping via env variables 2016-05-10 18:03:30 -04:00
Evan You 2021b1f36f layout unit test files 2016-05-09 18:26:29 -04:00
Evan You 6593be9f75 update unit tests convention + basic component tests 2016-05-09 18:08:18 -04:00
Evan You 498448284a tweak ssr async resolve, revert $forceUpdate change 2016-05-08 16:59:52 -04:00
Evan You 270b0ac021 Merge branch 'ssr-improvements' of git://github.com/blake-newman/vue into ssr 2016-05-08 14:51:11 -04:00
Evan You be2e79df27 fix ssr tests 2016-05-08 00:14:44 -04:00
Evan You 5fb1a549d2 make attr behavior more consistent + fix tests 2016-05-07 16:27:33 -04:00
Takuya Tejima ae78813606 [Vue 2.0] Fix BooleanAttr & EnumeratedAttr serialization (#2810)
* fix attr serialization

* Add attribute test cases
2016-05-07 15:51:46 -04:00
Blake Newman a233e4dbfa improved SSR rendering
- Reduced duplicated code
- Added more test coverage
- Added syncronous component resolving support
- Fixed component lifecycle
- Added raw render method, to allow custom streaming possibilities
2016-05-07 17:56:18 +01:00
Evan You 68372ea26b update track-by usage 2016-05-04 16:48:47 -04:00
Takuya Tejima 49d5f2f393 Suppress a warning 'Unknown custom element' with SSR <img> tag 2016-05-04 11:36:16 -04:00
Evan You f0f2b76183 fix eslint 2016-04-29 19:44:10 -04:00
Evan You 2f0222b41c layout test files 2016-04-29 19:31:32 -04:00
Evan You 72b74a23e4 improve v-for unit tests 2016-04-29 19:26:09 -04:00
Evan You 2679653362 test for Vue.compile 2016-04-29 18:42:20 -04:00
Evan You e275b75af8 test/fix global filter registration 2016-04-29 18:39:52 -04:00
Evan You cab88c50bb fix child component v-on spec 2016-04-27 13:19:05 -04:00
Evan You 680bd042c9 fix v-on test capture 2016-04-27 13:13:01 -04:00
Jinjiang 25efaf2163 [next] v-on test (#2741)
* ensure babel-env during build

* v-on test

* fixed build script
2016-04-27 13:07:25 -04:00
Blake Newman 681dc603e4 added v-once directive unit tests (#2740) 2016-04-27 13:07:10 -04:00
Evan You 26b776fa81 add placeholders for unit tests 2016-04-26 11:10:11 -04:00
Evan You 4191f251af adjust ssr API so that user can provide server-side implementations for custom directives 2016-04-26 00:42:49 -04:00
Evan You 3dc6088d53 use more reliable display check for v-show tests (fix it in PhantomJS) 2016-04-25 23:36:29 -04:00
Evan You bf14a05f3e fix spelling 2016-04-25 23:32:49 -04:00
Evan You f550933334 fix unit tests in Firefox/Safari 2016-04-25 23:30:48 -04:00
Jinjiang 657ba390c7 directives v-for v-html v-text v-show (#7)
* v-text & v-html tests

* new es2015 syntax

* passed v-html test

* fixed if/for/else render update bug

* fixed if/for/else render update bug

* added v-else with v-if test

* added v-if test with v-else and v-for

* fixed code format

* fixed Vue.delete bug

* v-for test
2016-04-25 23:25:59 -04:00
Evan You 38540b07e4 add server-rendered mark for ssr output 2016-04-25 21:29:58 -04:00
Evan You 9a2c8db4c8 get rid of new function in core so that runtime is fully CSP-compliant 2016-04-25 19:30:33 -04:00
Evan You d08cf7c320 streaming renderer! 2016-04-25 19:10:33 -04:00
Evan You 2111709e57 assert setting state in created hook works in ssr 2016-04-25 17:15:46 -04:00
Evan You 018b0e5440 ssr hoc component (failing) 2016-04-25 16:43:30 -04:00
Evan You 83ea6ef85d update ssr with tests 2016-04-25 16:37:20 -04:00
Evan You fff89dff1e add waitForUpdate as allowed global in unit tests 2016-04-25 13:44:28 -04:00
Evan You 4540aaf37d fix async failure 2016-04-25 13:43:22 -04:00
Evan You 75ce539b49 use custom async chaining assertion utility 2016-04-25 13:37:19 -04:00
Evan You 7169d14179 update if tests 2016-04-25 13:17:59 -04:00
Jinjiang 9b681f7cf0 fixed if/for/else render update bug (#8)
* fixed if/for/else render update bug

* added v-else with v-if test

* added v-if test with v-else and v-for

* removed unnecessary elseBlock detect in optimizer
2016-04-25 13:02:17 -04:00
Evan You e649795596 improve linting 2016-04-25 12:58:37 -04:00
Jinjiang 84549215bf global api tests (#6)
* Vue.set & Vue.delete tests

* more global api tests

* new es2015 syntax
2016-04-25 12:46:19 -04:00
Evan You 213aaf3203 use arrow fns in tests 2016-04-24 13:29:38 -04:00
Evan You 4c6ed93a36 global config tests 2016-04-24 13:28:26 -04:00
Evan You a04ff9dcc7 remove deprecated code 2016-04-24 13:28:26 -04:00
Evan You 9ce3693021 setup unit test 2016-04-23 20:00:38 -04:00
Evan You 6dd3d5b4c4 add a step to commits e2e test 2016-04-23 17:06:43 -04:00
Evan You d0c99b1cdb make modal test more stable in chrome (all e2e tests pass) 2016-04-21 19:29:35 -04:00
Evan You a9fbc0b738 remove old e2e tests 2016-04-21 19:24:23 -04:00
Evan You 5807adcf1f e2e test for todomvc 2016-04-21 19:23:13 -04:00
Evan You c942793b8c e2e tests for tree 2016-04-21 18:19:09 -04:00
Evan You 6170a55d15 e2e test for svg 2016-04-21 18:02:08 -04:00
Evan You b38b4b2907 fix watch in firefox again + e2e test for select2 2016-04-21 17:54:34 -04:00
Evan You f9c3d70526 modal e2e test 2016-04-21 17:33:51 -04:00
Evan You c403f5635b grid e2e test 2016-04-21 17:22:58 -04:00
Evan You 7b180cd01b commits e2e test 2016-04-21 17:10:54 -04:00
Evan You 0220fc310e allow runner to run sub tests 2016-04-21 17:03:43 -04:00
Evan You 04b8a7533c markdown test pass 2016-04-21 16:47:31 -04:00
Evan You 4d018cbe9f start switching to nightwatch 2016-04-21 16:20:29 -04:00
Evan You da42ca8203 add e2e test for modal 2016-04-20 18:29:59 -04:00
Evan You 2ef8d1028b add e2e test for select2 2016-04-16 13:26:17 -04:00
Evan You ceab86d9df add e2e tests 2016-04-16 04:12:37 -04:00