@@ -941,15 +941,13 @@ describes.repeated(
941941 } ) ;
942942
943943 it ( '"amp-script:" uri should skip rendering and emit an error' , ( ) => {
944- toggleExperiment ( win , 'protocol-adapters' , true ) ;
945944 list . element . setAttribute ( 'src' , 'amp-script:fetchData' ) ;
946945
947946 listMock . expects ( 'scheduleRender_' ) . never ( ) ;
948947
949948 const errorMsg = / c a n n o t b e u s e d i n S S R m o d e / ;
950949 expectAsyncConsoleError ( errorMsg ) ;
951950 expect ( list . layoutCallback ( ) ) . eventually . rejectedWith ( errorMsg ) ;
952- toggleExperiment ( win , 'protocol-adapters' , false ) ;
953951 } ) ;
954952
955953 it ( 'Bound [src] should skip rendering and emit an error' , async ( ) => {
@@ -1013,14 +1011,7 @@ describes.repeated(
10131011 list = createAmpList ( element ) ;
10141012 } ) ;
10151013
1016- it ( 'should throw an error if used without the experiment enabled' , async ( ) => {
1017- const errorMsg = / I n v a l i d v a l u e : a m p - s c r i p t : e x a m p l e .f e t c h D a t a / ;
1018- expectAsyncConsoleError ( errorMsg ) ;
1019- expect ( list . layoutCallback ( ) ) . to . eventually . throw ( errorMsg ) ;
1020- } ) ;
1021-
10221014 it ( 'should throw an error if given an invalid format' , async ( ) => {
1023- toggleExperiment ( win , 'protocol-adapters' , true ) ;
10241015 const errorMsg = / U R I s m u s t b e o f t h e f o r m a t / ;
10251016
10261017 element . setAttribute ( 'src' , 'amp-script:fetchData' ) ;
@@ -1037,7 +1028,6 @@ describes.repeated(
10371028 } ) ;
10381029
10391030 it ( 'should throw if specified amp-script does not exist' , ( ) => {
1040- toggleExperiment ( win , 'protocol-adapters' , true ) ;
10411031 element . setAttribute ( 'src' , 'amp-script:doesnotexist.fn' ) ;
10421032
10431033 const errorMsg = / c o u l d n o t f i n d < a m p - s c r i p t > w i t h / ;
@@ -1046,7 +1036,6 @@ describes.repeated(
10461036 } ) ;
10471037
10481038 it ( 'should fail if function call rejects' , async ( ) => {
1049- toggleExperiment ( win , 'protocol-adapters' , true ) ;
10501039 ampScriptEl . getImpl = ( ) =>
10511040 Promise . resolve ( {
10521041 callFunction : ( ) =>
@@ -1062,7 +1051,6 @@ describes.repeated(
10621051 it ( 'should render non-array if single-item is set' , async ( ) => {
10631052 const callFunctionResult = { 'items' : { title : 'Title' } } ;
10641053 element . setAttribute ( 'single-item' , 'true' ) ;
1065- toggleExperiment ( win , 'protocol-adapters' , true ) ;
10661054 ampScriptEl . getImpl = ( ) =>
10671055 Promise . resolve ( {
10681056 callFunction ( fnId ) {
@@ -1087,7 +1075,6 @@ describes.repeated(
10871075 } ) ;
10881076
10891077 it ( 'should render a list from AmpScriptService provided data' , async ( ) => {
1090- toggleExperiment ( win , 'protocol-adapters' , true ) ;
10911078 ampScriptEl . getImpl = ( ) =>
10921079 Promise . resolve ( {
10931080 callFunction ( fnId ) {
0 commit comments