@@ -11,23 +11,23 @@ describe("e2e/14-errors/45-reporting-api", function() {
1111 } ) ;
1212
1313 it ( "Should have put the err on the beacon" , function ( ) {
14- if ( ! BOOMR . window . ReportingObserver ) {
14+ if ( ! window . willReportDeprecation ) {
1515 return this . skip ( ) ;
1616 }
1717 var b = tf . lastBeacon ( ) ;
1818 assert . isDefined ( b . err ) ;
1919 } ) ;
2020
2121 it ( "Should have had a single error" , function ( ) {
22- if ( ! BOOMR . window . ReportingObserver ) {
22+ if ( ! window . willReportDeprecation ) {
2323 return this . skip ( ) ;
2424 }
2525 var b = tf . lastBeacon ( ) ;
2626 assert . equal ( C . jsUrlDecompress ( b . err ) . length , 1 ) ;
2727 } ) ;
2828
2929 it ( "Should have count = 1" , function ( ) {
30- if ( ! BOOMR . window . ReportingObserver ) {
30+ if ( ! window . willReportDeprecation ) {
3131 return this . skip ( ) ;
3232 }
3333 var b = tf . lastBeacon ( ) ;
@@ -36,7 +36,7 @@ describe("e2e/14-errors/45-reporting-api", function() {
3636 } ) ;
3737
3838 it ( "Should have had a recent timestamp" , function ( ) {
39- if ( ! BOOMR . window . ReportingObserver ) {
39+ if ( ! window . willReportDeprecation ) {
4040 return this . skip ( ) ;
4141 }
4242 var b = tf . lastBeacon ( ) ;
@@ -45,7 +45,7 @@ describe("e2e/14-errors/45-reporting-api", function() {
4545 } ) ;
4646
4747 it ( "Should have fileName of the page (if set)" , function ( ) {
48- if ( ! BOOMR . window . ReportingObserver ) {
48+ if ( ! window . willReportDeprecation ) {
4949 return this . skip ( ) ;
5050 }
5151 var b = tf . lastBeacon ( ) ;
@@ -60,7 +60,7 @@ describe("e2e/14-errors/45-reporting-api", function() {
6060 } ) ;
6161
6262 it ( "Should have functionName of 'errorFunction'" , function ( ) {
63- if ( ! BOOMR . window . ReportingObserver ) {
63+ if ( ! window . willReportDeprecation ) {
6464 return this . skip ( ) ;
6565 }
6666 var b = tf . lastBeacon ( ) ;
@@ -75,7 +75,7 @@ describe("e2e/14-errors/45-reporting-api", function() {
7575 } ) ;
7676
7777 it ( "Should have correct message" , function ( ) {
78- if ( ! BOOMR . window . ReportingObserver ) {
78+ if ( ! window . willReportDeprecation ) {
7979 return this . skip ( ) ;
8080 }
8181 var b = tf . lastBeacon ( ) ;
@@ -84,7 +84,7 @@ describe("e2e/14-errors/45-reporting-api", function() {
8484 } ) ;
8585
8686 it ( "Should have source = APP" , function ( ) {
87- if ( ! BOOMR . window . ReportingObserver ) {
87+ if ( ! window . willReportDeprecation ) {
8888 return this . skip ( ) ;
8989 }
9090 var b = tf . lastBeacon ( ) ;
@@ -93,7 +93,7 @@ describe("e2e/14-errors/45-reporting-api", function() {
9393 } ) ;
9494
9595 it ( "Should have stack with the stack" , function ( ) {
96- if ( ! BOOMR . window . ReportingObserver ) {
96+ if ( ! window . willReportDeprecation ) {
9797 return this . skip ( ) ;
9898 }
9999 var b = tf . lastBeacon ( ) ;
@@ -103,7 +103,7 @@ describe("e2e/14-errors/45-reporting-api", function() {
103103 } ) ;
104104
105105 it ( "Should have type = 'Error'" , function ( ) {
106- if ( ! BOOMR . window . ReportingObserver ) {
106+ if ( ! window . willReportDeprecation ) {
107107 return this . skip ( ) ;
108108 }
109109 var b = tf . lastBeacon ( ) ;
@@ -112,7 +112,7 @@ describe("e2e/14-errors/45-reporting-api", function() {
112112 } ) ;
113113
114114 it ( "Should have via = REPORTING" , function ( ) {
115- if ( ! BOOMR . window . ReportingObserver ) {
115+ if ( ! window . willReportDeprecation ) {
116116 return this . skip ( ) ;
117117 }
118118 var b = tf . lastBeacon ( ) ;
@@ -121,7 +121,7 @@ describe("e2e/14-errors/45-reporting-api", function() {
121121 } ) ;
122122
123123 it ( "Should have columNumber to be a number if specified" , function ( ) {
124- if ( ! BOOMR . window . ReportingObserver ) {
124+ if ( ! window . willReportDeprecation ) {
125125 return this . skip ( ) ;
126126 }
127127 var b = tf . lastBeacon ( ) ;
@@ -135,7 +135,7 @@ describe("e2e/14-errors/45-reporting-api", function() {
135135 } ) ;
136136
137137 it ( "Should have lineNumber ~ " + ( HEADER_LINES + 7 ) , function ( ) {
138- if ( ! BOOMR . window . ReportingObserver ) {
138+ if ( ! window . willReportDeprecation ) {
139139 return this . skip ( ) ;
140140 }
141141 var b = tf . lastBeacon ( ) ;
0 commit comments