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); |