2016-11-04 19:59:11 +00:00
|
|
|
Test for Debugger.getPossibleBreakpoints
|
|
|
|
|
|
|
|
Running test: getPossibleBreakpointsInRange
|
|
|
|
Test start.scriptId != end.scriptId.
|
|
|
|
{
|
|
|
|
error : {
|
|
|
|
code : -32000
|
|
|
|
message : Locations should contain the same scriptId
|
|
|
|
}
|
|
|
|
id : <messageId>
|
|
|
|
}
|
|
|
|
Test not existing scriptId.
|
|
|
|
{
|
|
|
|
error : {
|
|
|
|
code : -32000
|
|
|
|
message : Script not found
|
|
|
|
}
|
|
|
|
id : <messageId>
|
|
|
|
}
|
|
|
|
Test end < start.
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo(){ return Promise.resolve(); }
|
|
|
|
function boo(){ return Promise.resolve().then(() => 42); }
|
|
|
|
|
|
|
|
|
2016-11-04 19:59:11 +00:00
|
|
|
Test empty range in first line.
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo(){ return Promise.resolve(); }
|
|
|
|
function boo(){ return Promise.resolve().then(() => 42); }
|
|
|
|
|
|
|
|
|
2016-11-04 19:59:11 +00:00
|
|
|
Test one character range in first line.
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo(){ #return Promise.resolve(); }
|
|
|
|
function boo(){ return Promise.resolve().then(() => 42); }
|
|
|
|
|
|
|
|
|
2016-11-04 19:59:11 +00:00
|
|
|
Test empty range in not first line.
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo(){ return Promise.resolve(); }
|
|
|
|
function boo(){ return Promise.resolve().then(() => 42); }
|
|
|
|
|
|
|
|
|
2016-11-04 19:59:11 +00:00
|
|
|
Test one character range in not first line.
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo(){ return Promise.resolve(); }
|
|
|
|
function boo(){ #return Promise.resolve().then(() => 42); }
|
|
|
|
|
|
|
|
|
2016-11-04 19:59:11 +00:00
|
|
|
Test end is undefined
|
2017-07-14 17:50:09 +00:00
|
|
|
function foo(){ #return Promise.#resolve();# }
|
|
|
|
function boo(){ #return Promise.#resolve().#then(() => #42#);# }
|
2018-06-18 07:14:06 +00:00
|
|
|
|
2018-06-12 21:57:52 +00:00
|
|
|
#
|
2016-11-04 19:59:11 +00:00
|
|
|
Test end.lineNumber > scripts.lineCount()
|
2017-07-14 17:50:09 +00:00
|
|
|
function foo(){ #return Promise.#resolve();# }
|
|
|
|
function boo(){ #return Promise.#resolve().#then(() => #42#);# }
|
2018-06-12 21:57:52 +00:00
|
|
|
|
2017-02-24 02:01:26 +00:00
|
|
|
|
2016-11-04 19:59:11 +00:00
|
|
|
Test one string
|
2017-07-14 17:50:09 +00:00
|
|
|
function foo(){ #return Promise.#resolve();# }
|
2017-02-24 02:01:26 +00:00
|
|
|
function boo(){ return Promise.resolve().then(() => 42); }
|
|
|
|
|
|
|
|
|
2016-11-04 19:59:11 +00:00
|
|
|
Test end.columnNumber > end.line.length(), should be the same as previous.
|
2017-07-14 17:50:09 +00:00
|
|
|
function foo(){ #return Promise.#resolve();# }
|
2017-02-24 02:01:26 +00:00
|
|
|
function boo(){ return Promise.resolve().then(() => 42); }
|
|
|
|
|
|
|
|
|
2016-11-04 19:59:11 +00:00
|
|
|
|
|
|
|
Running test: getPossibleBreakpointsInArrow
|
2018-06-12 21:57:52 +00:00
|
|
|
function foo() { #return Promise.#resolve().#then(() => #239#).#then(() => #42#).#then(() => #() => #42#)# }#
|
2016-11-04 19:59:11 +00:00
|
|
|
|
|
|
|
Running test: arrowFunctionFirstLine
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo1() { #Promise.#resolve().#then(() => #42#) #}
|
|
|
|
function foo2() { Promise.resolve().then(() => 42) }
|
2017-02-23 00:05:26 +00:00
|
|
|
paused in foo1
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo1() { ^Promise.resolve().then(() => 42) }
|
|
|
|
function foo2() { Promise.resolve().then(() => 42) }
|
2017-02-23 00:05:26 +00:00
|
|
|
paused in foo1
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo1() { Promise.^resolve().then(() => 42) }
|
|
|
|
function foo2() { Promise.resolve().then(() => 42) }
|
|
|
|
paused in foo1
|
|
|
|
function foo1() { Promise.resolve().^then(() => 42) }
|
|
|
|
function foo2() { Promise.resolve().then(() => 42) }
|
|
|
|
paused in foo1
|
|
|
|
function foo1() { Promise.resolve().then(() => 42) ^}
|
|
|
|
function foo2() { Promise.resolve().then(() => 42) }
|
2019-01-07 10:45:04 +00:00
|
|
|
paused in
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo1() { Promise.resolve().then(() => ^42) }
|
|
|
|
function foo2() { Promise.resolve().then(() => 42) }
|
2019-01-07 10:45:04 +00:00
|
|
|
paused in
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo1() { Promise.resolve().then(() => 42^) }
|
|
|
|
function foo2() { Promise.resolve().then(() => 42) }
|
2016-11-04 19:59:11 +00:00
|
|
|
|
|
|
|
Running test: arrowFunctionOnPause
|
2017-02-24 02:01:26 +00:00
|
|
|
#debugger; function foo3() { #Promise.#resolve().#then(() => #42#) #}
|
|
|
|
function foo4() { #Promise.#resolve().#then(() => #42#) #};
|
|
|
|
#foo3();
|
2018-06-12 21:57:52 +00:00
|
|
|
#foo4();#
|
2016-12-01 00:26:00 +00:00
|
|
|
paused in
|
2017-02-24 02:01:26 +00:00
|
|
|
debugger; function foo3() { Promise.resolve().then(() => 42) }
|
|
|
|
function foo4() { Promise.resolve().then(() => 42) };
|
|
|
|
^foo3();
|
|
|
|
foo4();
|
2017-02-23 00:05:26 +00:00
|
|
|
paused in foo3
|
2017-02-24 02:01:26 +00:00
|
|
|
debugger; function foo3() { ^Promise.resolve().then(() => 42) }
|
|
|
|
function foo4() { Promise.resolve().then(() => 42) };
|
|
|
|
foo3();
|
|
|
|
foo4();
|
2017-02-23 00:05:26 +00:00
|
|
|
paused in foo3
|
2017-02-24 02:01:26 +00:00
|
|
|
debugger; function foo3() { Promise.^resolve().then(() => 42) }
|
|
|
|
function foo4() { Promise.resolve().then(() => 42) };
|
|
|
|
foo3();
|
|
|
|
foo4();
|
|
|
|
paused in foo3
|
|
|
|
debugger; function foo3() { Promise.resolve().^then(() => 42) }
|
|
|
|
function foo4() { Promise.resolve().then(() => 42) };
|
|
|
|
foo3();
|
|
|
|
foo4();
|
|
|
|
paused in foo3
|
|
|
|
debugger; function foo3() { Promise.resolve().then(() => 42) ^}
|
|
|
|
function foo4() { Promise.resolve().then(() => 42) };
|
|
|
|
foo3();
|
|
|
|
foo4();
|
2016-12-01 00:26:00 +00:00
|
|
|
paused in
|
2017-02-24 02:01:26 +00:00
|
|
|
debugger; function foo3() { Promise.resolve().then(() => 42) }
|
|
|
|
function foo4() { Promise.resolve().then(() => 42) };
|
|
|
|
foo3();
|
|
|
|
^foo4();
|
2017-02-23 00:05:26 +00:00
|
|
|
paused in foo4
|
2017-02-24 02:01:26 +00:00
|
|
|
debugger; function foo3() { Promise.resolve().then(() => 42) }
|
|
|
|
function foo4() { ^Promise.resolve().then(() => 42) };
|
|
|
|
foo3();
|
|
|
|
foo4();
|
2017-02-23 00:05:26 +00:00
|
|
|
paused in foo4
|
2017-02-24 02:01:26 +00:00
|
|
|
debugger; function foo3() { Promise.resolve().then(() => 42) }
|
|
|
|
function foo4() { Promise.^resolve().then(() => 42) };
|
|
|
|
foo3();
|
|
|
|
foo4();
|
|
|
|
paused in foo4
|
|
|
|
debugger; function foo3() { Promise.resolve().then(() => 42) }
|
|
|
|
function foo4() { Promise.resolve().^then(() => 42) };
|
|
|
|
foo3();
|
|
|
|
foo4();
|
|
|
|
paused in foo4
|
|
|
|
debugger; function foo3() { Promise.resolve().then(() => 42) }
|
|
|
|
function foo4() { Promise.resolve().then(() => 42) ^};
|
|
|
|
foo3();
|
|
|
|
foo4();
|
2016-12-01 00:26:00 +00:00
|
|
|
paused in
|
2017-02-24 02:01:26 +00:00
|
|
|
debugger; function foo3() { Promise.resolve().then(() => 42) }
|
|
|
|
function foo4() { Promise.resolve().then(() => 42) };
|
|
|
|
foo3();
|
2018-06-12 21:57:52 +00:00
|
|
|
foo4();^
|
2019-01-07 10:45:04 +00:00
|
|
|
paused in
|
2017-02-24 02:01:26 +00:00
|
|
|
debugger; function foo3() { Promise.resolve().then(() => ^42) }
|
|
|
|
function foo4() { Promise.resolve().then(() => 42) };
|
|
|
|
foo3();
|
|
|
|
foo4();
|
2019-01-07 10:45:04 +00:00
|
|
|
paused in
|
2017-02-24 02:01:26 +00:00
|
|
|
debugger; function foo3() { Promise.resolve().then(() => 42^) }
|
|
|
|
function foo4() { Promise.resolve().then(() => 42) };
|
|
|
|
foo3();
|
|
|
|
foo4();
|
2019-01-07 10:45:04 +00:00
|
|
|
paused in
|
2017-02-24 02:01:26 +00:00
|
|
|
debugger; function foo3() { Promise.resolve().then(() => 42) }
|
|
|
|
function foo4() { Promise.resolve().then(() => ^42) };
|
|
|
|
foo3();
|
|
|
|
foo4();
|
2019-01-07 10:45:04 +00:00
|
|
|
paused in
|
2017-02-24 02:01:26 +00:00
|
|
|
debugger; function foo3() { Promise.resolve().then(() => 42) }
|
|
|
|
function foo4() { Promise.resolve().then(() => 42^) };
|
|
|
|
foo3();
|
|
|
|
foo4();
|
2016-11-04 19:59:11 +00:00
|
|
|
|
|
|
|
Running test: getPossibleBreakpointsInRangeWithOffset
|
|
|
|
Test empty range in first line.
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo(){ return Promise.resolve(); }
|
|
|
|
function boo(){ return Promise.resolve().then(() => 42); }
|
|
|
|
|
|
|
|
|
2016-11-04 19:59:11 +00:00
|
|
|
Test one character range in first line.
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo(){ #return Promise.resolve(); }
|
|
|
|
function boo(){ return Promise.resolve().then(() => 42); }
|
|
|
|
|
|
|
|
|
2016-11-04 19:59:11 +00:00
|
|
|
Test empty range in not first line.
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo(){ return Promise.resolve(); }
|
|
|
|
function boo(){ return Promise.resolve().then(() => 42); }
|
|
|
|
|
|
|
|
|
2016-11-04 19:59:11 +00:00
|
|
|
Test one character range in not first line.
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo(){ return Promise.resolve(); }
|
|
|
|
function boo(){ #return Promise.resolve().then(() => 42); }
|
|
|
|
|
|
|
|
|
2016-11-04 19:59:11 +00:00
|
|
|
Test end is undefined
|
2017-07-14 17:50:09 +00:00
|
|
|
function foo(){ #return Promise.#resolve();# }
|
|
|
|
function boo(){ #return Promise.#resolve().#then(() => #42#);# }
|
2018-06-18 07:14:06 +00:00
|
|
|
|
2018-06-12 21:57:52 +00:00
|
|
|
#
|
2016-11-04 19:59:11 +00:00
|
|
|
Test end.lineNumber > scripts.lineCount()
|
2017-07-14 17:50:09 +00:00
|
|
|
function foo(){ #return Promise.#resolve();# }
|
|
|
|
function boo(){ #return Promise.#resolve().#then(() => #42#);# }
|
2018-06-12 21:57:52 +00:00
|
|
|
|
2017-02-24 02:01:26 +00:00
|
|
|
|
2016-11-04 19:59:11 +00:00
|
|
|
Test one string
|
2017-07-14 17:50:09 +00:00
|
|
|
function foo(){ #return Promise.#resolve();# }
|
2017-02-24 02:01:26 +00:00
|
|
|
function boo(){ return Promise.resolve().then(() => 42); }
|
|
|
|
|
|
|
|
|
2016-11-04 19:59:11 +00:00
|
|
|
Test end.columnNumber > end.line.length(), should be the same as previous.
|
2017-07-14 17:50:09 +00:00
|
|
|
function foo(){ #return Promise.#resolve();# }
|
2017-02-24 02:01:26 +00:00
|
|
|
function boo(){ return Promise.resolve().then(() => 42); }
|
|
|
|
|
|
|
|
|
2016-11-04 19:59:11 +00:00
|
|
|
|
|
|
|
Running test: withOffset
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo5() { #Promise.#resolve().#then(() => #42#) #}
|
|
|
|
function foo6() { #Promise.#resolve().#then(() => #42#) #}
|
2018-06-12 21:57:52 +00:00
|
|
|
#
|
2017-02-23 00:05:26 +00:00
|
|
|
paused in foo5
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo5() { ^Promise.resolve().then(() => 42) }
|
|
|
|
function foo6() { Promise.resolve().then(() => 42) }
|
2018-06-12 21:57:52 +00:00
|
|
|
|
2017-02-23 00:05:26 +00:00
|
|
|
paused in foo5
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo5() { Promise.^resolve().then(() => 42) }
|
|
|
|
function foo6() { Promise.resolve().then(() => 42) }
|
2018-06-12 21:57:52 +00:00
|
|
|
|
2017-02-24 02:01:26 +00:00
|
|
|
paused in foo5
|
|
|
|
function foo5() { Promise.resolve().^then(() => 42) }
|
|
|
|
function foo6() { Promise.resolve().then(() => 42) }
|
2018-06-12 21:57:52 +00:00
|
|
|
|
2017-02-24 02:01:26 +00:00
|
|
|
paused in foo5
|
|
|
|
function foo5() { Promise.resolve().then(() => 42) ^}
|
|
|
|
function foo6() { Promise.resolve().then(() => 42) }
|
2018-06-12 21:57:52 +00:00
|
|
|
|
2017-02-23 00:05:26 +00:00
|
|
|
paused in foo6
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo5() { Promise.resolve().then(() => 42) }
|
|
|
|
function foo6() { ^Promise.resolve().then(() => 42) }
|
2018-06-12 21:57:52 +00:00
|
|
|
|
2017-02-23 00:05:26 +00:00
|
|
|
paused in foo6
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo5() { Promise.resolve().then(() => 42) }
|
|
|
|
function foo6() { Promise.^resolve().then(() => 42) }
|
2018-06-12 21:57:52 +00:00
|
|
|
|
2017-02-24 02:01:26 +00:00
|
|
|
paused in foo6
|
|
|
|
function foo5() { Promise.resolve().then(() => 42) }
|
|
|
|
function foo6() { Promise.resolve().^then(() => 42) }
|
2018-06-12 21:57:52 +00:00
|
|
|
|
2017-02-24 02:01:26 +00:00
|
|
|
paused in foo6
|
|
|
|
function foo5() { Promise.resolve().then(() => 42) }
|
|
|
|
function foo6() { Promise.resolve().then(() => 42) ^}
|
2018-06-12 21:57:52 +00:00
|
|
|
|
2019-01-07 10:45:04 +00:00
|
|
|
paused in
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo5() { Promise.resolve().then(() => ^42) }
|
|
|
|
function foo6() { Promise.resolve().then(() => 42) }
|
2018-06-12 21:57:52 +00:00
|
|
|
|
2019-01-07 10:45:04 +00:00
|
|
|
paused in
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo5() { Promise.resolve().then(() => 42^) }
|
|
|
|
function foo6() { Promise.resolve().then(() => 42) }
|
2018-06-12 21:57:52 +00:00
|
|
|
|
2019-01-07 10:45:04 +00:00
|
|
|
paused in
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo5() { Promise.resolve().then(() => 42) }
|
|
|
|
function foo6() { Promise.resolve().then(() => ^42) }
|
2018-06-12 21:57:52 +00:00
|
|
|
|
2019-01-07 10:45:04 +00:00
|
|
|
paused in
|
2017-02-24 02:01:26 +00:00
|
|
|
function foo5() { Promise.resolve().then(() => 42) }
|
|
|
|
function foo6() { Promise.resolve().then(() => 42^) }
|
2016-11-09 15:36:50 +00:00
|
|
|
|
2018-06-12 21:57:52 +00:00
|
|
|
|
2016-11-09 15:36:50 +00:00
|
|
|
Running test: arrowFunctionReturn
|
2017-02-24 02:01:26 +00:00
|
|
|
#() => #239#
|
2018-06-12 21:57:52 +00:00
|
|
|
#
|
2019-01-24 17:00:48 +00:00
|
|
|
function foo() { function boo() { return 239 } #}
|
|
|
|
#
|
|
|
|
function foo() { function boo() { #return 239# }; #boo #}
|
|
|
|
#
|
|
|
|
function foo() { let boo = #function() { #return 239# }; #}
|
2018-06-12 21:57:52 +00:00
|
|
|
#
|
|
|
|
#() => { #239 #}
|
|
|
|
#
|
|
|
|
function foo() { #239 #}
|
|
|
|
#
|
|
|
|
#() => #239#
|
|
|
|
#() => { #return 239# }#
|
2017-02-24 02:01:26 +00:00
|
|
|
|
|
|
|
Running test: argumentsAsCalls
|
|
|
|
function foo(){#}
|
|
|
|
function boo(){#}
|
|
|
|
function main(f1,f2){#}
|
2018-06-12 21:57:52 +00:00
|
|
|
#main(#foo(), #boo());
|
|
|
|
#
|