tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

summarizer-create.tentative.https.window.js (524B)


      1 // META: title=Summarizer Create
      2 // META: script=/resources/testdriver.js
      3 // META: script=../resources/util.js
      4 // META: timeout=long
      5 
      6 'use strict';
      7 
      8 promise_test(async () => {
      9  assert_implements_optional("Summarizer" in self, "Summarizer is not supported");
     10  assert_equals(typeof Summarizer.create, 'function');
     11 }, 'Summarizer.create() is defined');
     12 
     13 promise_test(async t => {
     14  await testCreateMonitorCallbackThrowsError(t, createSummarizer);
     15 }, 'If monitor throws an error, Summarizer.create() rejects with that error');