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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/console/console-let-const-with-api.html

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp 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/console/console-let-const-with-api.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/console/console-let-const-with-api.html b/third_party/WebKit/LayoutTests/inspector-protocol/console/console-let-const-with-api.html
deleted file mode 100644
index 69525ed1ee4ef9ae4e4f721d8baefc4121152820..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/console/console-let-const-with-api.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
-<script>
-
-function test()
-{
- InspectorTest.sendCommand("Runtime.evaluate", { expression: "let a = 42;" }, step2);
-
- function step2(response)
- {
- failIfError(response);
- InspectorTest.log("first \"let a = 1;\" result: wasThrown = " + !!response.result.exceptionDetails);
- InspectorTest.sendCommand("Runtime.evaluate", { expression: "let a = 239;" }, step3);
- }
-
- function step3(response)
- {
- failIfError(response);
- InspectorTest.log("second \"let a = 1;\" result: wasThrown = " + !!response.result.exceptionDetails);
- if (response.result.exceptionDetails)
- InspectorTest.log("exception message: " + response.result.exceptionDetails.text + " " + response.result.exceptionDetails.exception.description);
- InspectorTest.sendCommand("Runtime.evaluate", { expression: "a" }, step4);
- }
-
- function step4(response)
- {
- failIfError(response);
- InspectorTest.log(JSON.stringify(response.result));
- checkMethod(null);
- }
-
- var methods = [ "$", "$$", "$x", "dir", "dirxml", "keys", "values", "profile", "profileEnd",
- "monitorEvents", "unmonitorEvents", "inspect", "copy", "clear", "getEventListeners",
- "debug", "undebug", "monitor", "unmonitor", "table" ];
-
- function checkMethod(response)
- {
- failIfError(response);
-
- if (response)
- InspectorTest.log(response.result.result.description);
-
- var method = methods.shift();
- if (!method)
- InspectorTest.completeTest();
-
- InspectorTest.sendCommand("Runtime.evaluate", { expression: method, includeCommandLineAPI: true }, checkMethod);
- }
-
- function failIfError(response)
- {
- if (response && response.error) {
- InspectorTest.log("FAIL: " + JSON.stringify(response.error));
- }
- }
-}
-
-</script>
-</head>
-<body onload="runTest()">
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698