mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
JavaScript: Consolidate DOM tests.
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
| tst.html:3:6:3:30 | href=https://semmle.com |
|
||||
| tst.html:3:32:3:46 | target=_blank |
|
||||
| tst.js:2:22:2:37 | target: "_blank" |
|
||||
| tst.js:3:11:3:66 | $("<a/> ... e.com") |
|
||||
| tst.js:4:3:4:27 | a.attr( ... pener") |
|
||||
| tst.js:5:3:7:4 | a.attr( ... f"\\n }) |
|
||||
| tst.js:8:3:8:29 | a.prop( ... errer") |
|
||||
| tst.js:9:3:11:4 | a.prop( ... f"\\n }) |
|
||||
| tst.js:12:3:12:41 | $.attr( ... errer") |
|
||||
| tst.js:13:3:13:28 | $.prop( ... d", "") |
|
||||
| tst.jsx:4:14:4:38 | href="h ... le.com" |
|
||||
| tst.jsx:4:40:4:48 | rel={rel} |
|
||||
| tst.jsx:4:50:4:64 | {...otherAttrs} |
|
||||
@@ -1,4 +0,0 @@
|
||||
import javascript
|
||||
|
||||
from DOM::AttributeDefinition a
|
||||
select a
|
||||
@@ -0,0 +1,3 @@
|
||||
import javascript
|
||||
|
||||
query predicate test_AttributeDefinition(DOM::AttributeDefinition a) { any() }
|
||||
@@ -1,12 +0,0 @@
|
||||
| tst.html:3:6:3:30 | href=https://semmle.com | href |
|
||||
| tst.html:3:32:3:46 | target=_blank | target |
|
||||
| tst.js:2:22:2:37 | target: "_blank" | target |
|
||||
| tst.js:3:11:3:66 | $("<a/> ... e.com") | href |
|
||||
| tst.js:4:3:4:27 | a.attr( ... pener") | rel |
|
||||
| tst.js:5:3:7:4 | a.attr( ... f"\\n }) | data-bind |
|
||||
| tst.js:8:3:8:29 | a.prop( ... errer") | rel |
|
||||
| tst.js:9:3:11:4 | a.prop( ... f"\\n }) | data-bind |
|
||||
| tst.js:12:3:12:41 | $.attr( ... errer") | rel |
|
||||
| tst.js:13:3:13:28 | $.prop( ... d", "") | data-bind |
|
||||
| tst.jsx:4:14:4:38 | href="h ... le.com" | href |
|
||||
| tst.jsx:4:40:4:48 | rel={rel} | rel |
|
||||
@@ -1,4 +0,0 @@
|
||||
import javascript
|
||||
|
||||
from DOM::AttributeDefinition a
|
||||
select a, a.getName()
|
||||
@@ -0,0 +1,5 @@
|
||||
import javascript
|
||||
|
||||
query predicate test_AttributeDefinition_getName(DOM::AttributeDefinition a, string res) {
|
||||
res = a.getName()
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
| tst.html:3:6:3:30 | href=https://semmle.com | https://semmle.com |
|
||||
| tst.html:3:32:3:46 | target=_blank | _blank |
|
||||
| tst.js:2:22:2:37 | target: "_blank" | _blank |
|
||||
| tst.js:3:11:3:66 | $("<a/> ... e.com") | https://semmle.com |
|
||||
| tst.js:4:3:4:27 | a.attr( ... pener") | noopener |
|
||||
| tst.js:5:3:7:4 | a.attr( ... f"\\n }) | stuff |
|
||||
| tst.js:8:3:8:29 | a.prop( ... errer") | noreferrer |
|
||||
| tst.js:9:3:11:4 | a.prop( ... f"\\n }) | otherstuff |
|
||||
| tst.js:12:3:12:41 | $.attr( ... errer") | noopener noreferrer |
|
||||
| tst.js:13:3:13:28 | $.prop( ... d", "") | |
|
||||
| tst.jsx:4:14:4:38 | href="h ... le.com" | https://semmle.com |
|
||||
@@ -1,4 +0,0 @@
|
||||
import javascript
|
||||
|
||||
from DOM::AttributeDefinition a
|
||||
select a, a.getStringValue()
|
||||
@@ -0,0 +1,5 @@
|
||||
import javascript
|
||||
|
||||
query predicate test_AttributeDefinition_getStringValue(DOM::AttributeDefinition a, string res) {
|
||||
res = a.getStringValue()
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
| tst.js:2:22:2:37 | target: "_blank" | tst.js:2:30:2:37 | "_blank" |
|
||||
| tst.js:3:11:3:66 | $("<a/> ... e.com") | tst.js:3:46:3:65 | "https://semmle.com" |
|
||||
| tst.js:4:3:4:27 | a.attr( ... pener") | tst.js:4:17:4:26 | "noopener" |
|
||||
| tst.js:5:3:7:4 | a.attr( ... f"\\n }) | tst.js:6:18:6:24 | "stuff" |
|
||||
| tst.js:8:3:8:29 | a.prop( ... errer") | tst.js:8:17:8:28 | "noreferrer" |
|
||||
| tst.js:9:3:11:4 | a.prop( ... f"\\n }) | tst.js:10:18:10:29 | "otherstuff" |
|
||||
| tst.js:12:3:12:41 | $.attr( ... errer") | tst.js:12:20:12:40 | "noopen ... ferrer" |
|
||||
| tst.js:13:3:13:28 | $.prop( ... d", "") | tst.js:13:26:13:27 | "" |
|
||||
| tst.jsx:4:14:4:38 | href="h ... le.com" | tst.jsx:4:19:4:38 | "https://semmle.com" |
|
||||
| tst.jsx:4:40:4:48 | rel={rel} | tst.jsx:4:45:4:47 | rel |
|
||||
| tst.jsx:4:50:4:64 | {...otherAttrs} | tst.jsx:4:50:4:64 | ...otherAttrs |
|
||||
@@ -1,4 +0,0 @@
|
||||
import javascript
|
||||
|
||||
from DOM::AttributeDefinition a
|
||||
select a, a.getValueNode()
|
||||
@@ -0,0 +1,5 @@
|
||||
import javascript
|
||||
|
||||
query predicate test_AttributeDefinition_getValueNode(DOM::AttributeDefinition a, DataFlow::Node res) {
|
||||
res = a.getValueNode()
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
| tst.html:1:1:5:7 | <html>...</> | tst.html:1:1:5:7 | <html>...</> |
|
||||
| tst.html:2:1:4:7 | <body>...</> | tst.html:2:1:4:7 | <body>...</> |
|
||||
| tst.html:3:3:3:57 | <a>...</> | tst.html:3:3:3:57 | <a>...</> |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:3:11:3:66 | $("<a/> ... e.com") | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:4:3:4:3 | a | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:4:3:4:27 | a.attr( ... pener") | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:5:3:5:3 | a | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:5:3:7:4 | a.attr( ... f"\\n }) | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:8:3:8:3 | a | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:8:3:8:29 | a.prop( ... errer") | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:9:3:9:3 | a | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:9:3:11:4 | a.prop( ... f"\\n }) | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:12:10:12:10 | a | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:13:10:13:10 | a | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:23:5:23:30 | React.c ... ('div') | tst.js:23:5:23:30 | React.c ... ('div') |
|
||||
| tst.js:24:5:24:55 | React.c ... , null) | tst.js:24:5:24:55 | React.c ... , null) |
|
||||
| tst.js:27:5:27:14 | factory1() | tst.js:27:5:27:14 | factory1() |
|
||||
| tst.js:31:20:31:55 | <div>He ... }</div> | tst.js:31:20:31:55 | <div>He ... }</div> |
|
||||
| tst.js:36:5:36:55 | React.c ... , null) | tst.js:36:5:36:55 | React.c ... , null) |
|
||||
| tst.js:39:5:39:14 | factory2() | tst.js:39:5:39:14 | factory2() |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | tst.jsx:4:11:4:75 | <a href ... mle</a> |
|
||||
| tst.jsx:5:3:5:3 | a | tst.jsx:4:11:4:75 | <a href ... mle</a> |
|
||||
@@ -1,4 +0,0 @@
|
||||
import javascript
|
||||
|
||||
from DOM::Element e
|
||||
select e, e.getDefinition()
|
||||
3
javascript/ql/test/library-tests/DOM/Element.qll
Normal file
3
javascript/ql/test/library-tests/DOM/Element.qll
Normal file
@@ -0,0 +1,3 @@
|
||||
import javascript
|
||||
|
||||
query predicate test_Element(DOM::Element e, DOM::ElementDefinition res) { res = e.getDefinition() }
|
||||
@@ -1,9 +0,0 @@
|
||||
| tst.html:1:1:5:7 | <html>...</> | html |
|
||||
| tst.html:2:1:4:7 | <body>...</> | body |
|
||||
| tst.html:3:3:3:57 | <a>...</> | a |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | a |
|
||||
| tst.js:23:5:23:30 | React.c ... ('div') | div |
|
||||
| tst.js:24:5:24:55 | React.c ... , null) | div |
|
||||
| tst.js:27:5:27:14 | factory1() | div |
|
||||
| tst.js:31:20:31:55 | <div>He ... }</div> | div |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | a |
|
||||
@@ -1,4 +0,0 @@
|
||||
import javascript
|
||||
|
||||
from DOM::ElementDefinition e
|
||||
select e, e.getName()
|
||||
@@ -0,0 +1,3 @@
|
||||
import javascript
|
||||
|
||||
query predicate test_ElementDefinition(DOM::ElementDefinition e, string res) { res = e.getName() }
|
||||
@@ -1,5 +0,0 @@
|
||||
| tst.html:3:3:3:57 | <a>...</> | 0 | tst.html:3:6:3:30 | href=https://semmle.com |
|
||||
| tst.html:3:3:3:57 | <a>...</> | 1 | tst.html:3:32:3:46 | target=_blank |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | 0 | tst.jsx:4:14:4:38 | href="h ... le.com" |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | 1 | tst.jsx:4:40:4:48 | rel={rel} |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | 2 | tst.jsx:4:50:4:64 | {...otherAttrs} |
|
||||
@@ -1,4 +0,0 @@
|
||||
import javascript
|
||||
|
||||
from DOM::ElementDefinition e, int i
|
||||
select e, i, e.getAttribute(i)
|
||||
@@ -0,0 +1,7 @@
|
||||
import javascript
|
||||
|
||||
query predicate test_ElementDefinition_getAttribute(
|
||||
DOM::ElementDefinition e, int i, DOM::AttributeDefinition res
|
||||
) {
|
||||
res = e.getAttribute(i)
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
| tst.html:3:3:3:57 | <a>...</> | href | tst.html:3:6:3:30 | href=https://semmle.com |
|
||||
| tst.html:3:3:3:57 | <a>...</> | target | tst.html:3:32:3:46 | target=_blank |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | data-bind | tst.js:5:3:7:4 | a.attr( ... f"\\n }) |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | data-bind | tst.js:9:3:11:4 | a.prop( ... f"\\n }) |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | data-bind | tst.js:13:3:13:28 | $.prop( ... d", "") |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | href | tst.js:3:11:3:66 | $("<a/> ... e.com") |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | rel | tst.js:4:3:4:27 | a.attr( ... pener") |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | rel | tst.js:8:3:8:29 | a.prop( ... errer") |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | rel | tst.js:12:3:12:41 | $.attr( ... errer") |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | target | tst.js:2:22:2:37 | target: "_blank" |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | href | tst.jsx:4:14:4:38 | href="h ... le.com" |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | rel | tst.jsx:4:40:4:48 | rel={rel} |
|
||||
@@ -1,4 +0,0 @@
|
||||
import javascript
|
||||
|
||||
from DOM::ElementDefinition e, string s
|
||||
select e, s, e.getAttributeByName(s)
|
||||
@@ -0,0 +1,7 @@
|
||||
import javascript
|
||||
|
||||
query predicate test_ElementDefinition_getAttributeByName(
|
||||
DOM::ElementDefinition e, string s, DOM::AttributeDefinition res
|
||||
) {
|
||||
res = e.getAttributeByName(s)
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
| tst.html:1:1:5:7 | <html>...</> | tst.html:1:1:5:7 | <html>...</> |
|
||||
| tst.html:2:1:4:7 | <body>...</> | tst.html:1:1:5:7 | <html>...</> |
|
||||
| tst.html:3:3:3:57 | <a>...</> | tst.html:1:1:5:7 | <html>...</> |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:23:5:23:30 | React.c ... ('div') | tst.js:23:5:23:30 | React.c ... ('div') |
|
||||
| tst.js:24:5:24:55 | React.c ... , null) | tst.js:24:5:24:55 | React.c ... , null) |
|
||||
| tst.js:27:5:27:14 | factory1() | tst.js:27:5:27:14 | factory1() |
|
||||
| tst.js:31:20:31:55 | <div>He ... }</div> | tst.js:31:20:31:55 | <div>He ... }</div> |
|
||||
| tst.js:36:5:36:55 | React.c ... , null) | tst.js:36:5:36:55 | React.c ... , null) |
|
||||
| tst.js:39:5:39:14 | factory2() | tst.js:39:5:39:14 | factory2() |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | tst.jsx:4:11:4:75 | <a href ... mle</a> |
|
||||
@@ -1,4 +0,0 @@
|
||||
import javascript
|
||||
|
||||
from DOM::ElementDefinition e
|
||||
select e, e.getRoot()
|
||||
@@ -0,0 +1,5 @@
|
||||
import javascript
|
||||
|
||||
query predicate test_ElementDefinition_getRoot(DOM::ElementDefinition e, DOM::ElementDefinition res) {
|
||||
res = e.getRoot()
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
| tst.js:15:22:15:28 | "value" |
|
||||
| tst.js:16:31:16:37 | "value" |
|
||||
| tst.js:17:24:17:30 | "value" |
|
||||
| tst.js:18:33:18:39 | "value" |
|
||||
@@ -1,4 +0,0 @@
|
||||
import javascript
|
||||
|
||||
from WebStorageWrite w
|
||||
select w
|
||||
3
javascript/ql/test/library-tests/DOM/WebStorageWrite.qll
Normal file
3
javascript/ql/test/library-tests/DOM/WebStorageWrite.qll
Normal file
@@ -0,0 +1,3 @@
|
||||
import javascript
|
||||
|
||||
query predicate test_WebStorageWrite(WebStorageWrite w) { any() }
|
||||
121
javascript/ql/test/library-tests/DOM/tests.expected
Normal file
121
javascript/ql/test/library-tests/DOM/tests.expected
Normal file
@@ -0,0 +1,121 @@
|
||||
test_AttributeDefinition
|
||||
| tst.html:3:6:3:30 | href=https://semmle.com |
|
||||
| tst.html:3:32:3:46 | target=_blank |
|
||||
| tst.js:2:22:2:37 | target: "_blank" |
|
||||
| tst.js:3:11:3:66 | $("<a/> ... e.com") |
|
||||
| tst.js:4:3:4:27 | a.attr( ... pener") |
|
||||
| tst.js:5:3:7:4 | a.attr( ... f"\\n }) |
|
||||
| tst.js:8:3:8:29 | a.prop( ... errer") |
|
||||
| tst.js:9:3:11:4 | a.prop( ... f"\\n }) |
|
||||
| tst.js:12:3:12:41 | $.attr( ... errer") |
|
||||
| tst.js:13:3:13:28 | $.prop( ... d", "") |
|
||||
| tst.jsx:4:14:4:38 | href="h ... le.com" |
|
||||
| tst.jsx:4:40:4:48 | rel={rel} |
|
||||
| tst.jsx:4:50:4:64 | {...otherAttrs} |
|
||||
test_ElementDefinition_getAttribute
|
||||
| tst.html:3:3:3:57 | <a>...</> | 0 | tst.html:3:6:3:30 | href=https://semmle.com |
|
||||
| tst.html:3:3:3:57 | <a>...</> | 1 | tst.html:3:32:3:46 | target=_blank |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | 0 | tst.jsx:4:14:4:38 | href="h ... le.com" |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | 1 | tst.jsx:4:40:4:48 | rel={rel} |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | 2 | tst.jsx:4:50:4:64 | {...otherAttrs} |
|
||||
test_ElementDefinition_getRoot
|
||||
| tst.html:1:1:5:7 | <html>...</> | tst.html:1:1:5:7 | <html>...</> |
|
||||
| tst.html:2:1:4:7 | <body>...</> | tst.html:1:1:5:7 | <html>...</> |
|
||||
| tst.html:3:3:3:57 | <a>...</> | tst.html:1:1:5:7 | <html>...</> |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:23:5:23:30 | React.c ... ('div') | tst.js:23:5:23:30 | React.c ... ('div') |
|
||||
| tst.js:24:5:24:55 | React.c ... , null) | tst.js:24:5:24:55 | React.c ... , null) |
|
||||
| tst.js:27:5:27:14 | factory1() | tst.js:27:5:27:14 | factory1() |
|
||||
| tst.js:31:20:31:55 | <div>He ... }</div> | tst.js:31:20:31:55 | <div>He ... }</div> |
|
||||
| tst.js:36:5:36:55 | React.c ... , null) | tst.js:36:5:36:55 | React.c ... , null) |
|
||||
| tst.js:39:5:39:14 | factory2() | tst.js:39:5:39:14 | factory2() |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | tst.jsx:4:11:4:75 | <a href ... mle</a> |
|
||||
test_WebStorageWrite
|
||||
| tst.js:15:22:15:28 | "value" |
|
||||
| tst.js:16:31:16:37 | "value" |
|
||||
| tst.js:17:24:17:30 | "value" |
|
||||
| tst.js:18:33:18:39 | "value" |
|
||||
test_ElementDefinition_getAttributeByName
|
||||
| tst.html:3:3:3:57 | <a>...</> | href | tst.html:3:6:3:30 | href=https://semmle.com |
|
||||
| tst.html:3:3:3:57 | <a>...</> | target | tst.html:3:32:3:46 | target=_blank |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | data-bind | tst.js:5:3:7:4 | a.attr( ... f"\\n }) |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | data-bind | tst.js:9:3:11:4 | a.prop( ... f"\\n }) |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | data-bind | tst.js:13:3:13:28 | $.prop( ... d", "") |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | href | tst.js:3:11:3:66 | $("<a/> ... e.com") |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | rel | tst.js:4:3:4:27 | a.attr( ... pener") |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | rel | tst.js:8:3:8:29 | a.prop( ... errer") |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | rel | tst.js:12:3:12:41 | $.attr( ... errer") |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | target | tst.js:2:22:2:37 | target: "_blank" |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | href | tst.jsx:4:14:4:38 | href="h ... le.com" |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | rel | tst.jsx:4:40:4:48 | rel={rel} |
|
||||
test_AttributeDefinition_getStringValue
|
||||
| tst.html:3:6:3:30 | href=https://semmle.com | https://semmle.com |
|
||||
| tst.html:3:32:3:46 | target=_blank | _blank |
|
||||
| tst.js:2:22:2:37 | target: "_blank" | _blank |
|
||||
| tst.js:3:11:3:66 | $("<a/> ... e.com") | https://semmle.com |
|
||||
| tst.js:4:3:4:27 | a.attr( ... pener") | noopener |
|
||||
| tst.js:5:3:7:4 | a.attr( ... f"\\n }) | stuff |
|
||||
| tst.js:8:3:8:29 | a.prop( ... errer") | noreferrer |
|
||||
| tst.js:9:3:11:4 | a.prop( ... f"\\n }) | otherstuff |
|
||||
| tst.js:12:3:12:41 | $.attr( ... errer") | noopener noreferrer |
|
||||
| tst.js:13:3:13:28 | $.prop( ... d", "") | |
|
||||
| tst.jsx:4:14:4:38 | href="h ... le.com" | https://semmle.com |
|
||||
test_AttributeDefinition_getName
|
||||
| tst.html:3:6:3:30 | href=https://semmle.com | href |
|
||||
| tst.html:3:32:3:46 | target=_blank | target |
|
||||
| tst.js:2:22:2:37 | target: "_blank" | target |
|
||||
| tst.js:3:11:3:66 | $("<a/> ... e.com") | href |
|
||||
| tst.js:4:3:4:27 | a.attr( ... pener") | rel |
|
||||
| tst.js:5:3:7:4 | a.attr( ... f"\\n }) | data-bind |
|
||||
| tst.js:8:3:8:29 | a.prop( ... errer") | rel |
|
||||
| tst.js:9:3:11:4 | a.prop( ... f"\\n }) | data-bind |
|
||||
| tst.js:12:3:12:41 | $.attr( ... errer") | rel |
|
||||
| tst.js:13:3:13:28 | $.prop( ... d", "") | data-bind |
|
||||
| tst.jsx:4:14:4:38 | href="h ... le.com" | href |
|
||||
| tst.jsx:4:40:4:48 | rel={rel} | rel |
|
||||
test_Element
|
||||
| tst.html:1:1:5:7 | <html>...</> | tst.html:1:1:5:7 | <html>...</> |
|
||||
| tst.html:2:1:4:7 | <body>...</> | tst.html:2:1:4:7 | <body>...</> |
|
||||
| tst.html:3:3:3:57 | <a>...</> | tst.html:3:3:3:57 | <a>...</> |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:3:11:3:66 | $("<a/> ... e.com") | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:4:3:4:3 | a | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:4:3:4:27 | a.attr( ... pener") | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:5:3:5:3 | a | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:5:3:7:4 | a.attr( ... f"\\n }) | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:8:3:8:3 | a | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:8:3:8:29 | a.prop( ... errer") | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:9:3:9:3 | a | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:9:3:11:4 | a.prop( ... f"\\n }) | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:12:10:12:10 | a | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:13:10:13:10 | a | tst.js:3:11:3:31 | $("<a/> ... rAttrs) |
|
||||
| tst.js:23:5:23:30 | React.c ... ('div') | tst.js:23:5:23:30 | React.c ... ('div') |
|
||||
| tst.js:24:5:24:55 | React.c ... , null) | tst.js:24:5:24:55 | React.c ... , null) |
|
||||
| tst.js:27:5:27:14 | factory1() | tst.js:27:5:27:14 | factory1() |
|
||||
| tst.js:31:20:31:55 | <div>He ... }</div> | tst.js:31:20:31:55 | <div>He ... }</div> |
|
||||
| tst.js:36:5:36:55 | React.c ... , null) | tst.js:36:5:36:55 | React.c ... , null) |
|
||||
| tst.js:39:5:39:14 | factory2() | tst.js:39:5:39:14 | factory2() |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | tst.jsx:4:11:4:75 | <a href ... mle</a> |
|
||||
| tst.jsx:5:3:5:3 | a | tst.jsx:4:11:4:75 | <a href ... mle</a> |
|
||||
test_AttributeDefinition_getValueNode
|
||||
| tst.js:2:22:2:37 | target: "_blank" | tst.js:2:30:2:37 | "_blank" |
|
||||
| tst.js:3:11:3:66 | $("<a/> ... e.com") | tst.js:3:46:3:65 | "https://semmle.com" |
|
||||
| tst.js:4:3:4:27 | a.attr( ... pener") | tst.js:4:17:4:26 | "noopener" |
|
||||
| tst.js:5:3:7:4 | a.attr( ... f"\\n }) | tst.js:6:18:6:24 | "stuff" |
|
||||
| tst.js:8:3:8:29 | a.prop( ... errer") | tst.js:8:17:8:28 | "noreferrer" |
|
||||
| tst.js:9:3:11:4 | a.prop( ... f"\\n }) | tst.js:10:18:10:29 | "otherstuff" |
|
||||
| tst.js:12:3:12:41 | $.attr( ... errer") | tst.js:12:20:12:40 | "noopen ... ferrer" |
|
||||
| tst.js:13:3:13:28 | $.prop( ... d", "") | tst.js:13:26:13:27 | "" |
|
||||
| tst.jsx:4:14:4:38 | href="h ... le.com" | tst.jsx:4:19:4:38 | "https://semmle.com" |
|
||||
| tst.jsx:4:40:4:48 | rel={rel} | tst.jsx:4:45:4:47 | rel |
|
||||
| tst.jsx:4:50:4:64 | {...otherAttrs} | tst.jsx:4:50:4:64 | ...otherAttrs |
|
||||
test_ElementDefinition
|
||||
| tst.html:1:1:5:7 | <html>...</> | html |
|
||||
| tst.html:2:1:4:7 | <body>...</> | body |
|
||||
| tst.html:3:3:3:57 | <a>...</> | a |
|
||||
| tst.js:3:11:3:31 | $("<a/> ... rAttrs) | a |
|
||||
| tst.js:23:5:23:30 | React.c ... ('div') | div |
|
||||
| tst.js:24:5:24:55 | React.c ... , null) | div |
|
||||
| tst.js:27:5:27:14 | factory1() | div |
|
||||
| tst.js:31:20:31:55 | <div>He ... }</div> | div |
|
||||
| tst.jsx:4:11:4:75 | <a href ... mle</a> | a |
|
||||
10
javascript/ql/test/library-tests/DOM/tests.ql
Normal file
10
javascript/ql/test/library-tests/DOM/tests.ql
Normal file
@@ -0,0 +1,10 @@
|
||||
import AttributeDefinition
|
||||
import ElementDefinition_getAttribute
|
||||
import ElementDefinition_getRoot
|
||||
import WebStorageWrite
|
||||
import ElementDefinition_getAttributeByName
|
||||
import AttributeDefinition_getStringValue
|
||||
import AttributeDefinition_getName
|
||||
import Element
|
||||
import AttributeDefinition_getValueNode
|
||||
import ElementDefinition
|
||||
Reference in New Issue
Block a user