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

Issue 9802025: Rewrite HTML5 workers ui_tests to browser_tests. Compared to ui_tests, browser_tests are faster, le… (Closed)

Created:
8 years, 9 months ago by jam
Modified:
8 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Rewrite HTML5 workers ui_tests to browser_tests. Compared to ui_tests, browser_tests are faster, less flaky and sharded. They're also portable to content_browsertests once we have it. A bunch of these tests have bitrotted because they've been disabled for so long, so there are a number of fixes throughout (some were checked into WebKit). I haven't seen any flakiness when running them now dozens of times on my Win/Mac/Linux, so I'm renabling all disabled tests (36!). I'll keep a close eye on the tree and flakiness dashboard afterwards. BUG=98716, 48148, 69881, 70861, 59786, 36800, 35965, 36555, 101996, 34996, 16934, 22599 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=129641

Patch Set 1 #

Patch Set 2 : sync #

Patch Set 3 : sync past setting svn prop so I can try on posix #

Patch Set 4 : move browser_test to content\browser #

Patch Set 5 : svn mv isn't working, just copy #

Patch Set 6 : add directory create call needed on linux #

Total comments: 11

Patch Set 7 : review comments, sync to revision with WebKit roll, and make it filemoves since copies still didn't… #

Patch Set 8 : sync to revision with blank line at end of worker-utils.js to see if this patches on bots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+516 lines, -1144 lines) Patch
M DEPS View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 3 chunks +3 lines, -1 line 0 comments Download
M chrome/test/base/layout_test_http_server.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/layout_test_http_server.cc View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M chrome/test/base/ui_test_utils.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/ui_test_utils.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/data/workers/many_shared_workers.html View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/test/data/workers/queued_shared_worker_shutdown.html View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M chrome/test/data/workers/terminate_queued_workers.html View 1 2 3 4 5 6 2 chunks +1 line, -6 lines 0 comments Download
M chrome/test/data/workers/worker_close.html View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M chrome/test/data/workers/worker_utils.js View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_layout_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A + content/browser/worker_host/test/OWNERS View 1 2 3 5 6 7 0 chunks +-1 lines, --1 lines 0 comments Download
A + content/browser/worker_host/test/worker_browsertest.cc View 1 2 3 5 6 7 2 chunks +327 lines, -469 lines 0 comments Download
M content/test/layout_browsertest.h View 1 2 3 4 5 6 1 chunk +29 lines, -3 lines 0 comments Download
M content/test/layout_browsertest.cc View 1 2 3 4 5 6 8 chunks +124 lines, -25 lines 0 comments Download
M content/worker/DEPS View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
D content/worker/test/OWNERS View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
D content/worker/test/worker_uitest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -624 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jam
dgrogan: layout_browsertest.*. I basically made it more like layout_ui_test.* to support the more advanced needs ...
8 years, 9 months ago (2012-03-28 15:08:07 UTC) #1
jam
hmm try servers still can't patch this in, even though it's applying for me when ...
8 years, 9 months ago (2012-03-28 19:50:30 UTC) #2
jam
btw this depends on this webkit patch: http://codereview.chromium.org/9802025/
8 years, 9 months ago (2012-03-28 21:27:36 UTC) #3
jam
oops I meant to paste https://bugs.webkit.org/show_bug.cgi?id=82499
8 years, 9 months ago (2012-03-28 21:35:59 UTC) #4
jam
missed another WebKit revision, so that'll be r112447
8 years, 9 months ago (2012-03-28 22:00:48 UTC) #5
dgrogan
lgtm for content/browser/in_process_webkit/indexed_db_layout_browsertest.cc content/test/layout_browsertest.* http://codereview.chromium.org/9802025/diff/3016/content/test/layout_browsertest.cc File content/test/layout_browsertest.cc (right): http://codereview.chromium.org/9802025/diff/3016/content/test/layout_browsertest.cc#newcode113 content/test/layout_browsertest.cc:113: ASSERT_TRUE(file_util::CreateDirectory( I think you can ...
8 years, 9 months ago (2012-03-28 22:08:13 UTC) #6
Andrew T Wilson (Slow)
http://codereview.chromium.org/9802025/diff/3016/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (left): http://codereview.chromium.org/9802025/diff/3016/chrome/chrome_tests.gypi#oldcode838 chrome/chrome_tests.gypi:838: '../content/worker/test/worker_uitest.cc', Yay! http://codereview.chromium.org/9802025/diff/3016/chrome/test/data/workers/terminate_queued_workers.html File chrome/test/data/workers/terminate_queued_workers.html (left): http://codereview.chromium.org/9802025/diff/3016/chrome/test/data/workers/terminate_queued_workers.html#oldcode22 chrome/test/data/workers/terminate_queued_workers.html:22: // ...
8 years, 8 months ago (2012-03-28 22:44:09 UTC) #7
jam
http://codereview.chromium.org/9802025/diff/3016/chrome/test/data/workers/terminate_queued_workers.html File chrome/test/data/workers/terminate_queued_workers.html (left): http://codereview.chromium.org/9802025/diff/3016/chrome/test/data/workers/terminate_queued_workers.html#oldcode22 chrome/test/data/workers/terminate_queued_workers.html:22: // limit. On 2012/03/28 22:44:09, Andrew T Wilson wrote: ...
8 years, 8 months ago (2012-03-28 23:01:27 UTC) #8
Andrew T Wilson (Slow)
LGTM
8 years, 8 months ago (2012-03-28 23:08:52 UTC) #9
Andrew T Wilson (Slow)
http://codereview.chromium.org/9802025/diff/3016/chrome/test/data/workers/terminate_queued_workers.html File chrome/test/data/workers/terminate_queued_workers.html (left): http://codereview.chromium.org/9802025/diff/3016/chrome/test/data/workers/terminate_queued_workers.html#oldcode22 chrome/test/data/workers/terminate_queued_workers.html:22: // limit. Note that now this test doesn't actually ...
8 years, 8 months ago (2012-03-28 23:49:26 UTC) #10
jam
http://codereview.chromium.org/9802025/diff/3016/chrome/test/data/workers/terminate_queued_workers.html File chrome/test/data/workers/terminate_queued_workers.html (left): http://codereview.chromium.org/9802025/diff/3016/chrome/test/data/workers/terminate_queued_workers.html#oldcode22 chrome/test/data/workers/terminate_queued_workers.html:22: // limit. On 2012/03/28 23:49:27, Andrew T Wilson wrote: ...
8 years, 8 months ago (2012-03-29 01:03:41 UTC) #11
Andrew T Wilson (Slow)
8 years, 8 months ago (2012-03-29 01:10:17 UTC) #12
Yeah, shared workers don't have a terminate() function. So that's probably the
right call.

Powered by Google App Engine
This is Rietveld 408576698