@@ -7,10 +7,10 @@ describe('support test results', function() {
7
7
// Support: iOS 8 only
8
8
if ( / i P h o n e O S 1 0 _ 1 \d (?: _ \d + ) ? / . test ( userAgent ) ) {
9
9
// iOS 8 official simulators have broken user agent (containing something like `iPhone OS 10_12_5`,
10
- // i.e. the macOS version in place of the iOS version so they'd fall into an incorrect bucket.
10
+ // i.e. the macOS version in place of the iOS version) so they'd fall into an incorrect bucket.
11
11
// Fix the user agent there.
12
12
// NOTE: Make sure the above check doesn't catch the real iOS 10!
13
- userAgent = userAgent . replace ( / i P h o n e O S 1 0 (?: _ \d ) + / , 'iPhone OS 8_1' ) ;
13
+ userAgent = userAgent . replace ( / i P h o n e O S 1 0 (?: _ \d + ) + / , 'iPhone OS 8_1' ) ;
14
14
}
15
15
16
16
if ( / e d g e \/ / i. test ( userAgent ) ) {
@@ -19,7 +19,7 @@ describe('support test results', function() {
19
19
fatArrows : true ,
20
20
shorthandMethods : true
21
21
} ;
22
- } else if ( / (?: m s i e | t r i d e n t ) / i. test ( userAgent ) ) {
22
+ } else if ( / m s i e | t r i d e n t / i. test ( userAgent ) ) {
23
23
expected = {
24
24
classes : false ,
25
25
fatArrows : false ,
@@ -33,13 +33,13 @@ describe('support test results', function() {
33
33
fatArrows : true ,
34
34
shorthandMethods : true
35
35
} ;
36
- } else if ( / \b 9 \. \d + ( \. \d + ) * s a f a r i / i. test ( userAgent ) ) {
36
+ } else if ( / \b 9 (?: \. \d + ) + s a f a r i / i. test ( userAgent ) ) {
37
37
expected = {
38
38
classes : true ,
39
39
fatArrows : false ,
40
40
shorthandMethods : true
41
41
} ;
42
- } else if ( / \b \d + \. \d + ( \. \d + ) * s a f a r i / i. test ( userAgent ) ) {
42
+ } else if ( / \b \d + (?: \. \d + ) + s a f a r i / i. test ( userAgent ) ) {
43
43
expected = {
44
44
classes : true ,
45
45
fatArrows : true ,
@@ -85,6 +85,9 @@ describe('support test results', function() {
85
85
86
86
for ( testName in expected ) {
87
87
it ( 'should report support.' + testName + ' to be ' + expected [ testName ] , function ( ) {
88
+ if ( support [ testName ] !== expected [ testName ] ) {
89
+ window . console . log ( userAgent ) ;
90
+ }
88
91
expect ( support [ testName ] ) . toBe ( expected [ testName ] ) ;
89
92
} ) ;
90
93
}
0 commit comments