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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-scope-skip-variables-with-empty-name.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/debugger-scope-skip-variables-with-empty-name.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-scope-skip-variables-with-empty-name.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-scope-skip-variables-with-empty-name.html
deleted file mode 100644
index a0357b3247bfaccc8c98a503d22892ce9c153aff..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-scope-skip-variables-with-empty-name.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
-<script>
-
-function testFunction()
-{
- for (var a of [1]) {
- ++a;
- debugger;
- }
-}
-
-function test()
-{
- InspectorTest.sendCommandOrDie("Debugger.enable", {});
- InspectorTest.eventHandler["Debugger.paused"] = dumpScopeOnPause;
- InspectorTest.sendCommandOrDie("Runtime.evaluate", { "expression": "testFunction()" });
-
- var waitScopeObjects = 0;
- function dumpScopeOnPause(message)
- {
- var scopeChain = message.params.callFrames[0].scopeChain;
- var localScopeObjectIds = [];
- for (var scope of scopeChain) {
- if (scope.type === "local")
- localScopeObjectIds.push(scope.object.objectId);
- }
- waitScopeObjects = localScopeObjectIds.length;
- if (!waitScopeObjects) {
- InspectorTest.completeTest();
- } else {
- for (var objectId of localScopeObjectIds)
- InspectorTest.sendCommandOrDie("Runtime.getProperties", { "objectId" : objectId }, dumpProperties);
- }
- }
-
- function dumpProperties(message)
- {
- InspectorTest.logObject(message);
- --waitScopeObjects;
- if (!waitScopeObjects)
- InspectorTest.sendCommandOrDie("Debugger.resume", {}, () => InspectorTest.completeTest());
- }
-}
-</script>
-</head>
-<body onLoad="runTest();">
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698