mirror of https://github.com/vuejs/vue.git
				
				
				
			fix constructor name test for IE
This commit is contained in:
		
							parent
							
								
									1d7d5a7714
								
							
						
					
					
						commit
						39988d1ed6
					
				|  | @ -64,7 +64,7 @@ var batches = [ | |||
|       base: 'SauceLabs', | ||||
|       browserName: 'android', | ||||
|       platform: 'Linux', | ||||
|       version: '4.4' | ||||
|       version: '4.2' | ||||
|     } | ||||
|   } | ||||
| ] | ||||
|  | @ -72,7 +72,9 @@ var batches = [ | |||
| for (var i = 0; i < 3; i++) { | ||||
|   exports['batch' + (i+1)] = { | ||||
|     sauceLabs: sauceConfig, | ||||
|     captureTimeout: 600000, | ||||
|     // mobile emulators are really slow
 | ||||
|     captureTimeout: 300000, | ||||
|     browserNoActivityTimeout: 300000, | ||||
|     customLaunchers: batches[i], | ||||
|     browsers: Object.keys(batches[i]), | ||||
|     reporters: ['progress', 'saucelabs'] | ||||
|  |  | |||
|  | @ -19,7 +19,8 @@ describe('Global API', function () { | |||
|     expect(Test.options.a).toBe(1) | ||||
|     expect(Test.options.b).toBe(2) | ||||
|     expect(Test.super).toBe(Vue) | ||||
|     expect(Test.name).toBe('Test') | ||||
|     // function.name is not available in IE
 | ||||
|     expect(Test.toString().match(/^function Test\s?\(/)).toBeTruthy() | ||||
|     var t = new Test({ | ||||
|       a: 2 | ||||
|     }) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue