@@ -1781,7 +1781,7 @@ function componentNeedsCompiling(component) {
17811781function isRefSelector ( refOptionsObject ) {
17821782 if (
17831783 ! isPlainObject ( refOptionsObject ) ||
1784- Object . keys ( refOptionsObject || { } ) . length !== 1
1784+ keys$1 ( refOptionsObject || { } ) . length !== 1
17851785 ) {
17861786 return false
17871787 }
@@ -1848,10 +1848,10 @@ function makeMap(str, expectsLowerCase) {
18481848 map [ list [ i ] ] = true ;
18491849 }
18501850 return expectsLowerCase
1851- ? function ( val ) {
1851+ ? function ( val ) {
18521852 return map [ val . toLowerCase ( ) ]
18531853 }
1854- : function ( val ) {
1854+ : function ( val ) {
18551855 return map [ val ]
18561856 }
18571857}
@@ -1923,7 +1923,7 @@ function vmCtorMatches(vm, component) {
19231923 }
19241924
19251925 if ( component . functional ) {
1926- return Object . keys ( vm . _Ctor || { } ) . some ( function ( c ) {
1926+ return keys$1 ( vm . _Ctor || { } ) . some ( function ( c ) {
19271927 return component === vm . _Ctor [ c ] . extendOptions
19281928 } )
19291929 }
@@ -2105,7 +2105,7 @@ function getOption(option, config) {
21052105 if ( option === false ) {
21062106 return false
21072107 }
2108- if ( option || ( config && Object . keys ( config ) . length > 0 ) ) {
2108+ if ( option || ( config && keys$1 ( config ) . length > 0 ) ) {
21092109 if ( option instanceof Function ) {
21102110 return option
21112111 }
@@ -2129,7 +2129,7 @@ function mergeOptions(
21292129) {
21302130 var mocks = ( getOption ( options . mocks , config . mocks ) ) ;
21312131 var methods = ( getOption ( options . methods , config . methods ) ) ;
2132- if ( methods && Object . keys ( methods ) . length ) {
2132+ if ( methods && keys$1 ( methods ) . length ) {
21332133 warnDeprecated (
21342134 'overwriting methods via the `methods` property' ,
21352135 'There is no clear migration path for the `methods` property - Vue does not support arbitrarily replacement of methods, nor should VTU. To stub a complex method extract it from the component and test it in isolation. Otherwise, the suggestion is to rethink those tests'
@@ -8127,14 +8127,14 @@ function isElementVisible(element, previousElement) {
81278127}
81288128
81298129function recursivelySetData ( vm , target , data ) {
8130- Object . keys ( data ) . forEach ( function ( key ) {
8130+ keys$1 ( data ) . forEach ( function ( key ) {
81318131 var val = data [ key ] ;
81328132 var targetVal = target [ key ] ;
81338133
81348134 if (
81358135 isPlainObject ( val ) &&
81368136 isPlainObject ( targetVal ) &&
8137- Object . keys ( val ) . length > 0
8137+ keys$1 ( val ) . length > 0
81388138 ) {
81398139 recursivelySetData ( vm , targetVal , val ) ;
81408140 } else {
@@ -9382,10 +9382,10 @@ var w3cKeys = {
93829382 esc : 'Esc' ,
93839383 escape : 'Escape' ,
93849384 space : ' ' ,
9385- up : 'Up ' ,
9386- left : 'Left ' ,
9387- right : 'Right ' ,
9388- down : 'Down ' ,
9385+ up : 'ArrowUp ' ,
9386+ left : 'ArrowLeft ' ,
9387+ right : 'ArrowRight ' ,
9388+ down : 'ArrowDown ' ,
93899389 end : 'End' ,
93909390 home : 'Home' ,
93919391 backspace : 'Backspace' ,
@@ -9470,7 +9470,7 @@ function createDOMEvent(type, options) {
94709470 : createOldEvent ( eventParams ) ;
94719471
94729472 var eventPrototype = Object . getPrototypeOf ( event ) ;
9473- Object . keys ( options || { } ) . forEach ( function ( key ) {
9473+ keys$1 ( options || { } ) . forEach ( function ( key ) {
94749474 var propertyDescriptor = Object . getOwnPropertyDescriptor (
94759475 eventPrototype ,
94769476 key
@@ -9576,17 +9576,14 @@ Wrapper.prototype.classes = function classes (className) {
95769576 var classes = classAttribute ? classAttribute . split ( ' ' ) : [ ] ;
95779577 // Handle converting cssmodules identifiers back to the original class name
95789578 if ( this . vm && this . vm . $style ) {
9579- var cssModuleIdentifiers = Object . keys ( this . vm . $style ) . reduce (
9580- function ( acc , key ) {
9581- // $FlowIgnore
9582- var moduleIdent = this$1 . vm . $style [ key ] ;
9583- if ( moduleIdent ) {
9584- acc [ moduleIdent . split ( ' ' ) [ 0 ] ] = key ;
9585- }
9586- return acc
9587- } ,
9588- { }
9589- ) ;
9579+ var cssModuleIdentifiers = keys$1 ( this . vm . $style ) . reduce ( function ( acc , key ) {
9580+ // $FlowIgnore
9581+ var moduleIdent = this$1 . vm . $style [ key ] ;
9582+ if ( moduleIdent ) {
9583+ acc [ moduleIdent . split ( ' ' ) [ 0 ] ] = key ;
9584+ }
9585+ return acc
9586+ } , { } ) ;
95909587 classes = classes . map ( function ( name ) { return cssModuleIdentifiers [ name ] || name ; } ) ;
95919588 }
95929589
@@ -9940,7 +9937,7 @@ Wrapper.prototype.overview = function overview () {
99409937 var computed = this . vm . _computedWatchers
99419938 ? formatJSON . apply (
99429939 // $FlowIgnore
9943- void 0 , Object . keys ( this . vm . _computedWatchers ) . map ( function ( computedKey ) {
9940+ void 0 , keys$1 ( this . vm . _computedWatchers ) . map ( function ( computedKey ) {
99449941 var obj ;
99459942
99469943 return ( ( obj = { } , obj [ computedKey ] = this$1 . vm [ computedKey ] , obj ) ) ;
@@ -9964,9 +9961,7 @@ Wrapper.prototype.overview = function overview () {
99649961 var emittedJSONReplacer = function ( key , value ) { return value instanceof Array
99659962 ? value . map ( function ( calledWith , index ) {
99669963 var callParams = calledWith . map ( function ( param ) { return typeof param === 'object'
9967- ? JSON . stringify ( param )
9968- . replace ( / " / g, '' )
9969- . replace ( / , / g, ', ' )
9964+ ? JSON . stringify ( param ) . replace ( / " / g, '' ) . replace ( / , / g, ', ' )
99709965 : param ; }
99719966 ) ;
99729967
@@ -10148,7 +10143,7 @@ Wrapper.prototype.setMethods = function setMethods (methods) {
1014810143 }
1014910144 this . __warnIfDestroyed ( ) ;
1015010145
10151- Object . keys ( methods ) . forEach ( function ( key ) {
10146+ keys$1 ( methods ) . forEach ( function ( key ) {
1015210147 // $FlowIgnore : Problem with possibly null this.vm
1015310148 this$1 . vm [ key ] = methods [ key ] ;
1015410149 // $FlowIgnore : Problem with possibly null this.vm
@@ -10187,7 +10182,7 @@ Wrapper.prototype.setProps = function setProps (data) {
1018710182
1018810183 this . __warnIfDestroyed ( ) ;
1018910184
10190- Object . keys ( data ) . forEach ( function ( key ) {
10185+ keys$1 ( data ) . forEach ( function ( key ) {
1019110186 // Don't let people set entire objects, because reactivity won't work
1019210187 if (
1019310188 isPlainObject ( data [ key ] ) &&
@@ -12921,7 +12916,7 @@ function _createLocalVue(
1292112916 var instance = _Vue . extend ( ) ;
1292212917
1292312918 // clone global APIs
12924- Object . keys ( _Vue ) . forEach ( function ( key ) {
12919+ keys$1 ( _Vue ) . forEach ( function ( key ) {
1292512920 if ( ! instance . hasOwnProperty ( key ) ) {
1292612921 var original = _Vue [ key ] ;
1292712922 // cloneDeep can fail when cloning Vue instances
@@ -12998,7 +12993,7 @@ function compileTemplate(component) {
1299812993 }
1299912994
1300012995 if ( component . components ) {
13001- Object . keys ( component . components ) . forEach ( function ( c ) {
12996+ keys$1 ( component . components ) . forEach ( function ( c ) {
1300212997 var cmp = component . components [ c ] ;
1300312998 if ( ! cmp . render ) {
1300412999 compileTemplate ( cmp ) ;
@@ -13016,7 +13011,7 @@ function compileTemplate(component) {
1301613011}
1301713012
1301813013function compileTemplateForSlots ( slots ) {
13019- Object . keys ( slots ) . forEach ( function ( key ) {
13014+ keys$1 ( slots ) . forEach ( function ( key ) {
1302013015 var slot = Array . isArray ( slots [ key ] ) ? slots [ key ] : [ slots [ key ] ] ;
1302113016 slot . forEach ( function ( slotValue ) {
1302213017 if ( componentNeedsCompiling ( slotValue ) ) {
@@ -13043,7 +13038,7 @@ function requiresTemplateCompiler(slot) {
1304313038}
1304413039
1304513040function validateSlots ( slots ) {
13046- Object . keys ( slots ) . forEach ( function ( key ) {
13041+ keys$1 ( slots ) . forEach ( function ( key ) {
1304713042 var slot = Array . isArray ( slots [ key ] ) ? slots [ key ] : [ slots [ key ] ] ;
1304813043
1304913044 slot . forEach ( function ( slotValue ) {
@@ -13247,7 +13242,7 @@ function addMocks(
1324713242 if ( mockedProperties === false ) {
1324813243 return
1324913244 }
13250- Object . keys ( mockedProperties ) . forEach ( function ( key ) {
13245+ keys$1 ( mockedProperties ) . forEach ( function ( key ) {
1325113246 try {
1325213247 // $FlowIgnore
1325313248 _Vue . prototype [ key ] = mockedProperties [ key ] ;
@@ -13282,7 +13277,7 @@ function logEvents(
1328213277
1328313278function addEventLogger ( _Vue ) {
1328413279 _Vue . mixin ( {
13285- beforeCreate : function ( ) {
13280+ beforeCreate : function ( ) {
1328613281 this . __emitted = Object . create ( null ) ;
1328713282 this . __emittedByOrder = [ ] ;
1328813283 logEvents ( this , this . __emitted , this . __emittedByOrder ) ;
@@ -13330,9 +13325,7 @@ function isDestructuringSlotScope(slotScope) {
1333013325 return / ^ { .* } $ / . test ( slotScope )
1333113326}
1333213327
13333- function getVueTemplateCompilerHelpers (
13334- _Vue
13335- ) {
13328+ function getVueTemplateCompilerHelpers ( _Vue ) {
1333613329 // $FlowIgnore
1333713330 var vue = new _Vue ( ) ;
1333813331 var helpers = { } ;
@@ -13431,7 +13424,7 @@ function createScopedSlots(
1343113424
1343213425 var slotScope = scopedSlotMatches . match && scopedSlotMatches . match [ 1 ] ;
1343313426
13434- scopedSlots [ scopedSlotName ] = function ( props ) {
13427+ scopedSlots [ scopedSlotName ] = function ( props ) {
1343513428 var obj ;
1343613429
1343713430 var res ;
@@ -13629,7 +13622,7 @@ function createStubsFromStubsObject(
1362913622) {
1363013623 if ( originalComponents === void 0 ) originalComponents = { } ;
1363113624
13632- return Object . keys ( stubs || { } ) . reduce ( function ( acc , stubName ) {
13625+ return keys$1 ( stubs || { } ) . reduce ( function ( acc , stubName ) {
1363313626 var stub = stubs [ stubName ] ;
1363413627
1363513628 validateStub ( stub ) ;
@@ -13847,8 +13840,8 @@ function createInstance(
1384713840
1384813841 // watchers provided in mounting options should override preexisting ones
1384913842 if ( componentOptions . watch && instanceOptions . watch ) {
13850- var componentWatchers = Object . keys ( componentOptions . watch ) ;
13851- var instanceWatchers = Object . keys ( instanceOptions . watch ) ;
13843+ var componentWatchers = keys$1 ( componentOptions . watch ) ;
13844+ var instanceWatchers = keys$1 ( instanceOptions . watch ) ;
1385213845
1385313846 for ( var i = 0 ; i < instanceWatchers . length ; i ++ ) {
1385413847 var k = instanceWatchers [ i ] ;
@@ -13868,22 +13861,22 @@ function createInstance(
1386813861 var parentComponentOptions = options . parentComponent || { } ;
1386913862
1387013863 var originalParentComponentProvide = parentComponentOptions . provide ;
13871- parentComponentOptions . provide = function ( ) {
13864+ parentComponentOptions . provide = function ( ) {
1387213865 return Object . assign ( { } , getValuesFromCallableOption . call ( this , originalParentComponentProvide ) ,
1387313866 // $FlowIgnore
1387413867 getValuesFromCallableOption . call ( this , options . provide ) )
1387513868 } ;
1387613869
1387713870 var originalParentComponentData = parentComponentOptions . data ;
13878- parentComponentOptions . data = function ( ) {
13871+ parentComponentOptions . data = function ( ) {
1387913872 return Object . assign ( { } , getValuesFromCallableOption . call ( this , originalParentComponentData ) ,
1388013873 { vueTestUtils_childProps : Object . assign ( { } , options . propsData ) } )
1388113874 } ;
1388213875
1388313876 parentComponentOptions . $_doNotStubChildren = true ;
1388413877 parentComponentOptions . $_isWrapperParent = true ;
1388513878 parentComponentOptions . _isFunctionalContainer = componentOptions . functional ;
13886- parentComponentOptions . render = function ( h ) {
13879+ parentComponentOptions . render = function ( h ) {
1388713880 return h (
1388813881 Constructor ,
1388913882 createContext ( options , scopedSlots , this . vueTestUtils_childProps ) ,
0 commit comments