GithubHelp home page GithubHelp logo

isabella232 / karma-ie-launcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from karma-runner/karma-ie-launcher

0.0 0.0 0.0 47 KB

A Karma plugin. Launcher for Internet Explorer.

License: MIT License

JavaScript 100.00%

karma-ie-launcher's Introduction

karma-ie-launcher

js-standard-style npm version npm downloads

Build Status Dependency Status devDependency Status

Launcher for Internet Explorer.

Installation

The easiest way is to keep karma-ie-launcher as a devDependency, by running

npm install karma-ie-launcher --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    browsers: ['IE']
  });
};

You can pass list of browsers as a CLI argument too:

karma start --browsers IE

You can run IE in emulation mode by setting the 'x-ua-compatible' option:

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

See Specifying legacy document modes on MSDN.

Running IE in "No add-ons mode"

Please note that since v0.2.0 default behaviour of launching Internet Explorer has changed. Now it runs using system-wide configuration (uses same settings as if you would run it manually) but prior to v0.2.0 it was spawned with -extoff flag set explicitly, so all extensions were disabled.

If you expect the same behaviour as it was before v0.2.0, Karma configuration should be slightly changed:

  • create new customLauncher configuration (IE_no_addons is used in an example below) with custom flags (in our case it is -extoff only)
  • browser IE in browsers field should be replaced with your new custom launcher name
  browsers: ['IE_no_addons'],
  customLaunchers: {
    IE_no_addons: {
      base:  'IE',
      flags: ['-extoff']
    }
  }

See IE Command-Line Options on MSDN.


For more information on Karma see the homepage.

karma-ie-launcher's People

Contributors

4kochi avatar dignifiedquire avatar dizel3d avatar johnjbarton avatar nickmccurdy avatar sylvain-hamel avatar v12 avatar vojtajina avatar zzo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.