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

Issue 2294173002: Enable browser encoding autodetection test (Closed)

Created:
4 years, 3 months ago by Jinsuk Kim
Modified:
4 years, 3 months ago
CC:
chromium-reviews, jshin+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable browser encoding autodetection test Another attempt to enable the autodetection test that has been disabled up to now. The new autodetection lib hopefully contributed to the stability. Removed Java-side AutodetectionTest since it is essentially a duplicated test with only a subset of the test documents. With this removal, WebContents interface getEncoding() can be removed too. Notes on autodetection result: gb18030 is detected as GBK. This is acceptable because gb18030 is a superset of GBK, and the test document doesn't contain chars that appear only is gb18030. ISO-8859-8-I -> windows-1255. This is also acceptable. See https://goo.gl/bX0nxa for reference. The test documents updated to reflect the change above are of non-UTF-8 which is not handled very well by Rietveld. Will land it manually. BUG=597488 R=dtrainor@chromium.org, jshin@chromium.org, phajdan.jr@chromium.org, thestig@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/a86b22ea40a9500c77b28372718f3bb6df8261a9

Patch Set 1 #

Patch Set 2 : removed java test #

Patch Set 3 : gb18030/iso-8859-8 #

Total comments: 1

Patch Set 4 : renamed test docs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -157 lines) Patch
M chrome/android/java_sources.gni View 1 1 chunk +0 lines, -1 line 0 comments Download
D chrome/android/javatests/src/org/chromium/chrome/browser/EncodingDetectionTest.java View 1 1 chunk +0 lines, -60 lines 0 comments Download
M chrome/browser/browser_encoding_browsertest.cc View 1 2 3 3 chunks +7 lines, -19 lines 0 comments Download
A + chrome/test/data/encoding_tests/auto_detect/GBK_with_no_encoding_specified.html View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/encoding_tests/auto_detect/ISO-8859-8-I_with_no_encoding_specified.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
D chrome/test/data/encoding_tests/auto_detect/ISO-8859-8_with_no_encoding_specified.html View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download
A + chrome/test/data/encoding_tests/auto_detect/expected_results/expected_GBK_saved_from_no_encoding_specified.html View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/test/data/encoding_tests/auto_detect/expected_results/expected_ISO-8859-8-I_saved_from_no_encoding_specified.html View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/test/data/encoding_tests/auto_detect/expected_results/expected_ISO-8859-8_saved_from_no_encoding_specified.html View 1 2 3 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/test/data/encoding_tests/auto_detect/expected_results/expected_gb18030_saved_from_no_encoding_specified.html View 1 2 3 1 chunk +0 lines, -20 lines 0 comments Download
D chrome/test/data/encoding_tests/auto_detect/gb18030_with_no_encoding_specified.html View 1 2 3 1 chunk +0 lines, -20 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java View 1 2 chunks +0 lines, -6 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/WebContents.java View 1 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 31 (20 generated)
Jinsuk Kim
phajdan.jr@ please review changes in chrome/{browser, test}. dtrainor@ please review changes in chrome/android, content/.
4 years, 3 months ago (2016-08-31 09:46:13 UTC) #16
Paweł Hajdan Jr.
LGTM
4 years, 3 months ago (2016-08-31 14:38:32 UTC) #17
David Trainor- moved to gerrit
lgtm!
4 years, 3 months ago (2016-08-31 18:50:37 UTC) #18
Jinsuk Kim
thestig@chromium.org: Please review changes in chrome/browser/browser_encoding_browsertest.cc
4 years, 3 months ago (2016-08-31 20:42:11 UTC) #20
Lei Zhang
jshin: PTAL
4 years, 3 months ago (2016-08-31 21:04:33 UTC) #22
jungshik at Google
On 2016/08/31 21:04:33, Lei Zhang wrote: > jshin: PTAL LGTM. As mentioned in the CL ...
4 years, 3 months ago (2016-09-01 09:04:14 UTC) #23
jungshik at Google
LGTM again with the following nit taken care of. https://codereview.chromium.org/2294173002/diff/60001/chrome/browser/browser_encoding_browsertest.cc File chrome/browser/browser_encoding_browsertest.cc (right): https://codereview.chromium.org/2294173002/diff/60001/chrome/browser/browser_encoding_browsertest.cc#newcode208 chrome/browser/browser_encoding_browsertest.cc:208: ...
4 years, 3 months ago (2016-09-01 09:05:00 UTC) #24
Lei Zhang
rs lgtm
4 years, 3 months ago (2016-09-01 09:44:47 UTC) #25
Jinsuk Kim
Thanks for the review. - Updated CL description (ISO-8859-8 -> ISO-8859-8-I) - Renamed test htmls ...
4 years, 3 months ago (2016-09-01 23:16:08 UTC) #27
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/a86b22ea40a9500c77b28372718f3bb6df8261a9 Cr-Commit-Position: refs/heads/master@{#416120}
4 years, 3 months ago (2016-09-01 23:36:33 UTC) #29
Jinsuk Kim
4 years, 3 months ago (2016-09-01 23:38:09 UTC) #31
Message was sent while issue was closed.
Committed patchset #4 (id:80001) manually as
a86b22ea40a9500c77b28372718f3bb6df8261a9.

Powered by Google App Engine
This is Rietveld 408576698