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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/encoding/textdecoder-fatal-streaming.html

Issue 1990653002: Move the encoding directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Encoding API: End-of-file</title> 2 <title>Encoding API: End-of-file</title>
3 <script src="../../../resources/testharness.js"></script> 3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script> 4 <script src="../../../resources/testharnessreport.js"></script>
5 <script> 5 <script>
6 6
7 test(function() { 7 test(function() {
8 [ 8 [
9 {encoding: 'utf-8', sequence: [0xC0]}, 9 {encoding: 'utf-8', sequence: [0xC0]},
10 {encoding: 'utf-16le', sequence: [0x00]}, 10 {encoding: 'utf-16le', sequence: [0x00]},
(...skipping 30 matching lines...) Expand all
41 decoder.decode(odd, {stream: true}); 41 decoder.decode(odd, {stream: true});
42 decoder.decode(even); 42 decoder.decode(even);
43 }); 43 });
44 44
45 assert_equals(decoder.decode(even, {stream: true}), '\u0000'); 45 assert_equals(decoder.decode(even, {stream: true}), '\u0000');
46 assert_equals(decoder.decode(even), '\u0000'); 46 assert_equals(decoder.decode(even), '\u0000');
47 47
48 }, 'Fatal flag, streaming cases'); 48 }, 'Fatal flag, streaming cases');
49 49
50 </script> 50 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698