Summary

Harness status: OK

Found 28 tests

Details

ResultTest NameMessage
PassClipboardItem({string, Blob}) succeeds with different types
Asserts runNo asserts ran
PassClipboardItem() succeeds with empty options
Asserts runNo asserts ran
PassClipboardItem({}) fails with empty dictionary input
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {new ClipboardItem({});}")
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:22:3)
PassClipboardItem(Blob) fails
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {new ClipboardItem(blob);}")
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:26:3)
PassClipboardItem() fails with null input
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {new ClipboardItem(null);}")
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:30:3)
PassClipboardItem() fails with no input
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {new ClipboardItem();}")
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:34:3)
Passtypes() returns correct values
Asserts run
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:40:3)
Pass
assert_equals("text/plain", "text/plain")
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:41:3)
Pass
assert_equals(2, 2)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:45:3)
Pass
assert_equals("text/plain", "text/plain")
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:46:3)
Pass
assert_equals("not a/real type", "not a/real type")
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:47:3)
PassgetType(DOMString valid type) succeeds with correct output
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:55:3)
Pass
assert_equals("hello", "hello")
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:58:3)
PassgetType(DOMString invalid type) succeeds with correct output
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:66:3)
Pass
assert_equals("this should work", "this should work")
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:69:3)
PassgetType(DOMString type) rejects correctly when querying for missing type
Asserts runNo asserts ran
FailgetType(DOMString valid type) converts DOMString to Blobassert_equals: expected (string) "text/plain" but got (undefined) undefined
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/clipboard-apis/clipboard-item.https.html:83:3)
Asserts run
Fail
assert_equals(undefined, "text/plain")
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:83:3)
FailgetType(DOMString invalid type) converts DOMString to Blobassert_equals: expected (string) "not a/real type" but got (undefined) undefined
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/clipboard-apis/clipboard-item.https.html:93:3)
Asserts run
Fail
assert_equals(undefined, "not a/real type")
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:93:3)
Passsupports(text/plain) returns true
Asserts run
Pass
assert_equals(true, true)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)
Passsupports(text/html) returns true
Asserts run
Pass
assert_equals(true, true)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)
Passsupports(image/png) returns true
Asserts run
Pass
assert_equals(true, true)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)
Failsupports(text/uri-list) returns trueassert_equals: expected true but got false
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/clipboard-apis/clipboard-item.https.html:121:5)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:738:36
    at new Promise (<anonymous>)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:737:20
Asserts run
Fail
assert_equals(false, true)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)
Passsupports(image/svg+xml) returns true
Asserts run
Pass
assert_equals(true, true)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)
Passsupports(web foo/bar) returns true
Asserts run
Pass
assert_equals(true, true)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)
Passsupports(web text/html) returns true
Asserts run
Pass
assert_equals(true, true)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)
Passsupports(web ) returns false
Asserts run
Pass
assert_equals(false, false)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)
Passsupports(web) returns false
Asserts run
Pass
assert_equals(false, false)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)
Passsupports(web foo) returns false
Asserts run
Pass
assert_equals(false, false)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)
Passsupports(foo/bar) returns false
Asserts run
Pass
assert_equals(false, false)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)
Passsupports(weB text/html) returns false
Asserts run
Pass
assert_equals(false, false)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)
Passsupports( web text/html) returns false
Asserts run
Pass
assert_equals(false, false)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)
Passsupports(not a/real type) returns false
Asserts run
Pass
assert_equals(false, false)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)
Passsupports() returns false
Asserts run
Pass
assert_equals(false, false)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)
Passsupports( ) returns false
Asserts run
Pass
assert_equals(false, false)
    at Test.<anonymous> ( /clipboard-apis/clipboard-item.https.html:121:5)