Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

1.1 KB
Raw Blame
<!doctype html>
<meta charset="utf-8">
<script src="/wpt/resources/testharness.js"></script>
<script src="/wpt/resources/testharnessreport.js"></script>
<script src="/wpt/resources/moli-wpt-adapter.js"></script>
<script src="/wpt/resources/WebIDLParser.js"></script>
<script src="/wpt/resources/idlharness.js"></script>
<script>
idl_test([`
interface Blob {
  constructor(optional sequence<object> blobParts = [], optional object options = {});
  readonly attribute unsigned long long size;
  readonly attribute DOMString type;
  Promise<DOMString> text();
  Promise<ArrayBuffer> arrayBuffer();
  Promise<Uint8Array> bytes();
  ReadableStream stream();
  Blob slice(optional long long start, optional long long end, optional DOMString contentType);
};
`], [], function (idlArray) {
  idlArray.enable_function_length_assertions();
  idlArray.enable_interface_descriptor_assertions();
  idlArray.enable_operation_descriptor_assertions();
  idlArray.enable_attribute_descriptor_assertions();
  idlArray.enable_object_brand_assertions();
  idlArray.add_objects({
    Blob: ["new Blob(['hello'], { type: 'text/plain' })"]
  });
});
</script>