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

Unified Diff: test/inspector/console/let-const-with-api.js

Issue 2379303002: Revert "[inspector] added inspector test runner [part 3-5]" (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « test/inspector/DEPS ('k') | test/inspector/console/let-const-with-api-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/console/let-const-with-api.js
diff --git a/test/inspector/console/let-const-with-api.js b/test/inspector/console/let-const-with-api.js
deleted file mode 100644
index e11ebeba106bb895b20f96c481978ee81269c995..0000000000000000000000000000000000000000
--- a/test/inspector/console/let-const-with-api.js
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2016 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-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 = [ "dir", "dirxml", "keys", "values", "profile", "profileEnd",
- "inspect", "copy", "clear",
- "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));
-}
« no previous file with comments | « test/inspector/DEPS ('k') | test/inspector/console/let-const-with-api-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698