-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(unit-tests): update 3.0 tests to run
additionally ensure the JS tests run and pass. standardised white space from mixed tabs and spaces to spaces in test suite.
- Loading branch information
Showing
49 changed files
with
432 additions
and
420 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"$standard": "http://www.iptc.org/std/ninjs/ninjs-schema_1.3.json", | ||
"uri": "001-schema-bad" | ||
"$standard": "http://www.iptc.org/std/ninjs/ninjs-schema_1.3.json", | ||
"uri": "001-schema-bad" | ||
} |
14 changes: 7 additions & 7 deletions
14
validation/test_suite/1.3/should_fail/002_headline_nonascii.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"$standard": { | ||
"name": "ninjs", | ||
"version": "1.3", | ||
"schema": "http://www.iptc.org/std/ninjs/ninjs-schema_1.3.json" | ||
}, | ||
"uri": "004-headlines-test", | ||
"headline_ééé": "Currently headline extensions must be [a-zA-Z0-9_]+ only" | ||
"$standard": { | ||
"name": "ninjs", | ||
"version": "1.3", | ||
"schema": "http://www.iptc.org/std/ninjs/ninjs-schema_1.3.json" | ||
}, | ||
"uri": "004-headlines-test", | ||
"headline_ééé": "Currently headline extensions must be [a-zA-Z0-9_]+ only" | ||
} |
14 changes: 7 additions & 7 deletions
14
validation/test_suite/1.3/should_fail/003_headline_blank_extension.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"$standard": { | ||
"name": "ninjs", | ||
"version": "1.3", | ||
"schema": "http://www.iptc.org/std/ninjs/ninjs-schema_1.3.json" | ||
}, | ||
"uri": "004-headlines-test", | ||
"headline_": "If _ is given, an extension must be given too" | ||
"$standard": { | ||
"name": "ninjs", | ||
"version": "1.3", | ||
"schema": "http://www.iptc.org/std/ninjs/ninjs-schema_1.3.json" | ||
}, | ||
"uri": "004-headlines-test", | ||
"headline_": "If _ is given, an extension must be given too" | ||
} |
12 changes: 6 additions & 6 deletions
12
validation/test_suite/1.3/should_fail/004_headline_dash.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"$standard": { | ||
"name": "ninjs", | ||
"version": "1.3", | ||
"schema": "http://www.iptc.org/std/ninjs/ninjs-schema_1.3.json" | ||
}, | ||
"uri": "004-headline-dash", | ||
"$standard": { | ||
"name": "ninjs", | ||
"version": "1.3", | ||
"schema": "http://www.iptc.org/std/ninjs/ninjs-schema_1.3.json" | ||
}, | ||
"uri": "004-headline-dash", | ||
"headline-with-dash-ééé": "A headline extension cannot start with a dash" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"$standard": { | ||
"name": "ninjs", | ||
"version": "1.3", | ||
"schema": "http://www.iptc.org/std/ninjs/ninjs-schema_1.3.json" | ||
}, | ||
"uri": "005_bad_altids", | ||
"altids": "a string isn't an object so this will fail" | ||
"$standard": { | ||
"name": "ninjs", | ||
"version": "1.3", | ||
"schema": "http://www.iptc.org/std/ninjs/ninjs-schema_1.3.json" | ||
}, | ||
"uri": "005_bad_altids", | ||
"altids": "a string isn't an object so this will fail" | ||
} |
46 changes: 23 additions & 23 deletions
46
validation/test_suite/1.3/should_pass/001_ninjs_example.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"$standard": { | ||
"name": "ninjs", | ||
"version": "1.3", | ||
"schema": "http://www.iptc.org/std/ninjs/ninjs-schema_1.3.json" | ||
}, | ||
"uri": "002-schema" | ||
"$standard": { | ||
"name": "ninjs", | ||
"version": "1.3", | ||
"schema": "http://www.iptc.org/std/ninjs/ninjs-schema_1.3.json" | ||
}, | ||
"uri": "002-schema" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"$standard": { | ||
"$standard": { | ||
"schema": "http://www.iptc.org/std/ninjs/ninjs-schema_1.3.json" | ||
}, | ||
"uri": "003-schema-only" | ||
"uri": "003-schema-only" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"$standard": { | ||
"name": "ninjs", | ||
"version": "1.3", | ||
"schema": "http://www.iptc.org/std/ninjs/ninjs-schema_1.3.json" | ||
}, | ||
"uri": "004-headlines-test", | ||
"headline": "Test of three new properties", | ||
"headline_test_text": "Extensible headline test", | ||
"headline_anystring": "We do not specify the string after headline_", | ||
"headline______": "This is also valid", | ||
"headline_1_2_3_4_5_": "Numbers are also fine" | ||
"$standard": { | ||
"name": "ninjs", | ||
"version": "1.3", | ||
"schema": "http://www.iptc.org/std/ninjs/ninjs-schema_1.3.json" | ||
}, | ||
"uri": "004-headlines-test", | ||
"headline": "Test of three new properties", | ||
"headline_test_text": "Extensible headline test", | ||
"headline_anystring": "We do not specify the string after headline_", | ||
"headline______": "This is also valid", | ||
"headline_1_2_3_4_5_": "Numbers are also fine" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.