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

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

Issue 2018873002: Fix testharness paths in imported/wpt/* except dom and html. (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: Fatal flag for single byte encodings</title> 2 <title>Encoding API: Fatal flag for single byte encodings</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 var singleByteEncodings = [ 7 var singleByteEncodings = [
8 {encoding: 'IBM866', bad: []}, 8 {encoding: 'IBM866', bad: []},
9 {encoding: 'ISO-8859-2', bad: []}, 9 {encoding: 'ISO-8859-2', bad: []},
10 {encoding: 'ISO-8859-3', bad: [0xA5, 0xAE, 0xBE, 0xC3, 0xD0, 0xE3, 0xF0]}, 10 {encoding: 'ISO-8859-3', bad: [0xA5, 0xAE, 0xBE, 0xC3, 0xD0, 0xE3, 0xF0]},
11 {encoding: 'ISO-8859-4', bad: []}, 11 {encoding: 'ISO-8859-4', bad: []},
12 {encoding: 'ISO-8859-5', bad: []}, 12 {encoding: 'ISO-8859-5', bad: []},
13 {encoding: 'ISO-8859-6', bad: [0xA1, 0xA2, 0xA3, 0xA5, 0xA6, 0xA7, 0xA8, 0x A9, 0xAA, 0xAB, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8 , 0xB9, 0xBA, 0xBC, 0xBD, 0xBE, 0xC0, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF]}, 13 {encoding: 'ISO-8859-6', bad: [0xA1, 0xA2, 0xA3, 0xA5, 0xA6, 0xA7, 0xA8, 0x A9, 0xAA, 0xAB, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8 , 0xB9, 0xBA, 0xBC, 0xBD, 0xBE, 0xC0, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF]},
14 {encoding: 'ISO-8859-7', bad: [0xAE, 0xD2, 0xFF]}, 14 {encoding: 'ISO-8859-7', bad: [0xAE, 0xD2, 0xFF]},
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 else { 47 else {
48 test(function() { 48 test(function() {
49 assert_equals(typeof new TextDecoder(t.encoding, {fatal: true}). decode(new Uint8Array([i])), "string"); 49 assert_equals(typeof new TextDecoder(t.encoding, {fatal: true}). decode(new Uint8Array([i])), "string");
50 }, 'Not throw: ' + t.encoding + ' has a pointer ' + i); 50 }, 'Not throw: ' + t.encoding + ' has a pointer ' + i);
51 } 51 }
52 } 52 }
53 }); 53 });
54 54
55 </script> 55 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698