File tree Expand file tree Collapse file tree 5 files changed +30
-30
lines changed
base/test/node/pfs/fixtures
platform/files/test/node/fixtures
workbench/services/search/test/node Expand file tree Collapse file tree 5 files changed +30
-30
lines changed Original file line number Diff line number Diff line change 41
41
}
42
42
</ script >
43
43
< script type ="text/javascript ">
44
-
44
+
45
45
var libText = "" ;
46
46
$ . get ( "../compiler/lib.ts" , function ( newLibText ) {
47
47
libText = newLibText ;
48
- } ) ;
49
-
48
+ } ) ;
49
+
50
50
51
51
// execute the javascript in the compiledOutput pane
52
52
function execute ( ) {
53
53
$ ( '#compilation' ) . text ( "Running..." ) ;
54
54
var txt = $ ( '#compiledOutput' ) . val ( ) ;
55
55
var res ;
56
56
try {
57
- var ret = eval ( txt ) ;
57
+ var ret = eval ( txt ) ; // CodeQL [SM01632] This code is only used for tests
58
58
res = "Ran successfully!" ;
59
- } catch ( e ) {
59
+ } catch ( e ) {
60
60
res = "Exception thrown: " + e ;
61
61
}
62
62
$ ( '#compilation' ) . text ( String ( res ) ) ;
70
70
compiledSource = compile ( newText , libText ) ;
71
71
} catch ( e ) {
72
72
compiledSource = "//Parse error"
73
- for ( var i in e )
73
+ for ( var i in e )
74
74
compiledSource += "\r// " + e [ i ] ;
75
75
}
76
76
$ ( '#compiledOutput' ) . val ( compiledSource ) ;
@@ -111,7 +111,7 @@ <h1>TypeScript</h1>
111
111
//Compiled code will show up here...
112
112
</ textarea >
113
113
< br />
114
- < button onclick ='execute() '/> Run</ button >
114
+ < button onclick ='execute() '/> Run</ button >
115
115
< div id ='compilation '> Press 'run' to execute code...</ div >
116
116
< div id ='results '> ...write your results into #results...</ div >
117
117
</ div >
Original file line number Diff line number Diff line change 41
41
}
42
42
</ script >
43
43
< script type ="text/javascript ">
44
-
44
+
45
45
var libText = "" ;
46
46
$ . get ( "../compiler/lib.ts" , function ( newLibText ) {
47
47
libText = newLibText ;
48
- } ) ;
49
-
48
+ } ) ;
49
+
50
50
51
51
// execute the javascript in the compiledOutput pane
52
52
function execute ( ) {
53
53
$ ( '#compilation' ) . text ( "Running..." ) ;
54
54
var txt = $ ( '#compiledOutput' ) . val ( ) ;
55
55
var res ;
56
56
try {
57
- var ret = eval ( txt ) ;
57
+ var ret = eval ( txt ) ; // CodeQL [SM01632] This code is only used for tests
58
58
res = "Ran successfully!" ;
59
- } catch ( e ) {
59
+ } catch ( e ) {
60
60
res = "Exception thrown: " + e ;
61
61
}
62
62
$ ( '#compilation' ) . text ( String ( res ) ) ;
70
70
compiledSource = compile ( newText , libText ) ;
71
71
} catch ( e ) {
72
72
compiledSource = "//Parse error"
73
- for ( var i in e )
73
+ for ( var i in e )
74
74
compiledSource += "\r// " + e [ i ] ;
75
75
}
76
76
$ ( '#compiledOutput' ) . val ( compiledSource ) ;
@@ -111,7 +111,7 @@ <h1>TypeScript</h1>
111
111
//Compiled code will show up here...
112
112
</ textarea >
113
113
< br />
114
- < button onclick ='execute() '/> Run</ button >
114
+ < button onclick ='execute() '/> Run</ button >
115
115
< div id ='compilation '> Press 'run' to execute code...</ div >
116
116
< div id ='results '> ...write your results into #results...</ div >
117
117
</ div >
Original file line number Diff line number Diff line change 41
41
}
42
42
</ script >
43
43
< script type ="text/javascript ">
44
-
44
+
45
45
var libText = "" ;
46
46
$ . get ( "../compiler/lib.ts" , function ( newLibText ) {
47
47
libText = newLibText ;
48
- } ) ;
49
-
48
+ } ) ;
49
+
50
50
51
51
// execute the javascript in the compiledOutput pane
52
52
function execute ( ) {
53
53
$ ( '#compilation' ) . text ( "Running..." ) ;
54
54
var txt = $ ( '#compiledOutput' ) . val ( ) ;
55
55
var res ;
56
56
try {
57
- var ret = eval ( txt ) ;
57
+ var ret = eval ( txt ) ; // CodeQL [SM01632] This code is only used for tests
58
58
res = "Ran successfully!" ;
59
- } catch ( e ) {
59
+ } catch ( e ) {
60
60
res = "Exception thrown: " + e ;
61
61
}
62
62
$ ( '#compilation' ) . text ( String ( res ) ) ;
70
70
compiledSource = compile ( newText , libText ) ;
71
71
} catch ( e ) {
72
72
compiledSource = "//Parse error"
73
- for ( var i in e )
73
+ for ( var i in e )
74
74
compiledSource += "\r// " + e [ i ] ;
75
75
}
76
76
$ ( '#compiledOutput' ) . val ( compiledSource ) ;
@@ -111,7 +111,7 @@ <h1>TypeScript</h1>
111
111
//Compiled code will show up here...
112
112
</ textarea >
113
113
< br />
114
- < button onclick ='execute() '/> Run</ button >
114
+ < button onclick ='execute() '/> Run</ button >
115
115
< div id ='compilation '> Press 'run' to execute code...</ div >
116
116
< div id ='results '> ...write your results into #results...</ div >
117
117
</ div >
Original file line number Diff line number Diff line change 41
41
}
42
42
</ script >
43
43
< script type ="text/javascript ">
44
-
44
+
45
45
var libText = "" ;
46
46
$ . get ( "../compiler/lib.ts" , function ( newLibText ) {
47
47
libText = newLibText ;
48
- } ) ;
49
-
48
+ } ) ;
49
+
50
50
51
51
// execute the javascript in the compiledOutput pane
52
52
function execute ( ) {
53
53
$ ( '#compilation' ) . text ( "Running..." ) ;
54
54
var txt = $ ( '#compiledOutput' ) . val ( ) ;
55
55
var res ;
56
56
try {
57
- var ret = eval ( txt ) ;
57
+ var ret = eval ( txt ) ; // CodeQL [SM01632] This code is only used for tests
58
58
res = "Ran successfully!" ;
59
- } catch ( e ) {
59
+ } catch ( e ) {
60
60
res = "Exception thrown: " + e ;
61
61
}
62
62
$ ( '#compilation' ) . text ( String ( res ) ) ;
70
70
compiledSource = compile ( newText , libText ) ;
71
71
} catch ( e ) {
72
72
compiledSource = "//Parse error"
73
- for ( var i in e )
73
+ for ( var i in e )
74
74
compiledSource += "\r// " + e [ i ] ;
75
75
}
76
76
$ ( '#compiledOutput' ) . val ( compiledSource ) ;
@@ -111,7 +111,7 @@ <h1>TypeScript</h1>
111
111
//Compiled code will show up here...
112
112
</ textarea >
113
113
< br />
114
- < button onclick ='execute() '/> Run</ button >
114
+ < button onclick ='execute() '/> Run</ button >
115
115
< div id ='compilation '> Press 'run' to execute code...</ div >
116
116
< div id ='results '> ...write your results into #results...</ div >
117
117
</ div >
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ flakySuite('TextSearch-integration', function () {
157
157
contentPattern : { pattern : 'e' }
158
158
} ;
159
159
160
- return doSearchTest ( config , 781 ) ;
160
+ return doSearchTest ( config , 785 ) ;
161
161
} ) ;
162
162
163
163
test ( 'Text: e (with excludes)' , ( ) => {
@@ -167,7 +167,7 @@ flakySuite('TextSearch-integration', function () {
167
167
excludePattern : { '**/examples' : true }
168
168
} ;
169
169
170
- return doSearchTest ( config , 387 ) ;
170
+ return doSearchTest ( config , 391 ) ;
171
171
} ) ;
172
172
173
173
test ( 'Text: e (with includes)' , ( ) => {
You can’t perform that action at this time.
0 commit comments