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

Unified Diff: LayoutTests/fast/encoding/api/streaming-decode.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
Index: LayoutTests/fast/encoding/api/streaming-decode.html
diff --git a/LayoutTests/fast/encoding/api/streaming-decode.html b/LayoutTests/fast/encoding/api/streaming-decode.html
deleted file mode 100644
index 34ffccc0161a644bda48a424fdb73612c96b8b3b..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/encoding/api/streaming-decode.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<title>Encoding API: Streaming decode</title>
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-<script src="resources/shared.js"></script>
-<script>
-
-var string = '\\x00123ABCabc\\x80\\xFF\\u0100\\u1000\\uFFFD\\uD800\\uDC00\\uDBFF\\uDFFF';
-
-utf_encodings.forEach(function (encoding) {
- for (var len = 1; len <= 5; ++len) {
- test(function() {
- var encoded = new TextEncoder(encoding).encode(string);
-
- var out = '';
- var decoder = new TextDecoder(encoding);
- for (var i = 0; i < encoded.length; i += len) {
- var sub = [];
- for (var j = i; j < encoded.length && j < i + len; ++j)
- sub.push(encoded[j]);
- out += decoder.decode(new Uint8Array(sub), {stream: true});
- }
- out += decoder.decode();
- assert_equals(out, string);
- }, 'Streaming decode: ' + encoding + ', ' + len + ' byte window');
- }
-});
-
-</script>
« no previous file with comments | « LayoutTests/fast/encoding/api/resources/shared.js ('k') | LayoutTests/fast/encoding/api/textdecoder-ignorebom.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698