Skip to content

Commit 3734567

Browse files
authored
Merge pull request #158 from nut-tree/feature/5/window_support
Feature/5/window support
2 parents b7b1416 + 316de44 commit 3734567

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+33317
-578
lines changed

.build/build.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,5 @@ echo "Entering working directory $targetDir"
2121
cd $targetDir
2222
echo "Installing node version $nodeVersion"
2323
nvm install $nodeVersion
24-
echo "npm ci"
25-
npm ci
26-
echo "npm run compile"
27-
npm run compile
2824
echo "npm run coverage"
29-
E2E_TEST=1 npm run coverage
25+
E2E_TEST=1 npm run coverage -- --coverageDirectory=coverage/e2e

.build/run_linux.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,14 @@ set -e
33

44
echo $PWD
55

6+
npm ci
7+
echo "npm run compile"
8+
npm run compile
9+
echo "init e2e test subpackage"
10+
npm --prefix e2e/tests ci
11+
echo "npm run coverage"
12+
npm run coverage:clean
13+
npm run coverage -- --coverageDirectory=coverage/unit
614
docker exec nut-ci bash -c "bash $PWD/.build/build.sh ${PWD} ${TRAVIS_NODE_VERSION}"
15+
npm run coverage:merge
16+
npm run coverage:merge-report

.build/run_osx.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ echo $PWD
55

66
npm ci
77
npm run compile
8+
npm --prefix e2e/tests ci
89
npm test

.build/setup_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubun
66
sudo apt-get update
77
sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
88
docker pull s1hofmann/nut-ci:latest
9-
docker run -it -d --name nut-ci --user $(id -u):$(id -g) -v ${PWD}:${PWD}:rw s1hofmann/nut-ci:latest bash
9+
docker run -it -d --name nut-ci --shm-size 4gb --user $(id -u):$(id -g) -v ${PWD}:${PWD}:rw s1hofmann/nut-ci:latest bash

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ addons:
2626

2727
services:
2828
- docker
29+
- xvfb
2930

3031
install:
3132
- "bash ./.build/setup_${TRAVIS_OS_NAME}.sh"

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,12 @@ It's work in progress and will undergo constant modification.
5757
- [x] Configurable movement speed
5858
- [x] Mouse drag
5959

60-
## Process
60+
## Window
6161

62-
- [ ] Retrieve the region of a process window
62+
- [x] List all windows
63+
- [x] Retrieve active window
64+
- [x] Retrieve window title
65+
- [x] Retrieve window size and position
6366

6467
## Screen
6568

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ install:
2323
- cd c:\projects\nut
2424
- npm ci
2525
- npm run compile
26+
- npm --prefix e2e/tests ci
2627

2728
build: off
2829

docs/assets/js/search.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/classes/assert.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ <h3>constructor</h3>
102102
<li class="tsd-description">
103103
<aside class="tsd-sources">
104104
<ul>
105-
<li>Defined in <a href="https://github.com/nut-tree/nut.js/blob/4e1f04e/lib/assert.class.ts#L5">assert.class.ts:5</a></li>
105+
<li>Defined in <a href="https://github.com/nut-tree/nut.js/blob/e2352ac/lib/assert.class.ts#L5">assert.class.ts:5</a></li>
106106
</ul>
107107
</aside>
108108
<h4 class="tsd-parameters-title">Parameters</h4>
@@ -128,7 +128,7 @@ <h3>is<wbr>Visible</h3>
128128
<li class="tsd-description">
129129
<aside class="tsd-sources">
130130
<ul>
131-
<li>Defined in <a href="https://github.com/nut-tree/nut.js/blob/4e1f04e/lib/assert.class.ts#L8">assert.class.ts:8</a></li>
131+
<li>Defined in <a href="https://github.com/nut-tree/nut.js/blob/e2352ac/lib/assert.class.ts#L8">assert.class.ts:8</a></li>
132132
</ul>
133133
</aside>
134134
<h4 class="tsd-parameters-title">Parameters</h4>
@@ -157,7 +157,7 @@ <h3>not<wbr>Visible</h3>
157157
<li class="tsd-description">
158158
<aside class="tsd-sources">
159159
<ul>
160-
<li>Defined in <a href="https://github.com/nut-tree/nut.js/blob/4e1f04e/lib/assert.class.ts#L25">assert.class.ts:25</a></li>
160+
<li>Defined in <a href="https://github.com/nut-tree/nut.js/blob/e2352ac/lib/assert.class.ts#L25">assert.class.ts:25</a></li>
161161
</ul>
162162
</aside>
163163
<h4 class="tsd-parameters-title">Parameters</h4>

docs/classes/bresenham.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> compute</h3>
9595
<li class="tsd-description">
9696
<aside class="tsd-sources">
9797
<ul>
98-
<li>Defined in <a href="https://github.com/nut-tree/nut.js/blob/4e1f04e/lib/util/bresenham.class.ts#L4">util/bresenham.class.ts:4</a></li>
98+
<li>Defined in <a href="https://github.com/nut-tree/nut.js/blob/e2352ac/lib/util/bresenham.class.ts#L4">util/bresenham.class.ts:4</a></li>
9999
</ul>
100100
</aside>
101101
<h4 class="tsd-parameters-title">Parameters</h4>

0 commit comments

Comments
 (0)