Skip to content

Commit 39988d1

Browse files
committed
fix constructor name test for IE
1 parent 1d7d5a7 commit 39988d1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

grunt/sauce.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,17 @@ var batches = [
6464
base: 'SauceLabs',
6565
browserName: 'android',
6666
platform: 'Linux',
67-
version: '4.4'
67+
version: '4.2'
6868
}
6969
}
7070
]
7171

7272
for (var i = 0; i < 3; i++) {
7373
exports['batch' + (i+1)] = {
7474
sauceLabs: sauceConfig,
75-
captureTimeout: 600000,
75+
// mobile emulators are really slow
76+
captureTimeout: 300000,
77+
browserNoActivityTimeout: 300000,
7678
customLaunchers: batches[i],
7779
browsers: Object.keys(batches[i]),
7880
reporters: ['progress', 'saucelabs']

test/unit/specs/api/global_spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ describe('Global API', function () {
1919
expect(Test.options.a).toBe(1)
2020
expect(Test.options.b).toBe(2)
2121
expect(Test.super).toBe(Vue)
22-
expect(Test.name).toBe('Test')
22+
// function.name is not available in IE
23+
expect(Test.toString().match(/^function Test\s?\(/)).toBeTruthy()
2324
var t = new Test({
2425
a: 2
2526
})

0 commit comments

Comments
 (0)