diff --git a/clipboard-apis/async-clipboard-cached-getType-reject.tentative.https.html b/clipboard-apis/async-clipboard-cached-getType-reject.tentative.https.html index ca2d5e31ccf79c..32e3fb0990c222 100644 --- a/clipboard-apis/async-clipboard-cached-getType-reject.tentative.https.html +++ b/clipboard-apis/async-clipboard-cached-getType-reject.tentative.https.html @@ -43,8 +43,8 @@ await waitForUserActivation(); await navigator.clipboard.write([newItem]); - // Step 5: getType() on the now-stale item should reject with DataError, + // Step 5: getType() on the now-stale item should reject with InvalidStateError, // even though the data was previously read and cached in step 3. - await promise_rejects_dom(t, 'DataError', item.getType('text/plain')); -}, 'getType() rejects with DataError on cached ClipboardItem after clipboard.write()'); + await promise_rejects_dom(t, 'InvalidStateError', item.getType('text/plain')); +}, 'getType() rejects with InvalidStateError on cached ClipboardItem after clipboard.write()'); diff --git a/clipboard-apis/async-clipboard-stale-getType-reject.tentative.https.html b/clipboard-apis/async-clipboard-stale-getType-reject.tentative.https.html index 386b201297b2af..f07de00827943d 100644 --- a/clipboard-apis/async-clipboard-stale-getType-reject.tentative.https.html +++ b/clipboard-apis/async-clipboard-stale-getType-reject.tentative.https.html @@ -41,7 +41,7 @@ await waitForUserActivation(); await navigator.clipboard.write([newItem]); - // Step 4: getType() on the stale item should reject with DataError. - await promise_rejects_dom(t, 'DataError', staleItem.getType('text/plain')); -}, 'getType() rejects with DataError on stale ClipboardItem after clipboard.write()'); + // Step 4: getType() on the stale item should reject with InvalidStateError. + await promise_rejects_dom(t, 'InvalidStateError', staleItem.getType('text/plain')); +}, 'getType() rejects with InvalidStateError on stale ClipboardItem after clipboard.write()');