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

Unified Diff: chrome/test/data/extensions/api_test/activity_log_private/README

Issue 19014003: Modifications to activity logging end to end tests. Reduces the number of window.open calls to make… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/activity_log_private/friend/options.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/activity_log_private/README
diff --git a/chrome/test/data/extensions/api_test/activity_log_private/README b/chrome/test/data/extensions/api_test/activity_log_private/README
index a3bf77e23301459587a0599c0e940b0931b55179..8e0a15d81b4801a6c65b3b9edbdaad6f1a2e4418 100644
--- a/chrome/test/data/extensions/api_test/activity_log_private/README
+++ b/chrome/test/data/extensions/api_test/activity_log_private/README
@@ -11,11 +11,22 @@ The tests use two chrome extensions:
Adding a new test:
In friend/reply.js:
- (1) Add a function to call the chrome api calls you want to test.
- NOTE: The function should clean up any changes it made (e.g. listeners
+ (1) Add a function to call the chrome api calls you want to test. If you need
felt 2013/07/10 21:44:28 re-wrap please
karenlees 2013/07/10 23:55:46 Done.
+ to use window.open please consider adding your code to
+ executeApiCallsOnTabUpdated or executeDOMChangesOnTabUpdated. Every
+ extra window.open call will slow down the tests by 3s and cause timeouts.
+ (2) Add the name of the new function to the function map (fnMap).
+
+ IMPORTANT NOTES for adding tests:
+ - The function should clean up any changes it made (e.g. listeners
it added) before finishing. If they are not cleaned up then unexpected
behavior can happen in test cases that run after this function.
- (2) Add the name of the new function to the function map (fnMap).
+ - Calling window.open in can use up to 3 secs per call in the debug
felt 2013/07/10 21:44:28 "in can use up" -- I think you a word :)
karenlees 2013/07/10 23:55:46 Done.
+ builds. Making lots of window.open calls will therefore cause the tests
+ to timeout. If your test needs to use window.open please consider
+ adding it to one of the following existing functions:
+ - executeApiCallsOnTabUpdated
+ - executeDOMChangesOnTabUpdated
felt 2013/07/10 21:44:28 You asked me to check for clarity -- overall, I th
karenlees 2013/07/10 23:55:46 Great. Thanks!
In friend/options.html:
(1) Add a button to allow the new function to be called in manual mode.
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/activity_log_private/friend/options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698