Skip to content

Commit

Permalink
fix constructor name test for IE
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 27, 2014
1 parent 1d7d5a7 commit 39988d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions grunt/sauce.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,17 @@ var batches = [
base: 'SauceLabs',
browserName: 'android',
platform: 'Linux',
version: '4.4'
version: '4.2'
}
}
]

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']
Expand Down
3 changes: 2 additions & 1 deletion test/unit/specs/api/global_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit 39988d1

Please sign in to comment.