@@ -94,9 +94,7 @@ describe('integration', function() {
94
94
) ;
95
95
} ) ;
96
96
97
- it ( 'should generate a synthetic trace for captureException w/ non-errors' , function (
98
- done
99
- ) {
97
+ it ( 'should generate a synthetic trace for captureException w/ non-errors' , function ( done ) {
100
98
var iframe = this . iframe ;
101
99
iframeExecute (
102
100
iframe ,
@@ -117,9 +115,7 @@ describe('integration', function() {
117
115
) ;
118
116
} ) ;
119
117
120
- it ( 'should capture an Error object passed to Raven.captureException w/ maxMessageLength set (#647)' , function (
121
- done
122
- ) {
118
+ it ( 'should capture an Error object passed to Raven.captureException w/ maxMessageLength set (#647)' , function ( done ) {
123
119
var iframe = this . iframe ;
124
120
iframeExecute (
125
121
iframe ,
@@ -188,9 +184,7 @@ describe('integration', function() {
188
184
) ;
189
185
} ) ;
190
186
191
- it ( 'should not reject back-to-back errors with different stack traces' , function (
192
- done
193
- ) {
187
+ it ( 'should not reject back-to-back errors with different stack traces' , function ( done ) {
194
188
var iframe = this . iframe ;
195
189
iframeExecute (
196
190
iframe ,
@@ -239,9 +233,7 @@ describe('integration', function() {
239
233
) ;
240
234
} ) ;
241
235
242
- it ( 'should reject duplicate, back-to-back messages from captureMessage' , function (
243
- done
244
- ) {
236
+ it ( 'should reject duplicate, back-to-back messages from captureMessage' , function ( done ) {
245
237
var iframe = this . iframe ;
246
238
iframeExecute (
247
239
iframe ,
@@ -438,9 +430,7 @@ describe('integration', function() {
438
430
) ;
439
431
} ) ;
440
432
441
- it ( 'should catch an exception already caught [but rethrown] via Raven.captureException' , function (
442
- done
443
- ) {
433
+ it ( 'should catch an exception already caught [but rethrown] via Raven.captureException' , function ( done ) {
444
434
// unlike Raven.wrap which ALWAYS re-throws, we don't know if the user will
445
435
// re-throw an exception passed to Raven.captureException, and so we cannot
446
436
// automatically suppress the next error caught through window.onerror
@@ -496,9 +486,7 @@ describe('integration', function() {
496
486
) ;
497
487
} ) ;
498
488
499
- it ( 'should transparently remove event listeners from wrapped functions' , function (
500
- done
501
- ) {
489
+ it ( 'should transparently remove event listeners from wrapped functions' , function ( done ) {
502
490
var iframe = this . iframe ;
503
491
504
492
iframeExecute (
@@ -588,9 +576,7 @@ describe('integration', function() {
588
576
) ;
589
577
} ) ;
590
578
591
- it ( 'should capture exceptions from XMLHttpRequest event handlers (e.g. onreadystatechange)' , function (
592
- done
593
- ) {
579
+ it ( 'should capture exceptions from XMLHttpRequest event handlers (e.g. onreadystatechange)' , function ( done ) {
594
580
var iframe = this . iframe ;
595
581
596
582
iframeExecute (
@@ -692,9 +678,7 @@ describe('integration', function() {
692
678
) ;
693
679
} ) ;
694
680
695
- it ( 'should NOT denote XMLHttpRequests to the Sentry store endpoint as requiring breadcrumb capture' , function (
696
- done
697
- ) {
681
+ it ( 'should NOT denote XMLHttpRequests to the Sentry store endpoint as requiring breadcrumb capture' , function ( done ) {
698
682
var iframe = this . iframe ;
699
683
iframeExecute (
700
684
iframe ,
@@ -749,25 +733,18 @@ describe('integration', function() {
749
733
assert . equal ( breadcrumbs [ 0 ] . data . url , breadcrumbUrl ) ;
750
734
} else {
751
735
// otherwise we use a fetch polyfill based on xhr
752
- assert . equal ( breadcrumbs . length , 2 ) ;
736
+ assert . equal ( breadcrumbs . length , 1 ) ;
753
737
754
738
assert . equal ( breadcrumbs [ 0 ] . type , 'http' ) ;
755
- assert . equal ( breadcrumbs [ 0 ] . category , 'fetch ' ) ;
739
+ assert . equal ( breadcrumbs [ 0 ] . category , 'xhr ' ) ;
756
740
assert . equal ( breadcrumbs [ 0 ] . data . method , 'GET' ) ;
757
741
assert . equal ( breadcrumbs [ 0 ] . data . url , breadcrumbUrl ) ;
758
-
759
- assert . equal ( breadcrumbs [ 1 ] . type , 'http' ) ;
760
- assert . equal ( breadcrumbs [ 1 ] . category , 'xhr' ) ;
761
- assert . equal ( breadcrumbs [ 1 ] . data . method , 'GET' ) ;
762
- assert . equal ( breadcrumbs [ 1 ] . data . url , breadcrumbUrl ) ;
763
742
}
764
743
}
765
744
) ;
766
745
} ) ;
767
746
768
- it ( 'should record a fetch request with Request obj instead of URL string' , function (
769
- done
770
- ) {
747
+ it ( 'should record a fetch request with Request obj instead of URL string' , function ( done ) {
771
748
var iframe = this . iframe ;
772
749
773
750
iframeExecute (
@@ -801,17 +778,12 @@ describe('integration', function() {
801
778
assert . ok ( breadcrumbs [ 0 ] . data . url . indexOf ( breadcrumbUrl ) !== - 1 ) ;
802
779
} else {
803
780
// otherwise we use a fetch polyfill based on xhr
804
- assert . equal ( breadcrumbs . length , 2 ) ;
781
+ assert . equal ( breadcrumbs . length , 1 ) ;
805
782
806
783
assert . equal ( breadcrumbs [ 0 ] . type , 'http' ) ;
807
- assert . equal ( breadcrumbs [ 0 ] . category , 'fetch ' ) ;
784
+ assert . equal ( breadcrumbs [ 0 ] . category , 'xhr ' ) ;
808
785
assert . equal ( breadcrumbs [ 0 ] . data . method , 'GET' ) ;
809
786
assert . ok ( breadcrumbs [ 0 ] . data . url . indexOf ( breadcrumbUrl ) !== - 1 ) ;
810
-
811
- assert . equal ( breadcrumbs [ 1 ] . type , 'http' ) ;
812
- assert . equal ( breadcrumbs [ 1 ] . category , 'xhr' ) ;
813
- assert . equal ( breadcrumbs [ 1 ] . data . method , 'GET' ) ;
814
- assert . ok ( breadcrumbs [ 1 ] . data . url . indexOf ( breadcrumbUrl ) !== - 1 ) ;
815
787
}
816
788
}
817
789
) ;
@@ -851,25 +823,18 @@ describe('integration', function() {
851
823
assert . ok ( breadcrumbs [ 0 ] . data . url . indexOf ( breadcrumbUrl ) !== - 1 ) ;
852
824
} else {
853
825
// otherwise we use a fetch polyfill based on xhr
854
- assert . equal ( breadcrumbs . length , 2 ) ;
826
+ assert . equal ( breadcrumbs . length , 1 ) ;
855
827
856
828
assert . equal ( breadcrumbs [ 0 ] . type , 'http' ) ;
857
- assert . equal ( breadcrumbs [ 0 ] . category , 'fetch ' ) ;
829
+ assert . equal ( breadcrumbs [ 0 ] . category , 'xhr ' ) ;
858
830
assert . equal ( breadcrumbs [ 0 ] . data . method , 'GET' ) ;
859
831
assert . ok ( breadcrumbs [ 0 ] . data . url . indexOf ( breadcrumbUrl ) !== - 1 ) ;
860
-
861
- assert . equal ( breadcrumbs [ 1 ] . type , 'http' ) ;
862
- assert . equal ( breadcrumbs [ 1 ] . category , 'xhr' ) ;
863
- assert . equal ( breadcrumbs [ 1 ] . data . method , 'GET' ) ;
864
- assert . ok ( breadcrumbs [ 1 ] . data . url . indexOf ( breadcrumbUrl ) !== - 1 ) ;
865
832
}
866
833
}
867
834
) ;
868
835
} ) ;
869
836
870
- it ( 'should record a mouse click on element WITH click handler present' , function (
871
- done
872
- ) {
837
+ it ( 'should record a mouse click on element WITH click handler present' , function ( done ) {
873
838
var iframe = this . iframe ;
874
839
875
840
iframeExecute (
@@ -909,9 +874,7 @@ describe('integration', function() {
909
874
) ;
910
875
} ) ;
911
876
912
- it ( 'should record a mouse click on element WITHOUT click handler present' , function (
913
- done
914
- ) {
877
+ it ( 'should record a mouse click on element WITHOUT click handler present' , function ( done ) {
915
878
var iframe = this . iframe ;
916
879
917
880
iframeExecute (
@@ -943,9 +906,7 @@ describe('integration', function() {
943
906
) ;
944
907
} ) ;
945
908
946
- it ( 'should only record a SINGLE mouse click for a tree of elements with event listeners' , function (
947
- done
948
- ) {
909
+ it ( 'should only record a SINGLE mouse click for a tree of elements with event listeners' , function ( done ) {
949
910
var iframe = this . iframe ;
950
911
951
912
iframeExecute (
@@ -985,9 +946,7 @@ describe('integration', function() {
985
946
) ;
986
947
} ) ;
987
948
988
- it ( 'should bail out if accessing the `type` and `target` properties of an event throw an exception' , function (
989
- done
990
- ) {
949
+ it ( 'should bail out if accessing the `type` and `target` properties of an event throw an exception' , function ( done ) {
991
950
// see: https://github.com/getsentry/raven-js/issues/768
992
951
var iframe = this . iframe ;
993
952
@@ -1022,9 +981,7 @@ describe('integration', function() {
1022
981
) ;
1023
982
} ) ;
1024
983
1025
- it ( 'should record consecutive keypress events into a single "input" breadcrumb' , function (
1026
- done
1027
- ) {
984
+ it ( 'should record consecutive keypress events into a single "input" breadcrumb' , function ( done ) {
1028
985
var iframe = this . iframe ;
1029
986
1030
987
iframeExecute (
@@ -1095,9 +1052,7 @@ describe('integration', function() {
1095
1052
) ;
1096
1053
} ) ;
1097
1054
1098
- it ( 'should flush keypress breadcrumb when input event occurs immediately after' , function (
1099
- done
1100
- ) {
1055
+ it ( 'should flush keypress breadcrumb when input event occurs immediately after' , function ( done ) {
1101
1056
var iframe = this . iframe ;
1102
1057
1103
1058
iframeExecute (
@@ -1149,9 +1104,7 @@ describe('integration', function() {
1149
1104
) ;
1150
1105
} ) ;
1151
1106
1152
- it ( 'should record consecutive keypress events in a contenteditable into a single "input" breadcrumb' , function (
1153
- done
1154
- ) {
1107
+ it ( 'should record consecutive keypress events in a contenteditable into a single "input" breadcrumb' , function ( done ) {
1155
1108
var iframe = this . iframe ;
1156
1109
1157
1110
iframeExecute (
@@ -1186,9 +1139,7 @@ describe('integration', function() {
1186
1139
) ;
1187
1140
} ) ;
1188
1141
1189
- it ( 'should record history.[pushState|replaceState] changes as navigation breadcrumbs' , function (
1190
- done
1191
- ) {
1142
+ it ( 'should record history.[pushState|replaceState] changes as navigation breadcrumbs' , function ( done ) {
1192
1143
var iframe = this . iframe ;
1193
1144
1194
1145
iframeExecute (
0 commit comments