JS: Accept raw test output

This commit is contained in:
Asger F
2025-02-06 16:16:21 +01:00
parent 795c1100fc
commit f5911c9e5a
196 changed files with 7002 additions and 4171 deletions

View File

@@ -1,3 +1,12 @@
#select
| AmbiguousIdAttribute.html:4:5:4:14 | id=first | This element has the same id as $@. | AmbiguousIdAttribute.html:5:5:5:14 | id=first | another element |
| AmbiguousIdAttribute_fragment.html:2:7:2:16 | id=first | This element has the same id as $@. | AmbiguousIdAttribute_fragment.html:3:7:3:16 | id=first | another element |
| tst.js:17:22:17:33 | id="theDiff" | This element has the same id as $@. | tst.js:17:46:17:57 | id="theDiff" | another element |
testFailures
| AmbiguousIdAttribute.html:4:5:4:14 | This element has the same id as $@. | Unexpected result: Alert |
| AmbiguousIdAttribute_fragment.html:2:7:2:16 | This element has the same id as $@. | Unexpected result: Alert |
| tst.js:5:67:5:76 | // $ Alert | Missing result: Alert |
| tst.js:7:68:7:77 | // $ Alert | Missing result: Alert |
| tst.js:9:20:9:29 | // $ Alert | Missing result: Alert |
| tst.js:12:60:12:69 | // $ Alert | Missing result: Alert |
| tst.js:19:51:19:60 | // $ Alert | Missing result: Alert |

View File

@@ -1,3 +1,10 @@
#select
| ConflictingAttributes.html:1:4:1:27 | href=http://semmle.com | This attribute has the same name as $@ of the same element, but a different value. | ConflictingAttributes.html:1:29:1:53 | href=https://semmle.com | another attribute |
| tst.js:5:4:5:27 | href="h ... le.com" | This attribute has the same name as $@ of the same element, but a different value. | tst.js:5:29:5:53 | href="h ... le.com" | another attribute |
| tst.js:12:4:12:27 | href="h ... le.com" | This attribute has the same name as $@ of the same element, but a different value. | tst.js:12:29:12:46 | href={someValue()} | another attribute |
testFailures
| ConflictingAttributes.html:1:4:1:27 | This attribute has the same name as $@ of the same element, but a different value. | Unexpected result: Alert |
| tst.js:7:68:7:77 | // $ Alert | Missing result: Alert |
| tst.js:9:20:9:29 | // $ Alert | Missing result: Alert |
| tst.js:17:73:17:82 | // $ Alert | Missing result: Alert |
| tst.js:19:51:19:60 | // $ Alert | Missing result: Alert |

View File

@@ -1,3 +1,10 @@
#select
| DuplicateAttributes.html:1:4:1:28 | href=https://semmle.com | This attribute $@. | DuplicateAttributes.html:1:30:1:54 | href=https://semmle.com | is duplicated later |
| tst.js:7:4:7:28 | href="h ... le.com" | This attribute $@. | tst.js:7:30:7:54 | href="h ... le.com" | is duplicated later |
| tst.js:19:17:19:28 | id="theDiff" | This attribute $@. | tst.js:19:30:19:41 | id="theDiff" | is duplicated later |
testFailures
| DuplicateAttributes.html:1:4:1:28 | This attribute $@. | Unexpected result: Alert |
| tst.js:5:67:5:76 | // $ Alert | Missing result: Alert |
| tst.js:9:20:9:29 | // $ Alert | Missing result: Alert |
| tst.js:12:60:12:69 | // $ Alert | Missing result: Alert |
| tst.js:17:73:17:82 | // $ Alert | Missing result: Alert |

View File

