fix constructor name test for IE

This commit is contained in:
Evan You 2014-09-26 21:17:03 -04:00
parent 1d7d5a7714
commit 39988d1ed6
2 changed files with 6 additions and 3 deletions

View File

@ -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']

View File

@ -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
})