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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/access-obsolete-frame.html

Issue 2968523003: [DevTools] Migrate inspector-protocol/debugger tests to new harness (Closed)
Patch Set: all tests Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector-protocol/debugger/access-obsolete-frame.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/access-obsolete-frame.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/access-obsolete-frame.html
deleted file mode 100644
index 7d1ba5deb4b67bf306c52a459ec467d1a916a469..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/access-obsolete-frame.html
+++ /dev/null
@@ -1,76 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
-<script>
-
-function testFunction()
-{
- debugger;
-}
-
-function test()
-{
- InspectorTest.sendCommand("Debugger.enable", {});
-
- InspectorTest.eventHandler["Debugger.paused"] = handleDebuggerPausedOne;
-
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "setTimeout(testFunction, 0)" });
-
- var obsoleteTopFrameId;
-
- function handleDebuggerPausedOne(messageObject)
- {
- InspectorTest.log("Paused on 'debugger;'");
-
- var topFrame = messageObject.params.callFrames[0];
- obsoleteTopFrameId = topFrame.callFrameId;
-
- InspectorTest.eventHandler["Debugger.paused"] = undefined;
-
- InspectorTest.sendCommand("Debugger.resume", { }, callbackResume);
- }
-
- function callbackResume(response)
- {
- InspectorTest.log("resume");
- InspectorTest.log("restartFrame");
- InspectorTest.sendCommand("Debugger.restartFrame", { callFrameId: obsoleteTopFrameId }, callbackRestartFrame);
- }
-
- function callbackRestartFrame(response)
- {
- logErrorResponse(response);
- InspectorTest.log("evaluateOnFrame");
- InspectorTest.sendCommand("Debugger.evaluateOnCallFrame", { callFrameId: obsoleteTopFrameId, expression: "0"} , callbackEvaluate);
- }
-
- function callbackEvaluate(response)
- {
- logErrorResponse(response);
- InspectorTest.log("setVariableValue");
- InspectorTest.sendCommand("Debugger.setVariableValue", { callFrameId: obsoleteTopFrameId, scopeNumber: 0, variableName: "a", newValue: { value: 0 } }, callbackSetVariableValue);
- }
-
- function callbackSetVariableValue(response)
- {
- logErrorResponse(response);
- InspectorTest.completeTest();
- }
-
- function logErrorResponse(response)
- {
- if (response.error) {
- if (response.error.message.indexOf("Can only perform operation while paused.") != -1) {
- InspectorTest.log("PASS, error message as expected");
- return;
- }
- }
- InspectorTest.log("FAIL, unexpected error message");
- InspectorTest.log(JSON.stringify(response));
- }
-}
-</script>
-</head>
-<body onLoad="runTest();">
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698