Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /ai/writer/writer-measureInputUsage.tentative.https.window.html - WPT Dashboard Interop Dashboard
// META: title=Writer measureInputUsage
// META: script=/resources/testdriver.js
// META: script=../resources/util.js
// META: timeout=long
'use strict';
promise_test(async () => {
const writer = await createWriter();
const result = await writer.measureInputUsage(kTestPrompt);
assert_greater_than(result, 0);
}, 'Writer.measureInputUsage() returns non-empty result');