mirror of
https://github.com/github/codeql.git
synced 2026-03-06 15:49:08 +01:00
JS: update tests to not use deleted deprecations
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
WARNING: Type JQueryMethodCall has been deprecated and may be removed in future (JQueryMethodCall.ql:3,6-22)
|
||||
| tracking.js:7:5:7:24 | this.elm.html('foo') | html |
|
||||
| tracking.js:14:5:14:17 | e.html('foo') | html |
|
||||
| tracking.js:15:5:15:26 | e.attr( ... 'foo') | attr |
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import javascript
|
||||
|
||||
from JQueryMethodCall jqmc
|
||||
from JQuery::MethodCall jqmc
|
||||
select jqmc, jqmc.getMethodName()
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
WARNING: Type JQueryMethodCall has been deprecated and may be removed in future (interpretsArgumentAsHtml.ql:3,6-22)
|
||||
| tracking.js:7:5:7:24 | this.elm.html('foo') | tracking.js:7:19:7:23 | 'foo' |
|
||||
| tracking.js:14:5:14:17 | e.html('foo') | tracking.js:14:12:14:16 | 'foo' |
|
||||
| tracking.js:23:7:23:15 | $('#foo') | tracking.js:23:9:23:14 | '#foo' |
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import javascript
|
||||
|
||||
from JQueryMethodCall mc, Expr e
|
||||
where mc.interpretsArgumentAsHtml(e)
|
||||
select mc, e
|
||||
from JQuery::MethodCall mc, DataFlow::Node node
|
||||
where mc.interpretsArgumentAsHtml(node)
|
||||
select mc, node
|
||||
|
||||
Reference in New Issue
Block a user