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

Issue 159720: Run the DOM Storage layout tests in the UI test framework since the test shel... (Closed)

Created:
11 years, 4 months ago by jorlow
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), jam, Ben Goodger (Google)
Visibility:
Public.

Description

Run the DOM Storage layout tests in the UI test framework since the test shell doesn't hit very much of the new code. I still plan to write unit tests and we're still goign to enable the layout tests in test shell, but this is still a good way for us to test the full stack ASAP. Workers has used this technique for a while now. This CL factors out the layout test running code from the workers ui test and moves arounds directories a bit so not everything is in the "workers" directory. Doing this via a v8 extension is the right way to go long term, but I ran into a couple snags, so I think this is a good first step. TEST=none BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22466

Patch Set 1 #

Total comments: 11

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -902 lines) Patch
M DEPS View 1 2 3 1 chunk +21 lines, -12 lines 0 comments Download
M chrome/browser/in_process_webkit/dom_storage_dispatcher_host.cc View 1 chunk +2 lines, -1 line 0 comments Download
A chrome/browser/in_process_webkit/dom_storage_uitest.cc View 1 2 3 4 1 chunk +73 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
A + chrome/test/data/layout_tests/layout_test_controller.html View 1 2 3 1 chunk +17 lines, -3 lines 0 comments Download
D chrome/test/data/workers/layout_test_controller.html View 1 2 3 4 5 1 chunk +0 lines, -12 lines 0 comments Download
A + chrome/test/ui/ui_layout_test.h View 1 2 3 2 chunks +12 lines, -385 lines 0 comments Download
A + chrome/test/ui/ui_layout_test.cc View 1 2 3 7 chunks +33 lines, -214 lines 0 comments Download
M chrome/worker/worker_uitest.cc View 1 2 3 4 5 1 chunk +14 lines, -275 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jorlow
I think this is ready for review. Darin, you'll notice the lack of v8 extension ...
11 years, 4 months ago (2009-07-31 18:35:00 UTC) #1
jianli
http://codereview.chromium.org/159720/diff/1/4 File chrome/test/data/layout_tests/layout_test_controller.html (right): http://codereview.chromium.org/159720/diff/1/4#newcode22 Line 22: window.addEventListener('load', layoutTestController.OnLoadEvent, false); What do we want to ...
11 years, 4 months ago (2009-07-31 19:01:26 UTC) #2
jorlow
Changes made http://codereview.chromium.org/159720/diff/1/4 File chrome/test/data/layout_tests/layout_test_controller.html (right): http://codereview.chromium.org/159720/diff/1/4#newcode22 Line 22: window.addEventListener('load', layoutTestController.OnLoadEvent, false); On 2009/07/31 19:01:26, ...
11 years, 4 months ago (2009-07-31 19:09:05 UTC) #3
jam
lgtm http://codereview.chromium.org/159720/diff/1007/1013 File chrome/browser/in_process_webkit/dom_storage_uitest.cc (right): http://codereview.chromium.org/159720/diff/1007/1013#newcode5 Line 5: #include "chrome/common/chrome_switches.h" nit: no need to do ...
11 years, 4 months ago (2009-07-31 19:42:53 UTC) #4
jianli
LGTM. On Fri, Jul 31, 2009 at 12:09 PM, <jorlow@chromium.org> wrote: > Changes made > ...
11 years, 4 months ago (2009-07-31 20:01:04 UTC) #5
jorlow
11 years, 4 months ago (2009-07-31 20:26:03 UTC) #6
Uploaded new version.  Unfortunately, it seems some of the tests started failing
once I synced my client...will have to investigate.  :-(

http://codereview.chromium.org/159720/diff/1007/1013
File chrome/browser/in_process_webkit/dom_storage_uitest.cc (right):

http://codereview.chromium.org/159720/diff/1007/1013#newcode5
Line 5: #include "chrome/common/chrome_switches.h"
On 2009/07/31 19:42:53, John Abd-El-Malek wrote:
> nit: no need to do an 'svn mv' on this file, since diffing it with the old
> worker_uitest.cc file doesn't help much and makes it a little hard to follow.

Done.

http://codereview.chromium.org/159720/diff/1007/1015
File chrome/chrome.gyp (right):

http://codereview.chromium.org/159720/diff/1007/1015#newcode3471
Line 3471: 'test/ui/ui_layout_test.h',
On 2009/07/31 19:42:53, John Abd-El-Malek wrote:
> nit: these lists are sorted alphabetically so the cc goes first

Done.

Powered by Google App Engine
This is Rietveld 408576698