mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Update web-platform-tests to revision 4dbc8a0d7b1b1c032aaddc2579ec7239ad565127
This commit is contained in:
parent
40f1e188d0
commit
d1e28c482e
329 changed files with 5366 additions and 1699 deletions
|
@ -14,6 +14,9 @@
|
||||||
[Revoke blob URL after creating Request, will fetch]
|
[Revoke blob URL after creating Request, will fetch]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
[Revoke blob URL after calling fetch, fetch should succeed]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
||||||
[url-with-fetch.any.html]
|
[url-with-fetch.any.html]
|
||||||
[Untitled]
|
[Untitled]
|
||||||
|
|
File diff suppressed because it is too large
Load diff
2
tests/wpt/metadata/css/CSS2/bidi-005.xht.ini
Normal file
2
tests/wpt/metadata/css/CSS2/bidi-005.xht.ini
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[bidi-005.xht]
|
||||||
|
expected: FAIL
|
2
tests/wpt/metadata/css/CSS2/bidi-006.xht.ini
Normal file
2
tests/wpt/metadata/css/CSS2/bidi-006.xht.ini
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[bidi-006.xht]
|
||||||
|
expected: FAIL
|
2
tests/wpt/metadata/css/CSS2/bidi-007.xht.ini
Normal file
2
tests/wpt/metadata/css/CSS2/bidi-007.xht.ini
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[bidi-007.xht]
|
||||||
|
expected: FAIL
|
2
tests/wpt/metadata/css/CSS2/bidi-008.xht.ini
Normal file
2
tests/wpt/metadata/css/CSS2/bidi-008.xht.ini
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[bidi-008.xht]
|
||||||
|
expected: FAIL
|
2
tests/wpt/metadata/css/CSS2/bidi-009.xht.ini
Normal file
2
tests/wpt/metadata/css/CSS2/bidi-009.xht.ini
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[bidi-009.xht]
|
||||||
|
expected: FAIL
|
2
tests/wpt/metadata/css/CSS2/bidi-010.xht.ini
Normal file
2
tests/wpt/metadata/css/CSS2/bidi-010.xht.ini
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[bidi-010.xht]
|
||||||
|
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
||||||
[content-173.xht]
|
|
||||||
type: reftest
|
|
||||||
expected: FAIL
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
[abspos-float-with-inline-container.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-002.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
1
tests/wpt/metadata/css/CSS2/text/.#white-space-002.xht.ini
Symbolic link
1
tests/wpt/metadata/css/CSS2/text/.#white-space-002.xht.ini
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
jdm@godot.7141
|
3
tests/wpt/metadata/css/CSS2/text/white-space-001.xht.ini
Normal file
3
tests/wpt/metadata/css/CSS2/text/white-space-001.xht.ini
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-001.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
2
tests/wpt/metadata/css/CSS2/text/white-space-002.xht.ini
Normal file
2
tests/wpt/metadata/css/CSS2/text/white-space-002.xht.ini
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-002.xht]
|
||||||
|
expected: FAIL
|
2
tests/wpt/metadata/css/CSS2/text/white-space-003.xht.ini
Normal file
2
tests/wpt/metadata/css/CSS2/text/white-space-003.xht.ini
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-003.xht]
|
||||||
|
expected: FAIL
|
3
tests/wpt/metadata/css/CSS2/text/white-space-005.xht.ini
Normal file
3
tests/wpt/metadata/css/CSS2/text/white-space-005.xht.ini
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-005.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
3
tests/wpt/metadata/css/CSS2/text/white-space-006.xht.ini
Normal file
3
tests/wpt/metadata/css/CSS2/text/white-space-006.xht.ini
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-006.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
2
tests/wpt/metadata/css/CSS2/text/white-space-007.xht.ini
Normal file
2
tests/wpt/metadata/css/CSS2/text/white-space-007.xht.ini
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-007.xht]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-applies-to-001.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-applies-to-002.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-applies-to-005.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-applies-to-006.xht]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-applies-to-007.xht]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-applies-to-008.xht]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-applies-to-009.xht]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-applies-to-010.xht]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-applies-to-011.xht]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-applies-to-012.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-applies-to-013.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-applies-to-014.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-applies-to-015.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-bidirectionality-001.xht]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-pre-element-001.xht]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-001.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-002.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-003.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-004.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-008.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-009.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-010.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-011.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-012.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-019.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-020.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-021.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-022.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-023.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-024.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-025.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-026.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-027.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-028.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-029.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-030.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-031.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-032.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-033.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-034.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-035.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-036.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-037.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-038.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-039.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-040.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-041.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-processing-042.xht]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-050.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-051.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,3 @@
|
||||||
|
[white-space-processing-055.xht]
|
||||||
|
expected:
|
||||||
|
if os == "linux": FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[overflow-wrap-anywhere-001.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[overflow-wrap-anywhere-002.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[overflow-wrap-anywhere-003.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[overflow-wrap-anywhere-005.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[overflow-wrap-anywhere-span-001.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,4 @@
|
||||||
|
[overflow-wrap-anywhere-span-002.html]
|
||||||
|
[#container 1]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
[tab-size-inheritance-001.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[text-transform-full-size-kana-002.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[text-transform-full-size-kana-003.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[text-transform-full-size-kana-004.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[tab-stop-threshold-003.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[tab-stop-threshold-004.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[tab-stop-threshold-005.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[tab-stop-threshold-006.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-intrinsic-size-001.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-intrinsic-size-002.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-intrinsic-size-003.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[white-space-intrinsic-size-004.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[filtered-inline-applies-to-float.html]
|
||||||
|
expected: FAIL
|
|
@ -1,4 +1,5 @@
|
||||||
[test_media_queries.html]
|
[test_media_queries.html]
|
||||||
|
expected: ERROR
|
||||||
[subtest_1]
|
[subtest_1]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1865,3 +1866,21 @@
|
||||||
[subtest_753]
|
[subtest_753]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
[subtest_758]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[subtest_754]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[subtest_755]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[subtest_756]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[subtest_757]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[subtest_759]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
type: testharness
|
type: testharness
|
||||||
|
|
||||||
[single-byte-decoder.html?document]
|
[single-byte-decoder.html?document]
|
||||||
expected: TIMEOUT
|
expected: CRASH
|
||||||
[ISO-8859-4: iso_8859-4:1988 (document.characterSet and document.inputEncoding)]
|
[ISO-8859-4: iso_8859-4:1988 (document.characterSet and document.inputEncoding)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -5,29 +5,11 @@
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
|
|
||||||
[picture: source (max-width:500px) valid image, img valid image, resize to wide]
|
[picture: source (max-width:500px) valid image, img valid image, resize to wide]
|
||||||
expected: FAIL
|
expected: TIMEOUT
|
||||||
|
|
||||||
[picture: source (max-width:500px) valid image, img broken image, resize to narrow]
|
[picture: source (max-width:500px) valid image, img broken image, resize to narrow]
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
|
|
||||||
[picture: source (max-width:500px) valid image, img valid image, resize to narrow]
|
[picture: source (max-width:500px) valid image, img valid image, resize to narrow]
|
||||||
expected: FAIL
|
expected: TIMEOUT
|
||||||
|
|
||||||
[picture: source (max-width:500px) broken image, img valid image, resize to narrow]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[img (srcset 1 cand) valid image, resize to wide]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[picture: same URL in source (max-width:500px) and img, resize to wide]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[img (srcset 1 cand) valid image, resize to narrow]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[picture: source (max-width:500px) valid image, img broken image, resize to wide]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[picture: same URL in source (max-width:500px) and img, resize to narrow]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
[iframe_005.html]
|
||||||
|
[document.write external script into iframe write back into parent]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
[url-entry-document.window.html]
|
||||||
|
[document.open() changes document's URL to the entry settings object's responsible document's (through timeouts)]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -12,6 +12,3 @@
|
||||||
[Verifies the resolution of entry.startTime is at least 5 microseconds.]
|
[Verifies the resolution of entry.startTime is at least 5 microseconds.]
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
|
|
||||||
[Verifies the resolution of performance.now() is at least 5 microseconds.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[buffer-full-add-after-full-event.html]
|
[buffer-full-add-after-full-event.html]
|
||||||
expected: ERROR
|
expected: ERROR
|
||||||
[Test that entry was added to the buffer after a buffer full event]
|
[Test that entry was added to the buffer after a buffer full event]
|
||||||
expected: TIMEOUT
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
[realtimeanalyser-fft-scaling.html]
|
[realtimeanalyser-fft-scaling.html]
|
||||||
|
expected: TIMEOUT
|
||||||
[X 2048-point FFT peak position is not equal to 64. Got 0.]
|
[X 2048-point FFT peak position is not equal to 64. Got 0.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function doTest(idl, dom) {
|
function doTest(idl, dom) {
|
||||||
var idl_array = new IdlArray();
|
const idl_array = new IdlArray();
|
||||||
idl_array.add_untested_idls('interface Navigator {};');
|
idl_array.add_untested_idls('interface Navigator {};');
|
||||||
idl_array.add_untested_idls('interface EventTarget {};');
|
idl_array.add_untested_idls('interface EventTarget {};');
|
||||||
idl_array.add_untested_idls('dictionary PermissionDescriptor {};');
|
idl_array.add_untested_idls('dictionary PermissionDescriptor {};');
|
||||||
|
@ -25,7 +25,7 @@ function doTest(idl, dom) {
|
||||||
};
|
};
|
||||||
|
|
||||||
function fetchText(url) {
|
function fetchText(url) {
|
||||||
return fetch(url).then((response) => response.text());
|
return fetch(url).then(response => response.text());
|
||||||
}
|
}
|
||||||
|
|
||||||
promise_test(() => {
|
promise_test(() => {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<script src="/resources/testharnessreport.js"></script>
|
<script src="/resources/testharnessreport.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
test(function() {
|
test(() => {
|
||||||
assert_not_equals(navigator.clipboard, undefined);
|
assert_not_equals(navigator.clipboard, undefined);
|
||||||
assert_true(navigator.clipboard instanceof Clipboard);
|
assert_true(navigator.clipboard instanceof Clipboard);
|
||||||
assert_equals(navigator.clipboard, navigator.clipboard);
|
assert_equals(navigator.clipboard, navigator.clipboard);
|
||||||
|
@ -13,23 +13,23 @@ test(function() {
|
||||||
|
|
||||||
/* clipboard.write() */
|
/* clipboard.write() */
|
||||||
|
|
||||||
promise_test(function() {
|
promise_test(() => {
|
||||||
var dt = new DataTransfer();
|
const dt = new DataTransfer();
|
||||||
dt.items.add("Howdy", "text/plain");
|
dt.items.add("Howdy", "text/plain");
|
||||||
return navigator.clipboard.write(dt);
|
return navigator.clipboard.write(dt);
|
||||||
}, "navigator.clipboard.write(DataTransfer) succeeds");
|
}, "navigator.clipboard.write(DataTransfer) succeeds");
|
||||||
|
|
||||||
promise_test(function(t) {
|
promise_test(t => {
|
||||||
return promise_rejects(t, new TypeError(),
|
return promise_rejects(t, new TypeError(),
|
||||||
navigator.clipboard.write());
|
navigator.clipboard.write());
|
||||||
}, "navigator.clipboard.write() fails (expect DataTransfer)");
|
}, "navigator.clipboard.write() fails (expect DataTransfer)");
|
||||||
|
|
||||||
promise_test(function(t) {
|
promise_test(t => {
|
||||||
return promise_rejects(t, new TypeError(),
|
return promise_rejects(t, new TypeError(),
|
||||||
navigator.clipboard.write(null));
|
navigator.clipboard.write(null));
|
||||||
}, "navigator.clipboard.write(null) fails (expect DataTransfer)");
|
}, "navigator.clipboard.write(null) fails (expect DataTransfer)");
|
||||||
|
|
||||||
promise_test(function(t) {
|
promise_test(t => {
|
||||||
return promise_rejects(t, new TypeError(),
|
return promise_rejects(t, new TypeError(),
|
||||||
navigator.clipboard.write("Bad string"));
|
navigator.clipboard.write("Bad string"));
|
||||||
}, "navigator.clipboard.write(DOMString) fails (expect DataTransfer)");
|
}, "navigator.clipboard.write(DOMString) fails (expect DataTransfer)");
|
||||||
|
@ -37,11 +37,11 @@ promise_test(function(t) {
|
||||||
|
|
||||||
/* clipboard.writeText() */
|
/* clipboard.writeText() */
|
||||||
|
|
||||||
promise_test(function() {
|
promise_test(() => {
|
||||||
return navigator.clipboard.writeText("New clipboard text");
|
return navigator.clipboard.writeText("New clipboard text");
|
||||||
}, "navigator.clipboard.writeText(DOMString) succeeds");
|
}, "navigator.clipboard.writeText(DOMString) succeeds");
|
||||||
|
|
||||||
promise_test(function(t) {
|
promise_test(t => {
|
||||||
return promise_rejects(t, new TypeError(),
|
return promise_rejects(t, new TypeError(),
|
||||||
navigator.clipboard.writeText());
|
navigator.clipboard.writeText());
|
||||||
}, "navigator.clipboard.writeText() fails (expect DOMString)");
|
}, "navigator.clipboard.writeText() fails (expect DOMString)");
|
||||||
|
@ -49,9 +49,9 @@ promise_test(function(t) {
|
||||||
|
|
||||||
/* clipboard.read() */
|
/* clipboard.read() */
|
||||||
|
|
||||||
promise_test(function() {
|
promise_test(() => {
|
||||||
return navigator.clipboard.read()
|
return navigator.clipboard.read()
|
||||||
.then(function(result) {
|
.then(result => {
|
||||||
assert_true(result instanceof DataTransfer);
|
assert_true(result instanceof DataTransfer);
|
||||||
});
|
});
|
||||||
}, "navigator.clipboard.read() succeeds");
|
}, "navigator.clipboard.read() succeeds");
|
||||||
|
@ -59,9 +59,9 @@ promise_test(function() {
|
||||||
|
|
||||||
/* clipboard.readText() */
|
/* clipboard.readText() */
|
||||||
|
|
||||||
promise_test(function() {
|
promise_test(() => {
|
||||||
return navigator.clipboard.readText()
|
return navigator.clipboard.readText()
|
||||||
.then(function(result) {
|
.then(result => {
|
||||||
assert_equals(typeof result, "string");
|
assert_equals(typeof result, "string");
|
||||||
});
|
});
|
||||||
}, "navigator.clipboard.readText() succeeds");
|
}, "navigator.clipboard.readText() succeeds");
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<script src="/resources/testharness.js"></script>
|
<script src="/resources/testharness.js"></script>
|
||||||
<script src="/resources/testharnessreport.js"></script>
|
<script src="/resources/testharnessreport.js"></script>
|
||||||
<script>
|
<script>
|
||||||
promise_test(async (t) => {
|
promise_test(async t => {
|
||||||
const input = "Clipboard write (dt/text) -> read (dt/text) test data";
|
const input = "Clipboard write (dt/text) -> read (dt/text) test data";
|
||||||
const dt = new DataTransfer();
|
const dt = new DataTransfer();
|
||||||
dt.items.add(input, "text/plain");
|
dt.items.add(input, "text/plain");
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<script src="/resources/testharness.js"></script>
|
<script src="/resources/testharness.js"></script>
|
||||||
<script src="/resources/testharnessreport.js"></script>
|
<script src="/resources/testharnessreport.js"></script>
|
||||||
<script>
|
<script>
|
||||||
promise_test(async (t) => {
|
promise_test(async t => {
|
||||||
const input = "Clipboard write (dt/text) -> readText test data";
|
const input = "Clipboard write (dt/text) -> readText test data";
|
||||||
const dt = new DataTransfer();
|
const dt = new DataTransfer();
|
||||||
dt.items.add(input, "text/plain");
|
dt.items.add(input, "text/plain");
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue