       if not isWindow
         container[0].style.height = '1000px'
       else
-        fakeWindow[0].resizeTo(1000, 1000)
         container = fakeWindow
 
       scope = $rootScope.$new(true)

      if not isWindow
        container[0].style.height = '1000px'
      else
        fakeWindow[0].resizeTo(1000, 1000)
        container = fakeWindow

      scope = $rootScope.$new(true)

      if not isWindow
        container[0].style.height = '1000px'
      else
        container = fakeWindow

      scope = $rootScope.$new(true)
