Skip to content

Commit 64df409

Browse files
Adds unit tests, e2e tests, manual tests, and travis.yml
- Move /demo/ to /test/manual/ as these are manual test files - gulp test-e2e will use protractor + the /test/manual files to automate manual tests - gulp test-unit will run unit tests - gulp tdd will run the unit tests while watching all files for changes (repeat tests) - Fix delete-link change color when sort disabled, add classes for validation help text - Add classes to inputs & links - jshint updates - Add unit test for provider - Update README.md - Add validation tests, add validate.sh and travis.yml - travis will run: - gulp test-unit - ./validate.sh to validate the build - add _tmp-css task for validate.sh to validate build - update travis.yml to use xvfb for firefox support
1 parent 5bca008 commit 64df409

Some content is hidden

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

66 files changed

+3219
-489
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.DS_Store
2+
.tmp
23
/node_modules
34
/bower_components
4-

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: node_js
2+
node_js:
3+
- "4"
4+
before_install:
5+
- "export DISPLAY=:99.0"
6+
- "sh -e /etc/init.d/xvfb start"
7+
- sleep 3 # give xvfb some time to start
8+
before_script:
9+
- npm install -g gulp
10+
- npm install -g bower
11+
- npm install
12+
- bower install
13+
script:
14+
- gulp validate-dist
15+
- gulp test-unit

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ A simple UI for editing key-value pairs
77

88
This key-value-editor is based on the bootstrap based framework [Patternfly](https://www.patternfly.org/#_). Patternfly or a similar boostrap based framework should be present for proper layout rendering. Icons are from font awesome. Alternative layouts with a different framework could be achieved by replacing the `key-value-editor.html` template which is pre-compiled into `compiled-templates.js` for convenience.
99

10+
## Tests
11+
12+
See the [Test Readme.md file](test/README.md) for details about running tests.
13+
1014
## Basic usage:
1115

1216
Add the `key-value-editor` in html and provide it some data via the entries attribute:

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-key-value-editor",
33
"description": "A simple UI for editing key-value pairs",
4-
"version": "2.7.4",
4+
"version": "2.8.0",
55
"main": [
66
"dist/angular-key-value-editor.css",
77
"dist/angular-key-value-editor.js",

demo/validators.html

Lines changed: 0 additions & 251 deletions
This file was deleted.

dist/angular-key-value-editor.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@
1818
padding: 6px;
1919
vertical-align: middle;
2020
}
21-
.key-value-editor .as-sortable-item-delete {
21+
.key-value-editor .as-sortable-item-delete,
22+
.key-value-editor .as-sortable-DISABLED-item-delete {
2223
color: #333;
2324
}
2425
.key-value-editor .as-sortable-item-delete:hover,
26+
.key-value-editor .as-sortable-DISABLED-item-delete:hover,
2527
.key-value-editor .as-sortable-item-delete:focus,
26-
.key-value-editor .as-sortable-item-delete:active {
28+
.key-value-editor .as-sortable-DISABLED-item-delete:focus,
29+
.key-value-editor .as-sortable-item-delete:active,
30+
.key-value-editor .as-sortable-DISABLED-item-delete:active {
2731
text-decoration: none;
2832
}
2933
.key-value-editor .as-sortable-item-handle {

0 commit comments

Comments
 (0)