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

Side by Side Diff: LayoutTests/fast/encoding/api/encoding-names.html

Issue 1196733003: Remove duplicate Encoding API tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Encoding API: Encoding names</title>
3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script>
5 <script src="resources/shared.js"></script>
6 <script>
7
8 test(function() {
9
10 var encodings = [
11 { label: 'utf-8', encoding: 'utf-8' },
12 { label: 'utf-16', encoding: 'utf-16le' },
13 { label: 'utf-16le', encoding: 'utf-16le' },
14 { label: 'utf-16be', encoding: 'utf-16be' },
15 { label: 'ascii', encoding: 'windows-1252' },
16 { label: 'iso-8859-1', encoding: 'windows-1252' }
17 ];
18
19 // encoding-labels.html tests the full set of names/labels; this test just
20 // exercises some common cases and case-insensitivity.
21
22 encodings.forEach(function(t) {
23 assert_equals(new TextDecoder(t.label.toLowerCase()).encoding, t.encodin g);
24 assert_equals(new TextDecoder(t.label.toUpperCase()).encoding, t.encodin g);
25 });
26
27 }, 'Encoding labels are case-insensitive');
28
29 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/encoding/api/encoding-labels.html ('k') | LayoutTests/fast/encoding/api/end-of-file.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698