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

Unified Diff: test/inspector/console/console-assert.js

Issue 2505493002: [inspector] make console.assert much faster (Closed)
Patch Set: Created 4 years, 1 month 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: test/inspector/console/console-assert.js
diff --git a/test/inspector/console/console-assert.js b/test/inspector/console/console-assert.js
new file mode 100644
index 0000000000000000000000000000000000000000..fe4574cf04b5b0a319e0c975fa830ea4f5389e05
--- /dev/null
+++ b/test/inspector/console/console-assert.js
@@ -0,0 +1,12 @@
+// 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.
+
+print("Checks for console.assert");
dgozman 2016/11/15 17:57:17 Checks that console.assert produces api call with
+
+Protocol.Runtime.enable();
+Protocol.Runtime.onConsoleAPICalled(message => InspectorTest.logMessage(message));
+Protocol.Runtime.evaluate({ expression: "console.assert(false)"})
+ .then(() => Protocol.Runtime.evaluate({ expression: "console.assert(true)"}))
+ .then(() => Protocol.Runtime.evaluate({ expression: "console.assert(false, \"error\")"}))
+ .then(InspectorTest.completeTest);

Powered by Google App Engine
This is Rietveld 408576698