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

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

Issue 2891213002: [inspector] Refactor protocol-test.js (Closed)
Patch Set: comments addressed Created 3 years, 7 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: test/inspector/runtime/console-assert.js
diff --git a/test/inspector/runtime/console-assert.js b/test/inspector/runtime/console-assert.js
index 64be5e23d33807d88e6264b2b21613e2ce3304f0..355149b2e8709d97e2597bf85112bd386267400b 100644
--- a/test/inspector/runtime/console-assert.js
+++ b/test/inspector/runtime/console-assert.js
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-InspectorTest.log("Checks that console.assert works and points to correct call frame.");
+let {session, contextGroup, Protocol} = InspectorTest.start("Checks that console.assert works and points to correct call frame.");
-InspectorTest.addScript(`
+contextGroup.addScript(`
function testFunction() {
Function.prototype.apply = () => console.error('Should never call this');
console.assert(true);

Powered by Google App Engine
This is Rietveld 408576698