Correct and simplify the cookie events browser test
The listeners were being removed in the completion callback to chrome.cookies.set instead of in the chrome.cookiesonChanged listener. Nothing guaranteed the order of these two, so the test begun failing when delete started waiting for flush in <https://chromiumcodereview.appspot.com/18032002>. Simplify the tests by using listenOnce/listenForever. BUG=302914 Review URL: https://codereview.chromium.org/25677004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226456 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment