Chromium Code Reviews| 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. |