karma-phantomjs2-launcher

WebJar for karma-phantomjs2-launcher

Лицензия

Лицензия

MIT
Категории

Категории

Ant Компиляция и сборка
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

karma-phantomjs2-launcher
Последняя версия

Последняя версия

0.3.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

karma-phantomjs2-launcher
WebJar for karma-phantomjs2-launcher
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/gskachkov/karma-phantomjs2-launcher

Скачать karma-phantomjs2-launcher

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/karma-phantomjs2-launcher/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>karma-phantomjs2-launcher</artifactId>
    <version>0.3.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/karma-phantomjs2-launcher/
implementation 'org.webjars.npm:karma-phantomjs2-launcher:0.3.2'
// https://jarcasting.com/artifacts/org.webjars.npm/karma-phantomjs2-launcher/
implementation ("org.webjars.npm:karma-phantomjs2-launcher:0.3.2")
'org.webjars.npm:karma-phantomjs2-launcher:jar:0.3.2'
<dependency org="org.webjars.npm" name="karma-phantomjs2-launcher" rev="0.3.2">
  <artifact name="karma-phantomjs2-launcher" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='karma-phantomjs2-launcher', version='0.3.2')
)
libraryDependencies += "org.webjars.npm" % "karma-phantomjs2-launcher" % "0.3.2"
[org.webjars.npm/karma-phantomjs2-launcher "0.3.2"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : lodash jar [3.9.3,3.10)
org.webjars.npm : phantomjs2-ext jar [0.1.0,0.2)

Модули Проекта

Данный проект не имеет модулей.

karma-phantomjs2-launcher

karma-phantomjs2-launcher is depricated, use karma-phantomjs-launcher@1.0.0 instead

Launcher for [PhantomJS 2]. As for now it is temporary solution, until default karma-phantomjs-launcher is not support of the PhantomJS 2. PhantomJS 2 is not stable PhantomJS-2 Loading PhantomJS from custom URL can be done by setting the PHANTOMJS2_DOWNLOAD_URL environment variable.

Installation

The easiest way is to keep karma-phantomjs2-launcher as a devDependency in your package.json, by running

$ npm install --save-dev karma-phantomjs2-launcher

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    browsers: ['PhantomJS2', 'PhantomJS2_custom'],

    // you can define custom flags
    customLaunchers: {
      'PhantomJS2_custom': {
        base: 'PhantomJS2',
        options: {
          windowName: 'my-window',
          settings: {
            webSecurityEnabled: false
          },
        },
        flags: ['--load-images=true'],
        debug: true
      }
    },

    phantomjsLauncher: {
      // Have phantomjs exit if a ResourceError is encountered (useful if karma exits without killing phantom)
      exitOnResourceError: true
    }
  })
}

The options attribute allows you to initialize properties on the phantomjs page object, so

options: {
  windowName: 'my-window',
  settings: {
    webSecurityEnabled: false
  },
}

is equivalent to:

var webPage = require('webpage')
var page = webPage.create()

page.windowName = 'my-window'
page.settings.webSecurityEnabled = false

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

$ karma start --browsers PhantomJS2_custom

For more information on Karma see the homepage.

Версии библиотеки

Версия
0.3.2