Changeset 266533 in webkit


Ignore:
Timestamp:
Sep 3, 2020, 10:53:01 AM (5 years ago)
Author:
achristensen@apple.com
Message:

Implement TextEncoder's encodeInto()
https://bugs.webkit.org/show_bug.cgi?id=193274

Reviewed by Darin Adler.

LayoutTests/imported/w3c:

  • web-platform-tests/encoding/encodeInto.any-expected.txt:
  • web-platform-tests/encoding/encodeInto.any.worker-expected.txt:
  • web-platform-tests/encoding/idlharness-expected.txt: Removed.
  • web-platform-tests/encoding/idlharness.any-expected.txt:

Source/WebCore:

Covered by newly passing web platform tests.

  • bindings/js/JSDOMConvertBufferSource.h:

(WebCore::JSConverter<IDLUint8Array>::convertNewlyCreated):

  • dom/TextEncoder.cpp:

(WebCore::TextEncoder::encodeInto):

  • dom/TextEncoder.h:
  • dom/TextEncoder.idl:
Location:
trunk
Files:
1 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r266528 r266533  
     12020-09-03  Alex Christensen  <achristensen@webkit.org>
     2
     3        Implement TextEncoder's encodeInto()
     4        https://bugs.webkit.org/show_bug.cgi?id=193274
     5
     6        Reviewed by Darin Adler.
     7
     8        * web-platform-tests/encoding/encodeInto.any-expected.txt:
     9        * web-platform-tests/encoding/encodeInto.any.worker-expected.txt:
     10        * web-platform-tests/encoding/idlharness-expected.txt: Removed.
     11        * web-platform-tests/encoding/idlharness.any-expected.txt:
     12
    1132020-09-03  Alex Christensen  <achristensen@webkit.org>
    214
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/encodeInto.any-expected.txt

    r264561 r266533  
    11
    2 FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    3 FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    4 FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    5 FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    6 FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    7 FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    8 FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    9 FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    10 FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    11 FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    12 FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    13 FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    14 FAIL encodeInto() into ArrayBuffer with A and destination length 10, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    15 FAIL encodeInto() into SharedArrayBuffer with A and destination length 10, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    16 FAIL encodeInto() into ArrayBuffer with A and destination length 10, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    17 FAIL encodeInto() into SharedArrayBuffer with A and destination length 10, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    18 FAIL encodeInto() into ArrayBuffer with A and destination length 10, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    19 FAIL encodeInto() into SharedArrayBuffer with A and destination length 10, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    20 FAIL encodeInto() into ArrayBuffer with A and destination length 10, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    21 FAIL encodeInto() into SharedArrayBuffer with A and destination length 10, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    22 FAIL encodeInto() into ArrayBuffer with A and destination length 10, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    23 FAIL encodeInto() into SharedArrayBuffer with A and destination length 10, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    24 FAIL encodeInto() into ArrayBuffer with A and destination length 10, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    25 FAIL encodeInto() into SharedArrayBuffer with A and destination length 10, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    26 FAIL encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    27 FAIL encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    28 FAIL encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    29 FAIL encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    30 FAIL encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    31 FAIL encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    32 FAIL encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    33 FAIL encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    34 FAIL encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    35 FAIL encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    36 FAIL encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    37 FAIL encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    38 FAIL encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    39 FAIL encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    40 FAIL encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    41 FAIL encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    42 FAIL encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    43 FAIL encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    44 FAIL encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    45 FAIL encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    46 FAIL encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    47 FAIL encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    48 FAIL encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    49 FAIL encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    50 FAIL encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    51 FAIL encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    52 FAIL encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    53 FAIL encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    54 FAIL encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    55 FAIL encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    56 FAIL encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    57 FAIL encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    58 FAIL encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    59 FAIL encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    60 FAIL encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    61 FAIL encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    62 FAIL encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    63 FAIL encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    64 FAIL encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    65 FAIL encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    66 FAIL encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    67 FAIL encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    68 FAIL encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    69 FAIL encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    70 FAIL encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    71 FAIL encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    72 FAIL encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    73 FAIL encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    74 FAIL encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    75 FAIL encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    76 FAIL encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    77 FAIL encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    78 FAIL encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    79 FAIL encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    80 FAIL encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    81 FAIL encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    82 FAIL encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    83 FAIL encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    84 FAIL encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    85 FAIL encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
     2PASS encodeInto() into ArrayBuffer with Hi and destination length 0, offset 0, filler 0
     3PASS encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler 0
     4PASS encodeInto() into ArrayBuffer with Hi and destination length 0, offset 4, filler 0
     5PASS encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler 0
     6PASS encodeInto() into ArrayBuffer with Hi and destination length 0, offset 0, filler 128
     7PASS encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler 128
     8PASS encodeInto() into ArrayBuffer with Hi and destination length 0, offset 4, filler 128
     9PASS encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler 128
     10PASS encodeInto() into ArrayBuffer with Hi and destination length 0, offset 0, filler random
     11PASS encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler random
     12PASS encodeInto() into ArrayBuffer with Hi and destination length 0, offset 4, filler random
     13PASS encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler random
     14PASS encodeInto() into ArrayBuffer with A and destination length 10, offset 0, filler 0
     15PASS encodeInto() into SharedArrayBuffer with A and destination length 10, offset 0, filler 0
     16PASS encodeInto() into ArrayBuffer with A and destination length 10, offset 4, filler 0
     17PASS encodeInto() into SharedArrayBuffer with A and destination length 10, offset 4, filler 0
     18PASS encodeInto() into ArrayBuffer with A and destination length 10, offset 0, filler 128
     19PASS encodeInto() into SharedArrayBuffer with A and destination length 10, offset 0, filler 128
     20PASS encodeInto() into ArrayBuffer with A and destination length 10, offset 4, filler 128
     21PASS encodeInto() into SharedArrayBuffer with A and destination length 10, offset 4, filler 128
     22PASS encodeInto() into ArrayBuffer with A and destination length 10, offset 0, filler random
     23PASS encodeInto() into SharedArrayBuffer with A and destination length 10, offset 0, filler random
     24PASS encodeInto() into ArrayBuffer with A and destination length 10, offset 4, filler random
     25PASS encodeInto() into SharedArrayBuffer with A and destination length 10, offset 4, filler random
     26PASS encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 0, filler 0
     27PASS encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 0, filler 0
     28PASS encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 4, filler 0
     29PASS encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 4, filler 0
     30PASS encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 0, filler 128
     31PASS encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 0, filler 128
     32PASS encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 4, filler 128
     33PASS encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 4, filler 128
     34PASS encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 0, filler random
     35PASS encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 0, filler random
     36PASS encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 4, filler random
     37PASS encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 4, filler random
     38PASS encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 0, filler 0
     39PASS encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 0, filler 0
     40PASS encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 4, filler 0
     41PASS encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 4, filler 0
     42PASS encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 0, filler 128
     43PASS encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 0, filler 128
     44PASS encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 4, filler 128
     45PASS encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 4, filler 128
     46PASS encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 0, filler random
     47PASS encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 0, filler random
     48PASS encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 4, filler random
     49PASS encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 4, filler random
     50PASS encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 0
     51PASS encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 0
     52PASS encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 0
     53PASS encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 0
     54PASS encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 128
     55PASS encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 128
     56PASS encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 128
     57PASS encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 128
     58PASS encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler random
     59PASS encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler random
     60PASS encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler random
     61PASS encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler random
     62PASS encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 0, filler 0
     63PASS encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 0, filler 0
     64PASS encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 4, filler 0
     65PASS encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 4, filler 0
     66PASS encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 0, filler 128
     67PASS encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 0, filler 128
     68PASS encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 4, filler 128
     69PASS encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 4, filler 128
     70PASS encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 0, filler random
     71PASS encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 0, filler random
     72PASS encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 4, filler random
     73PASS encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 4, filler random
     74PASS encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 0, filler 0
     75PASS encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 0, filler 0
     76PASS encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 4, filler 0
     77PASS encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 4, filler 0
     78PASS encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 0, filler 128
     79PASS encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 0, filler 128
     80PASS encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 4, filler 128
     81PASS encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 4, filler 128
     82PASS encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 0, filler random
     83PASS encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 0, filler random
     84PASS encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 4, filler random
     85PASS encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 4, filler random
    8686PASS Invalid encodeInto() destination: DataView, backed by: ArrayBuffer
    8787PASS Invalid encodeInto() destination: DataView, backed by: SharedArrayBuffer
     
    104104PASS Invalid encodeInto() destination: ArrayBuffer
    105105PASS Invalid encodeInto() destination: SharedArrayBuffer
    106 FAIL encodeInto() and a detached output buffer new TextEncoder().encodeInto is not a function. (In 'new TextEncoder().encodeInto("", view)', 'new TextEncoder().encodeInto' is undefined)
     106PASS encodeInto() and a detached output buffer
    107107
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/encodeInto.any.worker-expected.txt

    r264561 r266533  
    11
    2 FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    3 FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    4 FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    5 FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    6 FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    7 FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    8 FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    9 FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    10 FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    11 FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    12 FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    13 FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    14 FAIL encodeInto() into ArrayBuffer with A and destination length 10, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    15 FAIL encodeInto() into SharedArrayBuffer with A and destination length 10, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    16 FAIL encodeInto() into ArrayBuffer with A and destination length 10, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    17 FAIL encodeInto() into SharedArrayBuffer with A and destination length 10, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    18 FAIL encodeInto() into ArrayBuffer with A and destination length 10, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    19 FAIL encodeInto() into SharedArrayBuffer with A and destination length 10, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    20 FAIL encodeInto() into ArrayBuffer with A and destination length 10, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    21 FAIL encodeInto() into SharedArrayBuffer with A and destination length 10, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    22 FAIL encodeInto() into ArrayBuffer with A and destination length 10, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    23 FAIL encodeInto() into SharedArrayBuffer with A and destination length 10, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    24 FAIL encodeInto() into ArrayBuffer with A and destination length 10, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    25 FAIL encodeInto() into SharedArrayBuffer with A and destination length 10, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    26 FAIL encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    27 FAIL encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    28 FAIL encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    29 FAIL encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    30 FAIL encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    31 FAIL encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    32 FAIL encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    33 FAIL encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    34 FAIL encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    35 FAIL encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    36 FAIL encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    37 FAIL encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    38 FAIL encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    39 FAIL encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    40 FAIL encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    41 FAIL encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    42 FAIL encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    43 FAIL encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    44 FAIL encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    45 FAIL encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    46 FAIL encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    47 FAIL encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    48 FAIL encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    49 FAIL encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    50 FAIL encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    51 FAIL encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    52 FAIL encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    53 FAIL encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    54 FAIL encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    55 FAIL encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    56 FAIL encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    57 FAIL encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    58 FAIL encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    59 FAIL encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    60 FAIL encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    61 FAIL encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    62 FAIL encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    63 FAIL encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    64 FAIL encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    65 FAIL encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    66 FAIL encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    67 FAIL encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    68 FAIL encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    69 FAIL encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    70 FAIL encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    71 FAIL encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    72 FAIL encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    73 FAIL encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    74 FAIL encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    75 FAIL encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    76 FAIL encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    77 FAIL encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    78 FAIL encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    79 FAIL encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    80 FAIL encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    81 FAIL encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    82 FAIL encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    83 FAIL encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    84 FAIL encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
    85 FAIL encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 4, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined)
     2PASS encodeInto() into ArrayBuffer with Hi and destination length 0, offset 0, filler 0
     3PASS encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler 0
     4PASS encodeInto() into ArrayBuffer with Hi and destination length 0, offset 4, filler 0
     5PASS encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler 0
     6PASS encodeInto() into ArrayBuffer with Hi and destination length 0, offset 0, filler 128
     7PASS encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler 128
     8PASS encodeInto() into ArrayBuffer with Hi and destination length 0, offset 4, filler 128
     9PASS encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler 128
     10PASS encodeInto() into ArrayBuffer with Hi and destination length 0, offset 0, filler random
     11PASS encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler random
     12PASS encodeInto() into ArrayBuffer with Hi and destination length 0, offset 4, filler random
     13PASS encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler random
     14PASS encodeInto() into ArrayBuffer with A and destination length 10, offset 0, filler 0
     15PASS encodeInto() into SharedArrayBuffer with A and destination length 10, offset 0, filler 0
     16PASS encodeInto() into ArrayBuffer with A and destination length 10, offset 4, filler 0
     17PASS encodeInto() into SharedArrayBuffer with A and destination length 10, offset 4, filler 0
     18PASS encodeInto() into ArrayBuffer with A and destination length 10, offset 0, filler 128
     19PASS encodeInto() into SharedArrayBuffer with A and destination length 10, offset 0, filler 128
     20PASS encodeInto() into ArrayBuffer with A and destination length 10, offset 4, filler 128
     21PASS encodeInto() into SharedArrayBuffer with A and destination length 10, offset 4, filler 128
     22PASS encodeInto() into ArrayBuffer with A and destination length 10, offset 0, filler random
     23PASS encodeInto() into SharedArrayBuffer with A and destination length 10, offset 0, filler random
     24PASS encodeInto() into ArrayBuffer with A and destination length 10, offset 4, filler random
     25PASS encodeInto() into SharedArrayBuffer with A and destination length 10, offset 4, filler random
     26PASS encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 0, filler 0
     27PASS encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 0, filler 0
     28PASS encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 4, filler 0
     29PASS encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 4, filler 0
     30PASS encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 0, filler 128
     31PASS encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 0, filler 128
     32PASS encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 4, filler 128
     33PASS encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 4, filler 128
     34PASS encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 0, filler random
     35PASS encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 0, filler random
     36PASS encodeInto() into ArrayBuffer with 𝌆 and destination length 4, offset 4, filler random
     37PASS encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 4, filler random
     38PASS encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 0, filler 0
     39PASS encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 0, filler 0
     40PASS encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 4, filler 0
     41PASS encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 4, filler 0
     42PASS encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 0, filler 128
     43PASS encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 0, filler 128
     44PASS encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 4, filler 128
     45PASS encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 4, filler 128
     46PASS encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 0, filler random
     47PASS encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 0, filler random
     48PASS encodeInto() into ArrayBuffer with 𝌆A and destination length 3, offset 4, filler random
     49PASS encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 4, filler random
     50PASS encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 0
     51PASS encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 0
     52PASS encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 0
     53PASS encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 0
     54PASS encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 128
     55PASS encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler 128
     56PASS encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 128
     57PASS encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler 128
     58PASS encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler random
     59PASS encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 0, filler random
     60PASS encodeInto() into ArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler random
     61PASS encodeInto() into SharedArrayBuffer with U+d834AU+df06A¥Hi and destination length 10, offset 4, filler random
     62PASS encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 0, filler 0
     63PASS encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 0, filler 0
     64PASS encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 4, filler 0
     65PASS encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 4, filler 0
     66PASS encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 0, filler 128
     67PASS encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 0, filler 128
     68PASS encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 4, filler 128
     69PASS encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 4, filler 128
     70PASS encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 0, filler random
     71PASS encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 0, filler random
     72PASS encodeInto() into ArrayBuffer with AU+df06 and destination length 4, offset 4, filler random
     73PASS encodeInto() into SharedArrayBuffer with AU+df06 and destination length 4, offset 4, filler random
     74PASS encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 0, filler 0
     75PASS encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 0, filler 0
     76PASS encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 4, filler 0
     77PASS encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 4, filler 0
     78PASS encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 0, filler 128
     79PASS encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 0, filler 128
     80PASS encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 4, filler 128
     81PASS encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 4, filler 128
     82PASS encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 0, filler random
     83PASS encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 0, filler random
     84PASS encodeInto() into ArrayBuffer with ¥¥ and destination length 4, offset 4, filler random
     85PASS encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 4, filler random
    8686PASS Invalid encodeInto() destination: DataView, backed by: ArrayBuffer
    8787PASS Invalid encodeInto() destination: DataView, backed by: SharedArrayBuffer
     
    104104PASS Invalid encodeInto() destination: ArrayBuffer
    105105PASS Invalid encodeInto() destination: SharedArrayBuffer
    106 FAIL encodeInto() and a detached output buffer new TextEncoder().encodeInto is not a function. (In 'new TextEncoder().encodeInto("", view)', 'new TextEncoder().encodeInto' is undefined)
     106PASS encodeInto() and a detached output buffer
    107107
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness.any-expected.txt

    r266348 r266533  
    3232PASS TextEncoder interface: existence and properties of interface prototype object's @@unscopables property
    3333PASS TextEncoder interface: operation encode(optional USVString)
    34 FAIL TextEncoder interface: operation encodeInto(USVString, Uint8Array) assert_own_property: interface prototype object missing non-static operation expected property "encodeInto" missing
     34PASS TextEncoder interface: operation encodeInto(USVString, Uint8Array)
    3535PASS TextEncoder interface: attribute encoding
    3636PASS TextEncoder must be primary interface of new TextEncoder()
     
    3838PASS TextEncoder interface: new TextEncoder() must inherit property "encode(optional USVString)" with the proper type
    3939PASS TextEncoder interface: calling encode(optional USVString) on new TextEncoder() with too few arguments must throw TypeError
    40 FAIL TextEncoder interface: new TextEncoder() must inherit property "encodeInto(USVString, Uint8Array)" with the proper type assert_inherits: property "encodeInto" not found in prototype chain
    41 FAIL TextEncoder interface: calling encodeInto(USVString, Uint8Array) on new TextEncoder() with too few arguments must throw TypeError assert_inherits: property "encodeInto" not found in prototype chain
     40PASS TextEncoder interface: new TextEncoder() must inherit property "encodeInto(USVString, Uint8Array)" with the proper type
     41PASS TextEncoder interface: calling encodeInto(USVString, Uint8Array) on new TextEncoder() with too few arguments must throw TypeError
    4242PASS TextEncoder interface: new TextEncoder() must inherit property "encoding" with the proper type
    4343PASS TextDecoderStream interface: existence and properties of interface object
  • trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness.any.worker-expected.txt

    r266348 r266533  
    3232PASS TextEncoder interface: existence and properties of interface prototype object's @@unscopables property
    3333PASS TextEncoder interface: operation encode(optional USVString)
    34 FAIL TextEncoder interface: operation encodeInto(USVString, Uint8Array) assert_own_property: interface prototype object missing non-static operation expected property "encodeInto" missing
     34PASS TextEncoder interface: operation encodeInto(USVString, Uint8Array)
    3535PASS TextEncoder interface: attribute encoding
    3636PASS TextEncoder must be primary interface of new TextEncoder()
     
    3838PASS TextEncoder interface: new TextEncoder() must inherit property "encode(optional USVString)" with the proper type
    3939PASS TextEncoder interface: calling encode(optional USVString) on new TextEncoder() with too few arguments must throw TypeError
    40 FAIL TextEncoder interface: new TextEncoder() must inherit property "encodeInto(USVString, Uint8Array)" with the proper type assert_inherits: property "encodeInto" not found in prototype chain
    41 FAIL TextEncoder interface: calling encodeInto(USVString, Uint8Array) on new TextEncoder() with too few arguments must throw TypeError assert_inherits: property "encodeInto" not found in prototype chain
     40PASS TextEncoder interface: new TextEncoder() must inherit property "encodeInto(USVString, Uint8Array)" with the proper type
     41PASS TextEncoder interface: calling encodeInto(USVString, Uint8Array) on new TextEncoder() with too few arguments must throw TypeError
    4242PASS TextEncoder interface: new TextEncoder() must inherit property "encoding" with the proper type
    4343PASS TextDecoderStream interface: existence and properties of interface object
  • trunk/Source/WebCore/ChangeLog

    r266531 r266533  
     12020-09-03  Alex Christensen  <achristensen@webkit.org>
     2
     3        Implement TextEncoder's encodeInto()
     4        https://bugs.webkit.org/show_bug.cgi?id=193274
     5
     6        Reviewed by Darin Adler.
     7
     8        Covered by newly passing web platform tests.
     9
     10        * bindings/js/JSDOMConvertBufferSource.h:
     11        (WebCore::JSConverter<IDLUint8Array>::convertNewlyCreated):
     12        * dom/TextEncoder.cpp:
     13        (WebCore::TextEncoder::encodeInto):
     14        * dom/TextEncoder.h:
     15        * dom/TextEncoder.idl:
     16
    1172020-09-03  David Kilzer  <ddkilzer@apple.com>
    218
  • trunk/Source/WebCore/bindings/js/JSDOMConvertBufferSource.h

    r251425 r266533  
    259259        return toJS(&lexicalGlobalObject, &globalObject, Detail::getPtrOrRef(value));
    260260    }
     261
     262    template<typename U>
     263    static JSC::JSValue convertNewlyCreated(JSC::JSGlobalObject& lexicalGlobalObject, JSDOMGlobalObject& globalObject, U&& value)
     264    {
     265        return convert(lexicalGlobalObject, globalObject, std::forward<U>(value));
     266    }
    261267};
    262268
  • trunk/Source/WebCore/bindings/scripts/IDLAttributes.json

    r266339 r266533  
    220220        },
    221221        "Exposed": {
    222             "contextsAllowed": ["interface", "attribute", "operation", "constant"],
     222            "contextsAllowed": ["interface", "attribute", "operation", "constant", "dictionary"],
    223223            "values": ["*"],
    224224            "standard": {
  • trunk/Source/WebCore/dom/TextEncoder.cpp

    r237009 r266533  
    4444}
    4545
     46auto TextEncoder::encodeInto(String&& input, Ref<Uint8Array>&& array) -> EncodeIntoResult
     47{
     48    auto* destinationBytes = static_cast<uint8_t*>(array->baseAddress());
     49    auto capacity = array->byteLength();
     50
     51    uint64_t read = 0;
     52    uint64_t written = 0;
     53
     54    for (auto token : StringView(input).codePoints()) {
     55        if (written >= capacity) {
     56            ASSERT(written == capacity);
     57            break;
     58        }
     59        UBool sawError = false;
     60        U8_APPEND(destinationBytes, written, capacity, token, sawError);
     61            if (sawError)
     62                break;
     63        if (U_IS_BMP(token))
     64            read++;
     65        else
     66            read += 2;
     67    }
     68
     69    return { read, written };
    4670}
     71
     72}
  • trunk/Source/WebCore/dom/TextEncoder.h

    r228218 r266533  
    2525#pragma once
    2626
     27#include "JSDOMConvertBufferSource.h"
    2728#include <JavaScriptCore/Uint8Array.h>
    2829#include <wtf/Ref.h>
     
    3536class TextEncoder : public RefCounted<TextEncoder> {
    3637public:
     38    struct EncodeIntoResult {
     39        uint64_t read { 0 };
     40        uint64_t written { 0 };
     41    };
     42
    3743    static Ref<TextEncoder> create() { return adoptRef(*new TextEncoder); }
    3844    String encoding() const;
    3945    RefPtr<Uint8Array> encode(String&&) const;
     46    EncodeIntoResult encodeInto(String&&, Ref<Uint8Array>&& destination);
    4047private:
    4148    TextEncoder() { };
  • trunk/Source/WebCore/dom/TextEncoder.idl

    r263160 r266533  
    2626[
    2727    Exposed=(Window,Worker),
     28    JSGenerateToJSObject
     29] dictionary TextEncoderEncodeIntoResult {
     30  unsigned long long read;
     31  unsigned long long written;
     32};
     33
     34[
     35    Exposed=(Window,Worker),
    2836    ImplementationLacksVTable
    2937] interface TextEncoder {
     
    3240    readonly attribute DOMString encoding;
    3341
    34     // FIXME: This should have [NewObject]
    35     Uint8Array encode(optional USVString input = "");
     42    [NewObject] Uint8Array encode(optional USVString input = "");
     43    TextEncoderEncodeIntoResult encodeInto(USVString source, Uint8Array destination);
    3644};
Note: See TracChangeset for help on using the changeset viewer.