OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 the V8 project authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 print("Checks for console.assert"); | |
dgozman
2016/11/15 17:57:17
Checks that console.assert produces api call with
| |
6 | |
7 Protocol.Runtime.enable(); | |
8 Protocol.Runtime.onConsoleAPICalled(message => InspectorTest.logMessage(message) ); | |
9 Protocol.Runtime.evaluate({ expression: "console.assert(false)"}) | |
10 .then(() => Protocol.Runtime.evaluate({ expression: "console.assert(true)"})) | |
11 .then(() => Protocol.Runtime.evaluate({ expression: "console.assert(false, \"e rror\")"})) | |
12 .then(InspectorTest.completeTest); | |
OLD | NEW |