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

Side by Side Diff: test/inspector/debugger/access-obsolete-frame.js

Issue 2891213002: [inspector] Refactor protocol-test.js (Closed)
Patch Set: comments addressed Created 3 years, 7 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 InspectorTest.addScript(` 5 let {session, contextGroup, Protocol} = InspectorTest.start('Tests that accessin g no longer valid call frames returns an error');
6
7 contextGroup.addScript(`
6 function testFunction() 8 function testFunction()
7 { 9 {
8 debugger; 10 debugger;
9 } 11 }
10 //# sourceURL=foo.js`); 12 //# sourceURL=foo.js`);
11 13
12 Protocol.Debugger.enable(); 14 Protocol.Debugger.enable();
13 15
14 Protocol.Debugger.oncePaused().then(handleDebuggerPausedOne); 16 Protocol.Debugger.oncePaused().then(handleDebuggerPausedOne);
15 17
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 { 60 {
59 if (response.error) { 61 if (response.error) {
60 if (response.error.message.indexOf("Can only perform operation while paused. ") !== -1) { 62 if (response.error.message.indexOf("Can only perform operation while paused. ") !== -1) {
61 InspectorTest.log("PASS, error message as expected"); 63 InspectorTest.log("PASS, error message as expected");
62 return; 64 return;
63 } 65 }
64 } 66 }
65 InspectorTest.log("FAIL, unexpected error message"); 67 InspectorTest.log("FAIL, unexpected error message");
66 InspectorTest.log(JSON.stringify(response)); 68 InspectorTest.log(JSON.stringify(response));
67 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698