Skip to content

Commit c7ae96f

Browse files
Add copyright notice to new test files
1 parent 04922c8 commit c7ae96f

12 files changed

+57
-17
lines changed

test/Debugger/JsDiagBreakpoints.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//-------------------------------------------------------------------------------------------------------
2+
// Copyright (C) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
//-------------------------------------------------------------------------------------------------------
5+
16
function foo() {
27
var x = "bp A";
38
x; /**bp(A):evaluate('x');enableBp('B');deleteBp('D');**/

test/Debugger/JsDiagEvaluate.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//-------------------------------------------------------------------------------------------------------
2+
// Copyright (C) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
//-------------------------------------------------------------------------------------------------------
5+
16
globalVar = {
27
a : "Hello World",
38
b : /regex/ig

test/Debugger/JsDiagGetFunctionPosition.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//-------------------------------------------------------------------------------------------------------
2+
// Copyright (C) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
//-------------------------------------------------------------------------------------------------------
5+
16
// Global function
27
var x = 1;
38
function foo() {

test/Debugger/JsDiagGetFunctionPosition.js.dbg.baseline

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
"functionInfo": {
44
"scriptId": 2,
55
"fileName": "jsdiaggetfunctionposition.js",
6-
"line": 3,
6+
"line": 8,
77
"column": 1,
8-
"firstStatementLine": 3,
8+
"firstStatementLine": 8,
99
"firstStatementColumn": 2
1010
}
1111
},
1212
{
1313
"functionInfo": {
1414
"scriptId": 2,
1515
"fileName": "jsdiaggetfunctionposition.js",
16-
"line": 10,
16+
"line": 15,
1717
"column": 10,
18-
"firstStatementLine": 10,
18+
"firstStatementLine": 15,
1919
"firstStatementColumn": 4
2020
}
2121
},
@@ -45,9 +45,9 @@
4545
"functionInfo": {
4646
"scriptId": 2,
4747
"fileName": "jsdiaggetfunctionposition.js",
48-
"line": 22,
48+
"line": 27,
4949
"column": 34,
50-
"firstStatementLine": 23,
50+
"firstStatementLine": 28,
5151
"firstStatementColumn": 2
5252
}
5353
},

test/Debugger/JsDiagGetScripts.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//-------------------------------------------------------------------------------------------------------
2+
// Copyright (C) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
//-------------------------------------------------------------------------------------------------------
5+
16
var global = WScript.LoadScript("", "samethread", "dummyFileName.js");
27
eval('var x = "code in eval"');
38
eval('eval(\'var y = "Eval inside eval"\');');

test/Debugger/JsDiagGetScripts.js.dbg.baseline

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
{
1111
"scriptId": 2,
1212
"fileName": "jsdiaggetscripts.js",
13-
"lineCount": 7,
14-
"sourceLength": 267
13+
"lineCount": 12,
14+
"sourceLength": 640
1515
},
1616
{
1717
"scriptId": 4,

test/Debugger/JsDiagGetStackProperties.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//-------------------------------------------------------------------------------------------------------
2+
// Copyright (C) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
//-------------------------------------------------------------------------------------------------------
5+
16
/**exception(all):locals();**/
27

38
// Tests getting "exception" from JsDiagGetStackProperties

test/Debugger/JsDiagGetStackTrace.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//-------------------------------------------------------------------------------------------------------
2+
// Copyright (C) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
//-------------------------------------------------------------------------------------------------------
5+
16
/**exception(all):stack();**/
27

38
function fromEval() {

test/Debugger/JsDiagGetStackTrace.js.dbg.baseline

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
"callStack": [
44
{
5-
"line": 4,
5+
"line": 9,
66
"column": 4,
77
"sourceText": "throw new Error('Caught Error')",
88
"function": "fromEval"
@@ -14,13 +14,13 @@
1414
"function": "eval code"
1515
},
1616
{
17-
"line": 9,
17+
"line": 14,
1818
"column": 2,
1919
"sourceText": "eval(\"fromEval();\")",
2020
"function": "foo"
2121
},
2222
{
23-
"line": 11,
23+
"line": 16,
2424
"column": 0,
2525
"sourceText": "foo()",
2626
"function": "Global code"
@@ -30,25 +30,25 @@
3030
{
3131
"callStack": [
3232
{
33-
"line": 16,
33+
"line": 21,
3434
"column": 4,
3535
"sourceText": "var level3Var = level2Var",
3636
"function": "FuncLevel3"
3737
},
3838
{
39-
"line": 18,
39+
"line": 23,
4040
"column": 2,
4141
"sourceText": "FuncLevel3()",
4242
"function": "FuncLevel2"
4343
},
4444
{
45-
"line": 25,
45+
"line": 30,
4646
"column": 2,
4747
"sourceText": "FuncLevel2()",
4848
"function": "FuncLevel1"
4949
},
5050
{
51-
"line": 27,
51+
"line": 32,
5252
"column": 0,
5353
"sourceText": "FuncLevel1(1)",
5454
"function": "Global code"

test/Debugger/JsDiagRequestAsyncBreak.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//-------------------------------------------------------------------------------------------------------
2+
// Copyright (C) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4+
//-------------------------------------------------------------------------------------------------------
5+
16
/**onasyncbreak:evaluate('count');enableBp('A');**/
27

38
var count = 0;

0 commit comments

Comments
 (0)