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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-setBlackboxPatterns.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-setBlackboxPatterns.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-setBlackboxPatterns.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-setBlackboxPatterns.html
deleted file mode 100644
index 07ec91327163002e21effb4693d1e0ebf3c45971..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-setBlackboxPatterns.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
-<script>
-function bar()
-{
- return 42;
-}
-</script>
-<script>
-function foo()
-{
- var a = bar();
- return a + 1;
-}
-//# sourceURL=foo.js
-</script>
-<script>
-function qwe()
-{
- var a = foo();
- return a + 1;
-}
-//# sourceURL=qwe.js
-</script>
-<script>
-function baz()
-{
- var a = qwe();
- return a + 1;
-}
-//# sourceURL=baz.js
-</script>
-<script>
-function test()
-{
- InspectorTest.sendCommand("Debugger.enable", {});
- InspectorTest.sendCommand("Debugger.setBlackboxPatterns", { patterns: [ "foo([" ] }, dumpError);
-
- function dumpError(message)
- {
- InspectorTest.log(message.error.message);
- InspectorTest.eventHandler["Debugger.paused"] = dumpStackAndRunNextCommand;
- InspectorTest.sendCommandOrDie("Debugger.setBlackboxPatterns", { patterns: [ "baz\.js", "foo\.js" ] });
- InspectorTest.sendCommandOrDie("Runtime.evaluate", { "expression": "debugger;baz()" });
- }
-
- var commands = [ "stepInto", "stepInto", "stepInto", "stepOut", "stepInto", "stepInto" ];
- function dumpStackAndRunNextCommand(message)
- {
- InspectorTest.log("Paused in");
- var callFrames = message.params.callFrames;
- for (var callFrame of callFrames)
- InspectorTest.log((callFrame.functionName || "(...)") + ":" + (callFrame.location.lineNumber + 1));
- var command = commands.shift();
- if (!command) {
- InspectorTest.completeTest();
- return;
- }
- InspectorTest.sendCommandOrDie("Debugger." + command, {});
- }
-
-}
-</script>
-</head>
-<body onLoad="runTest();"></body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698