Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /FileAPI/blob/Blob-newobject.any.html - WPT Dashboard Interop Dashboard
- /FileAPI/blob/Blob-newobject.any.serviceworker.html - WPT Dashboard Interop Dashboard
- /FileAPI/blob/Blob-newobject.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /FileAPI/blob/Blob-newobject.any.worker.html - WPT Dashboard Interop Dashboard
// META: title=Blob methods return new objects ([NewObject])
// META: global=window,worker
'use strict';
['stream', 'text', 'arrayBuffer', 'bytes'].forEach(method => {
test(() => {
const blob = new Blob(['PASS']);
const a = blob[method]();
const b = blob[method]();
assert_not_equals(a, b, `Blob.${method}() must return a new object`);
}, `Blob.${method}() returns [NewObject]`);
});