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

Unified Diff: LayoutTests/fast/encoding/api/legacy-encode.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/encoding/api/latin-1.html ('k') | LayoutTests/fast/encoding/api/replacement-encoding.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/encoding/api/legacy-encode.html
diff --git a/LayoutTests/fast/encoding/api/legacy-encode.html b/LayoutTests/fast/encoding/api/legacy-encode.html
deleted file mode 100644
index 0eb291aaf2b76fd5b9630b73b37ed3777763624e..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/encoding/api/legacy-encode.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<title>Encoding API: Legacy encodings</title>
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-<script src="resources/shared.js"></script>
-<script>
-
-encodings_table.forEach(function(section) {
- section.encodings.filter(function(encoding) {
- return encoding.name !== 'replacement';
- }).forEach(function(encoding) {
- if (utf_encodings.indexOf(encoding.name) !== -1) {
- test(function() {
- assert_equals(new TextDecoder(encoding.name).encoding, encoding.name);
- assert_equals(new TextEncoder(encoding.name).encoding, encoding.name);
- }, 'UTF encodings are supported for encode and decode: ' + encoding.name);
- } else {
- test(function() {
- assert_equals(new TextDecoder(encoding.name).encoding, encoding.name);
- assert_throws({name: 'RangeError'}, function() { new TextEncoder(encoding.name); });
- }, 'Non-UTF encodings supported only for decode, not encode: ' + encoding.name);
- }
- });
-});
-
-</script>
« no previous file with comments | « LayoutTests/fast/encoding/api/latin-1.html ('k') | LayoutTests/fast/encoding/api/replacement-encoding.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698