text: /**
   * Created by marija on 22.02.18.
   */
  
  
  
  var p1 = Promise.resolve(18);
  var p2 = Promise.reject(17);
  
  
  
  
  
  
  
  
  var callbackArguments = [];
  var argument1 = function (err) {
   callbackArguments.push(arguments) 
  
      expect(err).to.exist;
      done();
  };
  var argument2 = {"0":1.6545453634612632e+308,"82":59,"157":8.285222027030761e+307,"242":"","m":"B","":1.1096154011475324e+308,"1.2854732441685844e+308":8.319315618409438e+307};
  var argument3 = p1;
  var argument4 = function (results) {
   callbackArguments.push(arguments) 
  
      try {
          assertOccurrences(results, [
              {
                  start: 0,
                  end: 1
              },
              {
                  start: 22,
                  end: 23
              }
          ]);
      } finally {
          tearDown();
      }
  };
  var argument5 = p1;
  var argument6 = 460;
  var argument7 = function setWebsiteToInvalid() {
   callbackArguments.push(arguments) 
  
      this.fillSelectors('form.user-profile', { '#user-website': 'notaurl' });
  };
  var argument8 = function (err) {
   callbackArguments.push(arguments) 
  
      expect(err).to.exist;
      done();
  };
  var argument9 = 607;
  var base_0 = p2
  var r_0= undefined
  try {
  r_0 = base_0.catch(argument1,argument2)
  }
  catch(e) {
  r_0= e.message
  }
  var base_1 = p2
  var r_1= undefined
  try {
  r_1 = base_1.then(argument3,argument4,argument5)
  }
  catch(e) {
  r_1= e.message
  }
  var base_2 = r_1
  var r_2= undefined
  try {
  r_2 = base_2.then(argument6,argument7)
  }
  catch(e) {
  r_2= e.message
  }
  var base_3 = p2
  var r_3= undefined
  try {
  r_3 = base_3.catch(argument8,argument9)
  }
  catch(e) {
  r_3= e.message
  }
  function serialize(array){
  return array.map(function(a){
  if (a === null || a == undefined) return a;
  var name = a.constructor.name;
  if (name==='Object' || name=='Boolean'|| name=='Array'||name=='Number'||name=='String')
  return JSON.stringify(a);
  return name;
   });
  }
  setTimeout(function(){
  require("fs").writeFileSync("./experiments/promises/promiseMined/test47.json",JSON.stringify({"baseObjects":serialize([base_0,base_1,base_2,base_3]),"returnObjects":serialize([r_0,r_1,r_2,r_3]),"callbackArgs":callbackArguments}))
  },300)