Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Async tests on IE8/9 disconnects browser due to shared activity timeout #33

@nehz

Description

@nehz

There seems to be a weird issue where IE8/9 executes async tests as one single test.

For example, the karma ui will go from 0/10 tests executed to 10/10 executed where as in IE10/11 it will execute them one by one. This is an issue if some individual tests takes long as each test is added together towards the browserNoActivityTimeout limit, which will cause karma to disconnect.

Some code to illustrate this:

describe('test', function() {
  function test(done) {
    setTimeout(function() { done(); }, 1000);
  }

  for(var i = 0; i < 11; i++) {
    it('should pass', test);
  }
});

using

customLaunchers: {
  IE8: {
    base: 'IE',
    'x-ua-compatible': 'IE=EmulateIE8'
  },
  IE9: {
    base: 'IE',
    'x-ua-compatible': 'IE=EmulateIE9'
  },
  IE10: {
    base: 'IE',
    'x-ua-compatible': 'IE=EmulateIE10'
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions