|
|
Implement Encoding API
Initial implementation, behind the experimental features flag.
Tests are derived from my JS impl: code.google.com/p/stringencoding/
Many of the tests have FAIL results, due to a mix of:
* Mismatch between canonical encoding names
* Unsupported encodings from the spec
* Extra encodings (e.g "us-ascii") that are mapped differently in the spec
* Issues with streaming encode/decode (e.g. split UTF-16 code units)
* Possible encoder differences
In other words, there's still a lot of work to do.
BUG= 243354
R=dglazkov@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155379
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1346 lines, -76 lines) |
Patch |
 |
A |
LayoutTests/fast/encoding/api/ascii-supersets.html
|
View
|
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/ascii-supersets-expected.txt
|
View
|
|
1 chunk |
+124 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/basics.html
|
View
|
|
1 chunk |
+61 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/basics-expected.txt
|
View
|
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/byte-order-marks.html
|
View
|
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/byte-order-marks-expected.txt
|
View
|
1
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/encoding-names.html
|
View
|
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/encoding-names-expected.txt
|
View
|
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/end-of-file.html
|
View
|
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/end-of-file-expected.txt
|
View
|
1
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/fatal-flag.html
|
View
|
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/fatal-flag-expected.txt
|
View
|
1
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/legacy-encode.html
|
View
|
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/legacy-encode-expected.txt
|
View
|
|
1 chunk |
+89 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/resources/shared.js
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/streaming-decode.html
|
View
|
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/streaming-decode-expected.txt
|
View
|
|
1 chunk |
+321 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/surrogate-pairs.html
|
View
|
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/surrogate-pairs-expected.txt
|
View
|
1
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/utf-round-trip.html
|
View
|
|
1 chunk |
+97 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/encoding/api/utf-round-trip-expected.txt
|
View
|
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/webexposed/global-constructors-listing-dedicated-worker-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/webexposed/global-constructors-listing-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/webexposed/global-constructors-listing-shared-worker-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/RuntimeEnabledFeatures.in
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A + |
Source/modules/encoding/TextDecoder.h
|
View
|
1
2
3
|
1 chunk |
+22 lines, -23 lines |
0 comments
|
Download
|
 |
A + |
Source/modules/encoding/TextDecoder.cpp
|
View
|
1
2
3
|
1 chunk |
+45 lines, -28 lines |
0 comments
|
Download
|
 |
A + |
Source/modules/encoding/TextDecoder.idl
|
View
|
1
4
|
1 chunk |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
Source/modules/encoding/TextEncoder.h
|
View
|
1
|
1 chunk |
+22 lines, -14 lines |
0 comments
|
Download
|
 |
A |
Source/modules/encoding/TextEncoder.cpp
|
View
|
1
2
|
1 chunk |
+98 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
Source/modules/encoding/TextEncoder.idl
|
View
|
1
2
3
|
1 chunk |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
Source/modules/modules.gypi
|
View
|
1
2
3
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|