Add more tests for the remote debugger (#1667)

JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu
This commit is contained in:
Levente Orban
2017-03-20 12:38:04 +01:00
committed by László Langó
parent dd7e20c85d
commit 868ba92e02
9 changed files with 121 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
next
b do_delete.js:17
b do_delete.js:21
b do_delete.js:19
b do_delete.js:18
list
delete 2
delete 3
list
c
+22
View File
@@ -0,0 +1,22 @@
Connecting to: localhost:5001
Stopped at tests/debugger/do_delete.js:15
(jerry-debugger) next
Stopped at tests/debugger/do_delete.js:17
(jerry-debugger) b do_delete.js:17
Breakpoint 1 at tests/debugger/do_delete.js:17
(jerry-debugger) b do_delete.js:21
Breakpoint not found
(jerry-debugger) b do_delete.js:19
Breakpoint 2 at tests/debugger/do_delete.js:19
(jerry-debugger) b do_delete.js:18
Breakpoint 3 at tests/debugger/do_delete.js:18
(jerry-debugger) list
1: tests/debugger/do_delete.js:17
2: tests/debugger/do_delete.js:19
3: tests/debugger/do_delete.js:18
(jerry-debugger) delete 2
(jerry-debugger) delete 3
(jerry-debugger) list
1: tests/debugger/do_delete.js:17
(jerry-debugger) c
Connection closed.
+28
View File
@@ -0,0 +1,28 @@
// Copyright JS Foundation and other contributors, http://js.foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
print("delete tests");
var x = 10;
var y = 10;
var pi = 3.14;
function delete_test(x,y) {
var sum = x + y;
return
}
delete_test(x, y);
var z = 0;
+2
View File
@@ -0,0 +1,2 @@
help
quit
+10
View File
@@ -0,0 +1,10 @@
Connecting to: localhost:5001
Stopped at tests/debugger/do_help.js:15
(jerry-debugger) help
Documented commands (type help <topic>):
========================================
b break c delete e help n quit src
backtrace bt continue dump eval list next s step
(jerry-debugger) quit
+15
View File
@@ -0,0 +1,15 @@
// Copyright JS Foundation and other contributors, http://js.foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
print("help tests");
+4
View File
@@ -0,0 +1,4 @@
b do_list.js:18
b do_list.js:19
list
quit
+10
View File
@@ -0,0 +1,10 @@
Connecting to: localhost:5001
Stopped at tests/debugger/do_list.js:15
(jerry-debugger) b do_list.js:18
Breakpoint 1 at tests/debugger/do_list.js:18
(jerry-debugger) b do_list.js:19
Breakpoint 2 at tests/debugger/do_list.js:19
(jerry-debugger) list
1: tests/debugger/do_list.js:18
2: tests/debugger/do_list.js:19
(jerry-debugger) quit
+20
View File
@@ -0,0 +1,20 @@
// Copyright JS Foundation and other contributors, http://js.foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
print("list tests");
var x = 10;
var y = 10;
var pi = 3.14;
var z = x + y;