|
Encoding API: Update tests and simplify constructors
Add a snapshot of the WHATWG Encoding spec's encodings.js and document
the deltas from it in shared.js. Skip testing "replacement" encodings.
Also, Simplify the constructors by just passing through a TextEncoding
object rather than digging out a string then recreating it.
No functional changes.
BUG= 277037
R=jshin@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173754
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+489 lines, -38 lines) |
Patch |
|
M |
LayoutTests/fast/encoding/api/ascii-supersets.html
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/encoding/api/ascii-supersets-expected.txt
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/encoding/api/encoding-labels.html
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
LayoutTests/fast/encoding/api/encoding-labels-expected.txt
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/encoding/api/legacy-encode-expected.txt
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/encoding/api/resources/encodings.json
|
View
|
|
1 chunk |
+453 lines, -0 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/encoding/api/resources/shared.js
|
View
|
|
5 chunks |
+23 lines, -18 lines |
0 comments
|
Download
|
|
M |
Source/modules/encoding/TextDecoder.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/modules/encoding/TextDecoder.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/modules/encoding/TextEncoder.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/modules/encoding/TextEncoder.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|