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

Issue 201048: Support running tests under LayoutTests/http/tests/local as local file, in or... (Closed)

Created:
11 years, 3 months ago by jianli
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org
Visibility:
Public.

Description

Support running tests under LayoutTests/http/tests/local as local file, in order to mimic what run-webkit-tests does. Search "http/tests/local/" in http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/run-webkit-tests for what it does. This is needed by http/tests/local/resources/send-dragged-file.js. Turn on file URL universal access in the test_shell. Delete rebaseline results of those layout tests that pass due to this change. Also add a UI test to make sure it is not on for the browser. BUG=9275, 12882 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25985

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -148 lines) Patch
M chrome/browser/browser_uitest.cc View 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/test/data/fileurl_universalaccess.html View 1 chunk +19 lines, -0 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-mac/LayoutTests/editing/selection/4960137-expected.checksum View 3 1 chunk +0 lines, -1 line 0 comments Download
D webkit/data/layout_tests/platform/chromium-mac/LayoutTests/editing/selection/4960137-expected.png View Binary file 0 comments Download
D webkit/data/layout_tests/platform/chromium-mac/LayoutTests/editing/selection/4960137-expected.txt View 3 1 chunk +0 lines, -22 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-mac/LayoutTests/editing/selection/cleared-by-relayout-expected.txt View 3 1 chunk +0 lines, -8 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-mac/LayoutTests/editing/selection/inactive-selection-expected.txt View 3 1 chunk +0 lines, -8 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/Element/offsetLeft-offsetTop-body-quirk-expected.txt View 3 1 chunk +0 lines, -7 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/Element/offsetLeft-offsetTop-html-expected.txt View 3 1 chunk +0 lines, -6 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/HTMLDocument/document-open-return-value-expected.txt View 3 1 chunk +0 lines, -7 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/leaks/002-expected.txt View 3 1 chunk +0 lines, -7 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/loader/data-url-encoding-html-expected.txt View 3 1 chunk +0 lines, -6 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/loader/data-url-encoding-svg-expected.txt View 3 1 chunk +0 lines, -6 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-win/LayoutTests/editing/selection/cleared-by-relayout-expected.txt View 3 1 chunk +0 lines, -6 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-win/LayoutTests/editing/selection/inactive-selection-expected.txt View 3 1 chunk +0 lines, -6 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/Element/offsetLeft-offsetTop-body-quirk-expected.txt View 3 1 chunk +0 lines, -6 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/Element/offsetLeft-offsetTop-html-expected.txt View 3 1 chunk +0 lines, -5 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/HTMLDocument/document-open-return-value-expected.txt View 3 1 chunk +0 lines, -6 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/leaks/002-expected.txt View 3 1 chunk +0 lines, -4 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/loader/data-url-encoding-html-expected.txt View 3 1 chunk +0 lines, -6 lines 0 comments Download
D webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/loader/data-url-encoding-svg-expected.txt View 3 1 chunk +0 lines, -6 lines 0 comments Download
M webkit/glue/webpreferences.h View 3 2 chunks +4 lines, -1 line 0 comments Download
M webkit/glue/webpreferences.cc View 3 1 chunk +5 lines, -3 lines 0 comments Download
M webkit/tools/layout_tests/layout_package/path_utils.py View 1 2 3 1 chunk +6 lines, -3 lines 1 comment Download
M webkit/tools/layout_tests/test_expectations.txt View 3 4 chunks +9 lines, -18 lines 0 comments Download
M webkit/tools/test_shell/test_shell.cc View 2 3 1 chunk +4 lines, -0 lines 1 comment Download

Messages

Total messages: 17 (0 generated)
jianli
11 years, 3 months ago (2009-09-08 18:25:25 UTC) #1
Nicolas Sylvain
the code lgtm, but i dont think I know enough about these files to be ...
11 years, 3 months ago (2009-09-08 18:29:25 UTC) #2
jianli
11 years, 3 months ago (2009-09-08 18:47:58 UTC) #3
jianli
Ojan, can you take a look? Thanks. On Tue, Sep 8, 2009 at 11:29 AM, ...
11 years, 3 months ago (2009-09-08 18:48:23 UTC) #4
ojan
Can you include a link to the part of run-webkit-tests that we're mimicing? Maybe add ...
11 years, 3 months ago (2009-09-08 19:01:46 UTC) #5
ojan
11 years, 3 months ago (2009-09-08 19:02:19 UTC) #6
jianli
I updated the change description to include the link to run-webkit-tests. http://codereview.chromium.org/201048/diff/1/2 File webkit/tools/layout_tests/layout_package/path_utils.py (right): ...
11 years, 3 months ago (2009-09-08 21:57:13 UTC) #7
jianli
Ojan, could you please take a look again? Thanks. On Tue, Sep 8, 2009 at ...
11 years, 3 months ago (2009-09-10 00:14:44 UTC) #8
ojan
LGTM Darn, Abarth, kick and scream if you think this is a bad idea. I'm ...
11 years, 3 months ago (2009-09-10 00:39:28 UTC) #9
abarth-chromium
The current solution upstream is that DumpRenderTree turns on universal access file URLs for LayoutTests ...
11 years, 3 months ago (2009-09-10 00:54:57 UTC) #10
jianli
We're only turning on file URL universal access in test_shell for those layout tests running ...
11 years, 3 months ago (2009-09-10 01:21:18 UTC) #11
jianli
I've turned on the file URL universal access in the test shell, as we discuss. ...
11 years, 3 months ago (2009-09-11 00:32:43 UTC) #12
abarth-chromium
LGTM. Yay for deleting all those baselines and test_expectations!
11 years, 3 months ago (2009-09-11 02:39:20 UTC) #13
ojan
LGTM. Thanks for following up with this. I think this is a better end result. ...
11 years, 3 months ago (2009-09-11 03:23:04 UTC) #14
darin (slow to review)
http://codereview.chromium.org/201048/diff/8003/8005 File webkit/tools/test_shell/test_shell.cc (right): http://codereview.chromium.org/201048/diff/8003/8005#newcode429 Line 429: web_prefs_->allow_universal_access_from_file_urls = true; it seems like this should ...
11 years, 3 months ago (2009-09-11 03:41:48 UTC) #15
jianli
On Thu, Sep 10, 2009 at 8:23 PM, <ojan@chromium.org> wrote: > > LGTM. Thanks for ...
11 years, 3 months ago (2009-09-11 17:54:37 UTC) #16
jianli
11 years, 3 months ago (2009-09-11 17:55:05 UTC) #17
Fixed and landed. Thanks.

On Thu, Sep 10, 2009 at 8:41 PM, <darin@chromium.org> wrote:

>
> http://codereview.chromium.org/201048/diff/8003/8005
> File webkit/tools/test_shell/test_shell.cc (right):
>
> http://codereview.chromium.org/201048/diff/8003/8005#newcode429
> Line 429: web_prefs_->allow_universal_access_from_file_urls = true;
> it seems like this should only be set to true when running under layout
> test mode.
>
>
> http://codereview.chromium.org/201048
>

Powered by Google App Engine
This is Rietveld 408576698