@@ -1,5 +1,16 @@
#select
| AmbiguousIdAttributeGood.html:8:5:8:19 | id=invalid id | The value of the id attribute must not contain any space characters. |
| AmbiguousIdAttributeGood.html:9:5:9:19 | id=invalid id | The value of the id attribute must not contain any space characters. |
| MalformedIdAttribute.html:1:6:1:27 | id=heading important | The value of the id attribute must not contain any space characters. |
| tst.js:9:6:9:10 | id="" | The value of the id attribute must contain at least one character. |
| tst.js:10:6:10:13 | id="a b" | The value of the id attribute must not contain any space characters. |
testFailures
| AmbiguousIdAttributeGood.html:8:5:8:19 | The value of the id attribute must not contain any space characters. | Unexpected result: Alert |
| AmbiguousIdAttributeGood.html:9:5:9:19 | The value of the id attribute must not contain any space characters. | Unexpected result: Alert |
| MalformedIdAttribute.html:1:6:1:27 | The value of the id attribute must not contain any space characters. | Unexpected result: Alert |
| tst.js:5:67:5:76 | // $ Alert | Missing result: Alert |
| tst.js:7:68:7:77 | // $ Alert | Missing result: Alert |
| tst.js:10:6:10:13 | The value of the id attribute must not contain any space characters. | Unexpected result: Alert |
| tst.js:12:60:12:69 | // $ Alert | Missing result: Alert |
| tst.js:17:73:17:82 | // $ Alert | Missing result: Alert |
| tst.js:19:51:19:60 | // $ Alert | Missing result: Alert |

View File

@@ -1,5 +1,12 @@
#select
| tst.js:1:1:1:22 | window. ... ut(";") | Avoid using functions that evaluate strings as code. |
| tst.js:2:1:2:24 | setInte ... te();") | Avoid using functions that evaluate strings as code. |
| tst.js:4:1:4:31 | documen ... i!');") | Avoid using functions that evaluate strings as code. |
| tst.js:5:1:5:30 | window. ... gger;") | Avoid using functions that evaluate strings as code. |
| tst.js:9:3:9:33 | documen ... d = 2") | Avoid using functions that evaluate strings as code. |
testFailures
| tst.js:1:1:1:22 | Avoid using functions that evaluate strings as code. | Unexpected result: Alert |
| tst.js:2:1:2:24 | Avoid using functions that evaluate strings as code. | Unexpected result: Alert |
| tst.js:4:1:4:31 | Avoid using functions that evaluate strings as code. | Unexpected result: Alert |
| tst.js:5:1:5:30 | Avoid using functions that evaluate strings as code. | Unexpected result: Alert |
| tst.js:9:3:9:33 | Avoid using functions that evaluate strings as code. | Unexpected result: Alert |

View File

@@ -1,3 +1,4 @@
#select
| tst.html:23:1:23:61 | <a>...</> | External links without noopener/noreferrer are a potential security risk. |
| tst.html:24:1:24:48 | <a>...</> | External links without noopener/noreferrer are a potential security risk. |
| tst.html:25:1:25:36 | <a>...</> | External links without noopener/noreferrer are a potential security risk. |
@@ -7,3 +8,10 @@
| tst.js:19:1:19:51 | <a data ... ple</a> | External links without noopener/noreferrer are a potential security risk. |
| tst.js:31:12:31:39 | $("<a/> ... X}}" }) | External links without noopener/noreferrer are a potential security risk. |
| tst.js:39:12:39:20 | $("<a/>") | External links without noopener/noreferrer are a potential security risk. |
testFailures
| tst.html:23:1:23:61 | External links without noopener/noreferrer are a potential security risk. | Unexpected result: Alert |
| tst.html:24:1:24:48 | External links without noopener/noreferrer are a potential security risk. | Unexpected result: Alert |
| tst.html:25:1:25:36 | External links without noopener/noreferrer are a potential security risk. | Unexpected result: Alert |
| tst.html:30:1:30:61 | External links without noopener/noreferrer are a potential security risk. | Unexpected result: Alert |
| tst.js:18:1:18:58 | External links without noopener/noreferrer are a potential security risk. | Unexpected result: Alert |
| tst.js:19:1:19:51 | External links without noopener/noreferrer are a potential security risk. | Unexpected result: Alert |