Skip to content

Commit

Permalink
Prepare 0.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Aug 1, 2017
1 parent c1e2e92 commit 336b774
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
karma-viewport-0.2.0 (2017-08-01)

* Added iframe usage as a prerequisite
* Added iframe for debug context
* Replaced inspect with lightweight version

karma-viewport-0.1.2 (2017-07-08)

* Fixed Karma plugin integration
Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ npm install karma-viewport

### Basic configuration

Add `viewport` to the list of frameworks inside your karma configuration:
Add `viewport` to the list of frameworks inside your Karma configuration:

``` js
// karma.conf.js
Expand Down Expand Up @@ -65,7 +65,7 @@ afterEach(() => {

### Advanced configuration

Named breakpoints can be defined directly inside the karma configuration using
Named breakpoints can be defined directly inside the Karma configuration using
the `viewport` key:

``` js
Expand Down Expand Up @@ -145,9 +145,13 @@ After iteration, `viewport.reset()` is called internally.

### Limitations

This plugin relies on karma executing your test inside an `iframe`, which is the
default. See the section on `client.useIframe` in the [configuration guide][3]
for more information.
This plugin relies on Karma executing all tests inside an `iframe`, which is
enabled by default through `client.useIframe`. See the section in the
[configuration guide][3] for more information.

Furthermore, the `debug` context is patched and wrapped inside an `iframe`, so
debugging works as well. This may interfere with code that relies on running
within the parent window.

[3]: http://karma-runner.github.io/1.0/config/configuration-file.html

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "karma-viewport",
"version": "0.1.2",
"version": "0.2.0",
"description": "Karma viewport resizer",
"keywords": [
"breakpoint",
Expand Down

0 comments on commit 336b774

Please sign in to comment.