-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #575 from GuillaumeGomez/validator
Command input validator - part 16
- Loading branch information
Showing
81 changed files
with
129 additions
and
193 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,3 @@ await page.evaluate(e => { | |
e.setAttribute(\"\\\"b\",\"c\"); | ||
}, parseSetAttributeElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -5,5 +5,3 @@ await page.evaluate(e => { | |
e.setAttribute(\"b\",\"\\\"c\"); | ||
}, parseSetAttributeElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -5,5 +5,3 @@ await page.evaluate(e => { | |
e.setAttribute(\"b\",\"c\"); | ||
}, parseSetAttributeElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -6,5 +6,3 @@ await page.evaluate(e => { | |
e.setAttribute(\"d\",\"e\"); | ||
}, parseSetAttributeElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -5,5 +5,3 @@ await page.evaluate(e => { | |
e.removeAttribute(\"b\"); | ||
}, parseSetAttributeElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -6,5 +6,3 @@ await page.evaluate(e => { | |
e.setAttribute(\"a\",\"b\"); | ||
}, parseSetAttributeElem);""", | ||
] | ||
warnings = [ | ||
] |
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 +1 @@ | ||
error = """only string, number and ident types are allowed as value, found `{\"a\": \"x\"}` (a JSON dict)""" | ||
error = """type \"json\" (`{\"a\": \"x\"}`) is not allowed as value in this JSON dict, allowed types are: [`ident`, `number`, `string`] (second element of the tuple)""" |
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 +1 @@ | ||
error = """only string, number and ident types are allowed as value, found `[\"a\"]` (an array)""" | ||
error = """type \"array\" (`[\"a\"]`) is not allowed as value in this JSON dict, allowed types are: [`ident`, `number`, `string`] (second element of the tuple)""" |
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 +1 @@ | ||
error = """Forbidden `ident` used (`a`). Allowed idents: [null]""" | ||
error = """unexpected ident `a`. Allowed idents are: [`null`] (second element of the tuple)""" |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 3""" | ||
error = """expected a tuple of 2 elements, found 3""" |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 3""" | ||
error = """expected a tuple of 2 elements, found 3""" |
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 +1 @@ | ||
error = """Forbidden `ident` used (`id`). Allowed idents: [null]""" | ||
error = """unexpected ident `id`. Allowed idents are: [`null`] (second element of the tuple)""" |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 1""" | ||
error = """expected a tuple of 2 elements, found 1""" |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 1""" | ||
error = """expected a tuple of 2 elements, found 1""" |
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 +1 @@ | ||
error = """expected JSON as second argument, found `\"b\"` (a string)""" | ||
error = """expected second element of the tuple to be a JSON dict, found `\"b\"` (a string)""" |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 1""" | ||
error = """expected a tuple of 2 elements, found 1""" |
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 +1 @@ | ||
error = """expected JSON as second argument, found `\"b\"` (a string)""" | ||
error = """expected second element of the tuple to be a JSON dict, found `\"b\"` (a string)""" |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 4""" | ||
error = """expected a tuple of 2 elements, found 4""" |
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 +1 @@ | ||
error = """empty name of properties (\"\" or '') are not allowed""" | ||
error = """empty keys are not allowed in JSON dict (second element of the tuple)""" |
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 |
---|---|---|
|
@@ -6,5 +6,3 @@ await page.evaluate(e => { | |
e.setAttribute(\"b\",\"c\"); | ||
}, parseSetAttributeElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -6,5 +6,3 @@ await page.evaluate(e => { | |
e.setAttribute(\"b\",\"c\\n\"); | ||
}, parseSetAttributeElem);""", | ||
] | ||
warnings = [ | ||
] |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 3""" | ||
error = """expected a tuple of 2 elements, found 3""" |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 3""" | ||
error = """expected a tuple of 2 elements, found 3""" |
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 |
---|---|---|
|
@@ -6,5 +6,3 @@ await page.evaluate(e => { | |
e.setAttribute(\"b\",\"c\"); | ||
}, parseSetAttributeElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -5,5 +5,3 @@ await page.evaluate(e => { | |
e.style[\"\\\"b\"] = \"c\"; | ||
}, parseSetCssElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -5,5 +5,3 @@ await page.evaluate(e => { | |
e.style[\"b\"] = \"\\\"c\"; | ||
}, parseSetCssElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -5,5 +5,3 @@ await page.evaluate(e => { | |
e.style[\"b\"] = \"c\"; | ||
}, parseSetCssElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -6,5 +6,3 @@ await page.evaluate(e => { | |
e.style[\"d\"] = \"e\"; | ||
}, parseSetCssElem);""", | ||
] | ||
warnings = [ | ||
] |
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 +1 @@ | ||
error = """only string and number types are allowed as value, found `null` (an ident)""" | ||
error = """type \"ident\" (`null`) is not allowed as value in this JSON dict, allowed types are: [`number`, `string`] (second element of the tuple)""" |
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 +1 @@ | ||
error = """only string and number types are allowed as value, found `null` (an ident)""" | ||
error = """type \"ident\" (`null`) is not allowed as value in this JSON dict, allowed types are: [`number`, `string`] (second element of the tuple)""" |
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 +1 @@ | ||
error = """only string and number types are allowed as value, found `{\"a\": \"x\"}` (a JSON dict)""" | ||
error = """type \"json\" (`{\"a\": \"x\"}`) is not allowed as value in this JSON dict, allowed types are: [`number`, `string`] (second element of the tuple)""" |
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 +1 @@ | ||
error = """only string and number types are allowed as value, found `[\"a\"]` (an array)""" | ||
error = """type \"array\" (`[\"a\"]`) is not allowed as value in this JSON dict, allowed types are: [`number`, `string`] (second element of the tuple)""" |
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 +1 @@ | ||
error = """only string and number types are allowed as value, found `a` (an ident)""" | ||
error = """type \"ident\" (`a`) is not allowed as value in this JSON dict, allowed types are: [`number`, `string`] (second element of the tuple)""" |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 3""" | ||
error = """expected a tuple of 2 elements, found 3""" |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 3""" | ||
error = """expected a tuple of 2 elements, found 3""" |
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 +1 @@ | ||
error = """only string and number types are allowed as value, found `id` (an ident)""" | ||
error = """type \"ident\" (`id`) is not allowed as value in this JSON dict, allowed types are: [`number`, `string`] (second element of the tuple)""" |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 1""" | ||
error = """expected a tuple of 2 elements, found 1""" |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 1""" | ||
error = """expected a tuple of 2 elements, found 1""" |
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 +1 @@ | ||
error = """expected JSON as second argument, found `\"b\"` (a string)""" | ||
error = """expected second element of the tuple to be a JSON dict, found `\"b\"` (a string)""" |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 1""" | ||
error = """expected a tuple of 2 elements, found 1""" |
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 +1 @@ | ||
error = """expected JSON as second argument, found `\"b\"` (a string)""" | ||
error = """expected second element of the tuple to be a JSON dict, found `\"b\"` (a string)""" |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 4""" | ||
error = """expected a tuple of 2 elements, found 4""" |
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 +1 @@ | ||
error = """empty name of properties (\"\" or '') are not allowed""" | ||
error = """empty keys are not allowed in JSON dict (second element of the tuple)""" |
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 |
---|---|---|
|
@@ -6,5 +6,3 @@ await page.evaluate(e => { | |
e.style[\"b\"] = \"c\"; | ||
}, parseSetCssElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -6,5 +6,3 @@ await page.evaluate(e => { | |
e.style[\"b\"] = \"c\\n\"; | ||
}, parseSetCssElem);""", | ||
] | ||
warnings = [ | ||
] |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 3""" | ||
error = """expected a tuple of 2 elements, found 3""" |
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 +1 @@ | ||
error = """expected a tuple of two elements, found 3""" | ||
error = """expected a tuple of 2 elements, found 3""" |
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 |
---|---|---|
|
@@ -6,5 +6,3 @@ await page.evaluate(e => { | |
e.style[\"b\"] = \"c\"; | ||
}, parseSetCssElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -5,5 +5,3 @@ await page.evaluate(e => { | |
e[\"\\\"b\"] = \"c\"; | ||
}, parseSetPropertyElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -5,5 +5,3 @@ await page.evaluate(e => { | |
e[\"b\"] = \"\\\"c\"; | ||
}, parseSetPropertyElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -5,5 +5,3 @@ await page.evaluate(e => { | |
e[\"b\"] = \"c\"; | ||
}, parseSetPropertyElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -6,5 +6,3 @@ await page.evaluate(e => { | |
e[\"d\"] = \"e\"; | ||
}, parseSetPropertyElem);""", | ||
] | ||
warnings = [ | ||
] |
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 |
---|---|---|
|
@@ -5,5 +5,3 @@ await page.evaluate(e => { | |
delete e[\"b\"]; | ||
}, parseSetPropertyElem);""", | ||
] | ||
warnings = [ | ||
] |
Oops, something went wrong.