Skip to content

Commit 4df05b4

Browse files
committed
JS: Shift line numbers in test
1 parent cb04df4 commit 4df05b4

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

javascript/ql/test/library-tests/frameworks/Angular2/source.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component } from "@angular/core";
1+
import { Component,ElementRef } from "@angular/core";
22
import { DomSanitizer } from '@angular/platform-browser';
33

44
@Component({
@@ -9,6 +9,7 @@ export class Source {
99
taint: string;
1010
taintedArray: string[];
1111
safeArray: string[];
12+
elementRef: ElementRef;
1213

1314
constructor(private sanitizer: DomSanitizer) {
1415
this.taint = source();

javascript/ql/test/library-tests/frameworks/Angular2/test.expected

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ pipeClassRef
2424
taintFlow
2525
| inline.component.ts:15:22:15:29 | source() | sink.component.ts:28:48:28:57 | this.sink7 |
2626
| inline.component.ts:15:22:15:29 | source() | sink.component.ts:30:48:30:57 | this.sink9 |
27-
| source.component.ts:14:22:14:29 | source() | TestPipe.ts:6:31:6:35 | value |
28-
| source.component.ts:14:22:14:29 | source() | sink.component.ts:22:48:22:57 | this.sink1 |
29-
| source.component.ts:14:22:14:29 | source() | sink.component.ts:25:48:25:57 | this.sink4 |
30-
| source.component.ts:14:22:14:29 | source() | sink.component.ts:26:48:26:57 | this.sink5 |
31-
| source.component.ts:14:22:14:29 | source() | sink.component.ts:27:48:27:57 | this.sink6 |
32-
| source.component.ts:14:22:14:29 | source() | sink.component.ts:29:48:29:57 | this.sink8 |
33-
| source.component.ts:14:22:14:29 | source() | source.component.ts:20:48:20:48 | x |
34-
| source.component.ts:15:33:15:40 | source() | sink.component.ts:22:48:22:57 | this.sink1 |
27+
| source.component.ts:15:22:15:29 | source() | TestPipe.ts:6:31:6:35 | value |
28+
| source.component.ts:15:22:15:29 | source() | sink.component.ts:22:48:22:57 | this.sink1 |
29+
| source.component.ts:15:22:15:29 | source() | sink.component.ts:25:48:25:57 | this.sink4 |
30+
| source.component.ts:15:22:15:29 | source() | sink.component.ts:26:48:26:57 | this.sink5 |
31+
| source.component.ts:15:22:15:29 | source() | sink.component.ts:27:48:27:57 | this.sink6 |
32+
| source.component.ts:15:22:15:29 | source() | sink.component.ts:29:48:29:57 | this.sink8 |
33+
| source.component.ts:15:22:15:29 | source() | source.component.ts:21:48:21:48 | x |
34+
| source.component.ts:16:33:16:40 | source() | sink.component.ts:22:48:22:57 | this.sink1 |
3535
testAttrSourceLocation
3636
| inline.component.ts:8:43:8:60 | [testAttr]=taint | inline.component.ts:8:55:8:59 | <toplevel> |

0 commit comments

Comments
 (0)