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

Unified Diff: chrome/test/data/webui/mocha_adapter.js

Issue 1466433002: Add Settings bluetooth page test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chrome OS only Take 2 Created 5 years 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 | « chrome/test/BUILD.gn ('k') | chrome/test/data/webui/settings/bluetooth_page_browsertest_chromeos.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/mocha_adapter.js
diff --git a/chrome/test/data/webui/mocha_adapter.js b/chrome/test/data/webui/mocha_adapter.js
index 6d05f781f84fb31928f346007e5a5c5abf5fcbf3..b09a6189f61b7eac09657a0ceb5484c5a0f3c6d7 100644
--- a/chrome/test/data/webui/mocha_adapter.js
+++ b/chrome/test/data/webui/mocha_adapter.js
@@ -7,6 +7,11 @@
* mocha_adapter.js in a WebUIBrowserTest's extraLibraries array.
*/
+// NOTE: When defining TEST_F() functions that use Mocha, use 'var self = this'
+// for referencing the Test object within suite() and test() function objects
+// (instead of binding |this|), since |this| within those objects will reference
+// the Mocha Suite or Test instance.
+
/**
* Initializes a mocha reporter for the BrowserTest framework, which registers
* event listeners on the given Runner.
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/data/webui/settings/bluetooth_page_browsertest_chromeos.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698