Skip to content

Commit

Permalink
Add copyright notice to new test files
Browse files Browse the repository at this point in the history
  • Loading branch information
agarwal-sandeep committed May 5, 2016
1 parent 04922c8 commit c7ae96f
Show file tree
Hide file tree
Showing 12 changed files with 57 additions and 17 deletions.
5 changes: 5 additions & 0 deletions test/Debugger/JsDiagBreakpoints.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

function foo() {
var x = "bp A";
x; /**bp(A):evaluate('x');enableBp('B');deleteBp('D');**/
Expand Down
5 changes: 5 additions & 0 deletions test/Debugger/JsDiagEvaluate.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

globalVar = {
a : "Hello World",
b : /regex/ig
Expand Down
5 changes: 5 additions & 0 deletions test/Debugger/JsDiagGetFunctionPosition.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

// Global function
var x = 1;
function foo() {
Expand Down
12 changes: 6 additions & 6 deletions test/Debugger/JsDiagGetFunctionPosition.js.dbg.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
"functionInfo": {
"scriptId": 2,
"fileName": "jsdiaggetfunctionposition.js",
"line": 3,
"line": 8,
"column": 1,
"firstStatementLine": 3,
"firstStatementLine": 8,
"firstStatementColumn": 2
}
},
{
"functionInfo": {
"scriptId": 2,
"fileName": "jsdiaggetfunctionposition.js",
"line": 10,
"line": 15,
"column": 10,
"firstStatementLine": 10,
"firstStatementLine": 15,
"firstStatementColumn": 4
}
},
Expand Down Expand Up @@ -45,9 +45,9 @@
"functionInfo": {
"scriptId": 2,
"fileName": "jsdiaggetfunctionposition.js",
"line": 22,
"line": 27,
"column": 34,
"firstStatementLine": 23,
"firstStatementLine": 28,
"firstStatementColumn": 2
}
},
Expand Down
5 changes: 5 additions & 0 deletions test/Debugger/JsDiagGetScripts.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

var global = WScript.LoadScript("", "samethread", "dummyFileName.js");
eval('var x = "code in eval"');
eval('eval(\'var y = "Eval inside eval"\');');
Expand Down
4 changes: 2 additions & 2 deletions test/Debugger/JsDiagGetScripts.js.dbg.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
{
"scriptId": 2,
"fileName": "jsdiaggetscripts.js",
"lineCount": 7,
"sourceLength": 267
"lineCount": 12,
"sourceLength": 640
},
{
"scriptId": 4,
Expand Down
5 changes: 5 additions & 0 deletions test/Debugger/JsDiagGetStackProperties.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

/**exception(all):locals();**/

// Tests getting "exception" from JsDiagGetStackProperties
Expand Down
5 changes: 5 additions & 0 deletions test/Debugger/JsDiagGetStackTrace.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

/**exception(all):stack();**/

function fromEval() {
Expand Down
14 changes: 7 additions & 7 deletions test/Debugger/JsDiagGetStackTrace.js.dbg.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"callStack": [
{
"line": 4,
"line": 9,
"column": 4,
"sourceText": "throw new Error('Caught Error')",
"function": "fromEval"
Expand All @@ -14,13 +14,13 @@
"function": "eval code"
},
{
"line": 9,
"line": 14,
"column": 2,
"sourceText": "eval(\"fromEval();\")",
"function": "foo"
},
{
"line": 11,
"line": 16,
"column": 0,
"sourceText": "foo()",
"function": "Global code"
Expand All @@ -30,25 +30,25 @@
{
"callStack": [
{
"line": 16,
"line": 21,
"column": 4,
"sourceText": "var level3Var = level2Var",
"function": "FuncLevel3"
},
{
"line": 18,
"line": 23,
"column": 2,
"sourceText": "FuncLevel3()",
"function": "FuncLevel2"
},
{
"line": 25,
"line": 30,
"column": 2,
"sourceText": "FuncLevel2()",
"function": "FuncLevel1"
},
{
"line": 27,
"line": 32,
"column": 0,
"sourceText": "FuncLevel1(1)",
"function": "Global code"
Expand Down
5 changes: 5 additions & 0 deletions test/Debugger/JsDiagRequestAsyncBreak.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

/**onasyncbreak:evaluate('count');enableBp('A');**/

var count = 0;
Expand Down
4 changes: 2 additions & 2 deletions test/Debugger/JsDiagRequestAsyncBreak.js.dbg.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
{
"callStack": [
{
"line": 11,
"line": 16,
"column": 2,
"sourceText": "x = 2",
"function": "foo"
},
{
"line": 13,
"line": 18,
"column": 0,
"sourceText": "foo()",
"function": "Global code"
Expand Down
5 changes: 5 additions & 0 deletions test/Debugger/JsrtDebugUtilsAddPropertyType.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------

var obj = {
a1 : undefined,
a2 : null,
Expand Down

0 comments on commit c7ae96f

Please sign in to comment.