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

Issue 11645021: Fix flakyness in webRequest API tests (Closed)

Created:
8 years ago by battre
Modified:
7 years, 11 months ago
Reviewers:
Matt Perry
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Fix flakyness in webRequest API tests The callback function of chrome.tabs.create is called once the tab is created, not when it is loaded. If runTests() is called, it would open a tab for URL about:blank and once that is created, run the tests. The tests may call navigateAndWait which performs a navigation and waits for the completion. The chrome.tabs.onUpdated listener could be triggered by the completion of loading about:blank, however. Not by the completion of loading the URL which navigateAndWait tried to load. With this change, we wait until about:blank is fully loaded until we start executing any tests. BUG=112155 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175966

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -9 lines) Patch
M chrome/test/data/extensions/api_test/webrequest/framework.js View 2 chunks +15 lines, -9 lines 2 comments Download

Messages

Total messages: 11 (0 generated)
battre
Hi Matt, please review this CL. Thanks, Dominic https://codereview.chromium.org/11645021/diff/1/chrome/test/data/extensions/api_test/webrequest/framework.js File chrome/test/data/extensions/api_test/webrequest/framework.js (right): https://codereview.chromium.org/11645021/diff/1/chrome/test/data/extensions/api_test/webrequest/framework.js#newcode174 chrome/test/data/extensions/api_test/webrequest/framework.js:174: var ...
8 years ago (2012-12-19 17:57:57 UTC) #1
Matt Perry
lgtm https://codereview.chromium.org/11645021/diff/1/chrome/test/data/extensions/api_test/webrequest/framework.js File chrome/test/data/extensions/api_test/webrequest/framework.js (right): https://codereview.chromium.org/11645021/diff/1/chrome/test/data/extensions/api_test/webrequest/framework.js#newcode42 chrome/test/data/extensions/api_test/webrequest/framework.js:42: chrome.tabs.create({url: "about:blank"}); wow this API sucks :)
7 years, 11 months ago (2013-01-03 23:39:30 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/11645021/1
7 years, 11 months ago (2013-01-07 14:36:22 UTC) #3
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) sync_unit_tests, unit_tests
7 years, 11 months ago (2013-01-07 14:49:03 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/11645021/1
7 years, 11 months ago (2013-01-07 15:34:19 UTC) #5
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) interactive_ui_tests
7 years, 11 months ago (2013-01-07 16:43:17 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/11645021/1
7 years, 11 months ago (2013-01-07 19:11:36 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) interactive_ui_tests
7 years, 11 months ago (2013-01-07 21:21:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/11645021/1
7 years, 11 months ago (2013-01-07 23:28:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/11645021/1
7 years, 11 months ago (2013-01-09 22:47:49 UTC) #10
commit-bot: I haz the power
7 years, 11 months ago (2013-01-10 01:25:50 UTC) #11
Message was sent while issue was closed.
Change committed as 175966

Powered by Google App Engine
This is Rietveld 408576698