Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1549)

Unified Diff: test/debugger/debug/debug-setbreakpoint.js

Issue 2566093002: [debug-wrapper] migrate some scope related tests (Closed)
Patch Set: address comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/debugger/debug/debug-scopes.js ('k') | test/debugger/debug/es6/debug-blockscopes.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/debugger/debug/debug-setbreakpoint.js
diff --git a/test/mjsunit/debug-setbreakpoint.js b/test/debugger/debug/debug-setbreakpoint.js
similarity index 85%
rename from test/mjsunit/debug-setbreakpoint.js
rename to test/debugger/debug/debug-setbreakpoint.js
index dd541f3744c5077deeda4b1bb40e8d090d41a75d..bfcab7c6fd99c805e16bf6526a9c971d235b3018 100644
--- a/test/mjsunit/debug-setbreakpoint.js
+++ b/test/debugger/debug/debug-setbreakpoint.js
@@ -25,8 +25,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Flags: --expose-debug-as debug
-// Get the Debug object exposed from the debug context global object.
Debug = debug.Debug
// Simple function which stores the last debug event.
@@ -42,26 +40,18 @@ var h_line = 0;
function listener(event, exec_state, event_data, data) {
try {
if (event == Debug.DebugEvent.Break) {
- Debug.setBreakPoint(exec_state.evaluateGlobal("f").value());
- Debug.setBreakPoint(exec_state.evaluateGlobal("h").value());
- Debug.setBreakPoint(exec_state.evaluateGlobal("f").value(), 1);
- Debug.setBreakPoint(exec_state.evaluateGlobal("f").value(), 1);
- Debug.setBreakPoint(exec_state.evaluateGlobal("f").value(),
- undefined, undefined, "i == 1");
+ if (listenerComplete) return;
- Debug.setScriptBreakPointByName("test");
- Debug.setScriptBreakPointByName("test", 1);
- Debug.setScriptBreakPointByName("test", 1, 1);
-
- Debug.setScriptBreakPointByName(f_script_id, f_line);
- Debug.setScriptBreakPointByName(g_script_id, g_line);
- Debug.setScriptBreakPointByName(h_script_id, h_line);
+ Debug.setScriptBreakPointById(f_script_id, f_line);
+ Debug.setScriptBreakPointById(g_script_id, g_line);
+ Debug.setScriptBreakPointById(h_script_id, h_line);
// Indicate that all was processed.
listenerComplete = true;
}
} catch (e) {
exception = e
+ print(e)
};
};
@@ -69,7 +59,7 @@ function listener(event, exec_state, event_data, data) {
Debug.setListener(listener);
function f() {
- a=1
+ a=1;
};
function g() {
« no previous file with comments | « test/debugger/debug/debug-scopes.js ('k') | test/debugger/debug/es6/debug-blockscopes.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698