diff --git a/font-access/font_access_basic.tentative.https.window.js b/font-access/font_access_basic.tentative.https.window.js index 669fa31e1a1516..4e714dcf5c972c 100644 --- a/font-access/font_access_basic.tentative.https.window.js +++ b/font-access/font_access_basic.tentative.https.window.js @@ -1,8 +1,9 @@ -//META: script=/resources/testdriver.js -//META: script=/resources/testdriver-vendor.js -//META: script=resources/font-asserts.js -//META: script=resources/font-data.js -//META: script=resources/font-test-utils.js +// META: script=/resources/testdriver.js +// META: script=/resources/testdriver-vendor.js +// META: script=resources/font-asserts.js +// META: script=resources/font-data.js +// META: script=resources/font-test-utils.js +// META: timeout=long 'use strict'; @@ -23,8 +24,7 @@ font_access_test(async t => { assert_equals(typeof font.postscriptName, 'string'); assert_true( font.postscriptName.split('').every(c => (' ' <= c && c < '\x7f')), - `postscriptName should be printable ASCII: "${font.postscriptName}"` - ); + `postscriptName should be printable ASCII: "${font.postscriptName}"`); assert_equals(typeof font.fullName, 'string', 'fullName attribute type'); assert_equals(typeof font.family, 'string', 'family attribute type'); assert_equals(typeof font.style, 'string', 'style attribute type'); diff --git a/font-access/font_access_blob.tentative.https.window.js b/font-access/font_access_blob.tentative.https.window.js index 0dfe0ac9685abd..16691d0ab55ebb 100644 --- a/font-access/font_access_blob.tentative.https.window.js +++ b/font-access/font_access_blob.tentative.https.window.js @@ -1,8 +1,9 @@ -//META: script=/resources/testdriver.js -//META: script=/resources/testdriver-vendor.js -//META: script=resources/font-asserts.js -//META: script=resources/font-data.js -//META: script=resources/font-test-utils.js +// META: script=/resources/testdriver.js +// META: script=/resources/testdriver-vendor.js +// META: script=resources/font-asserts.js +// META: script=resources/font-data.js +// META: script=resources/font-test-utils.js +// META: timeout=long 'use strict'; @@ -26,7 +27,7 @@ font_access_test(async t => { const parsedData = await parseFontData(data); assert_version_info(parsedData.versionTag); assert_not_equals( - parsedData.tables.size, 0, "Should not have tables of size zero."); + parsedData.tables.size, 0, 'Should not have tables of size zero.'); assert_font_has_tables(font.postscriptName, parsedData.tables, BASE_TABLES); } }, 'FontData.blob(): blob has expected format and parsable table data.'); diff --git a/font-access/font_access_detached_iframe.tentative.https.window.js b/font-access/font_access_detached_iframe.tentative.https.window.js index bce925bfc0469e..ca8171aec037ed 100644 --- a/font-access/font_access_detached_iframe.tentative.https.window.js +++ b/font-access/font_access_detached_iframe.tentative.https.window.js @@ -1,6 +1,7 @@ -//META: script=/resources/testdriver.js -//META: script=/resources/testdriver-vendor.js -//META: script=resources/font-test-utils.js +// META: script=/resources/testdriver.js +// META: script=/resources/testdriver-vendor.js +// META: script=resources/font-test-utils.js +// META: timeout=long 'use strict'; diff --git a/font-access/font_access_permission.tentative.https.window.js b/font-access/font_access_permission.tentative.https.window.js index cb7aabfc6b0e64..fbd0d1d885b7fa 100644 --- a/font-access/font_access_permission.tentative.https.window.js +++ b/font-access/font_access_permission.tentative.https.window.js @@ -1,5 +1,6 @@ -//META: script=/resources/testdriver.js -//META: script=/resources/testdriver-vendor.js +// META: script=/resources/testdriver.js +// META: script=/resources/testdriver-vendor.js +// META: timeout=long 'use strict'; diff --git a/font-access/font_access_query_select.tentative.https.window.js b/font-access/font_access_query_select.tentative.https.window.js index 86ddb49060554b..df89ea7938bc57 100644 --- a/font-access/font_access_query_select.tentative.https.window.js +++ b/font-access/font_access_query_select.tentative.https.window.js @@ -1,8 +1,9 @@ -//META: script=/resources/testdriver.js -//META: script=/resources/testdriver-vendor.js -//META: script=resources/font-asserts.js -//META: script=resources/font-data.js -//META: script=resources/font-test-utils.js +// META: script=/resources/testdriver.js +// META: script=/resources/testdriver-vendor.js +// META: script=resources/font-asserts.js +// META: script=resources/font-data.js +// META: script=resources/font-test-utils.js +// META: timeout=long font_access_test(async t => { const testData = getTestData(); @@ -10,9 +11,7 @@ font_access_test(async t => { testData.size, 1, 'Need a least one test font data.'); const testFont = testData.values().next().value; - const queryInput = { - postscriptNames: [testFont.postscriptName] - }; + const queryInput = {postscriptNames: [testFont.postscriptName]}; const fonts = await self.queryLocalFonts(queryInput); assert_equals( @@ -21,9 +20,7 @@ font_access_test(async t => { }, 'queryLocalFonts(): valid postscript name in QueryOptions'); font_access_test(async t => { - const queryInput = { - postscriptNames: ['invalid_postscript_name'] - }; + const queryInput = {postscriptNames: ['invalid_postscript_name']}; const fonts = await self.queryLocalFonts(queryInput); assert_equals( @@ -40,27 +37,23 @@ font_access_test(async t => { }, 'queryLocalFonts(): empty object for QueryOptions.postscriptNames'); font_access_test(async t => { - const queryInput = { - invalidFieldName: [] - }; + const queryInput = {invalidFieldName: []}; const fonts = await self.queryLocalFonts(queryInput); assert_greater_than_equal( fonts.length, 1, 'All available fonts should be returned when an invalid field name for ' + - 'QueryOptions is passed.'); + 'QueryOptions is passed.'); }, 'queryLocalFonts(): invalid QueryOptions field'); font_access_test(async t => { - const queryInput = { - postscriptNames: [] - }; + const queryInput = {postscriptNames: []}; const fonts = await self.queryLocalFonts(queryInput); assert_equals( fonts.length, 0, 'Fonts should not be selected when an empty list for ' + - 'QueryOptions.postscriptNames is passed.'); + 'QueryOptions.postscriptNames is passed.'); }, 'queryLocalFonts(): empty QueryOptions.postscriptNames list'); font_access_test(async t => { @@ -69,7 +62,7 @@ font_access_test(async t => { assert_greater_than_equal( fonts.length, 1, 'All available fonts should be returned when undefined is passed for ' + - 'input.'); + 'input.'); }, 'queryLocalFonts(): undefined QueryOptions'); const non_ascii_input = [ @@ -96,6 +89,6 @@ for (const test of non_ascii_input) { assert_equals( fonts.length, 0, 'Fonts should not be selected for non-ASCII character input: ' + - JSON.stringify(fonts)); + JSON.stringify(fonts)); }, `queryLocalFonts(): non-ASCII character input: ${JSON.stringify(test)}`); } \ No newline at end of file diff --git a/font-access/font_access_sorted.tentative.https.window.js b/font-access/font_access_sorted.tentative.https.window.js index 49933e17c8784b..4391c9270cc6df 100644 --- a/font-access/font_access_sorted.tentative.https.window.js +++ b/font-access/font_access_sorted.tentative.https.window.js @@ -1,7 +1,8 @@ -//META: script=/resources/testdriver.js -//META: script=/resources/testdriver-vendor.js -//META: script=resources/font-asserts.js -//META: script=resources/font-test-utils.js +// META: script=/resources/testdriver.js +// META: script=/resources/testdriver-vendor.js +// META: script=resources/font-asserts.js +// META: script=resources/font-test-utils.js +// META: timeout=long 'use strict'; diff --git a/font-access/permissions-policy/local-fonts-allowed-by-permissions-policy.https.sub.html b/font-access/permissions-policy/local-fonts-allowed-by-permissions-policy.https.sub.html index ed3538f657c651..4f63b6e01390d3 100644 --- a/font-access/permissions-policy/local-fonts-allowed-by-permissions-policy.https.sub.html +++ b/font-access/permissions-policy/local-fonts-allowed-by-permissions-policy.https.sub.html @@ -1,4 +1,5 @@ + diff --git a/font-access/permissions-policy/local-fonts-default-permissions-policy.https.sub.html b/font-access/permissions-policy/local-fonts-default-permissions-policy.https.sub.html index ce166b608e8195..c0cfdc070d2958 100644 --- a/font-access/permissions-policy/local-fonts-default-permissions-policy.https.sub.html +++ b/font-access/permissions-policy/local-fonts-default-permissions-policy.https.sub.html @@ -1,4 +1,5 @@ + diff --git a/font-access/permissions-policy/local-fonts-disabled-by-permissions-policy.https.sub.html b/font-access/permissions-policy/local-fonts-disabled-by-permissions-policy.https.sub.html index fed61515c3afcd..c9912c6dc3b7d7 100644 --- a/font-access/permissions-policy/local-fonts-disabled-by-permissions-policy.https.sub.html +++ b/font-access/permissions-policy/local-fonts-disabled-by-permissions-policy.https.sub.html @@ -1,4 +1,5 @@ + diff --git a/font-access/resources/font-test-utils.js b/font-access/resources/font-test-utils.js index e183b35bfa077a..9d2d915e2dfd8c 100644 --- a/font-access/resources/font-test-utils.js +++ b/font-access/resources/font-test-utils.js @@ -50,8 +50,8 @@ async function getTableData(fontBlob, numTables) { } async function getTag(blob, offset) { - return (new TextDecoder).decode( - await blob.slice(offset, offset + 4).arrayBuffer()); + return (new TextDecoder) + .decode(await blob.slice(offset, offset + 4).arrayBuffer()); } async function getUint16(blob, offset) { @@ -91,8 +91,7 @@ function isPlatformSupported() { function font_access_test(test_function, name, properties) { return promise_test(async (t) => { if (!isPlatformSupported()) { - await promise_rejects_dom( - t, 'NotSupportedError', self.queryLocalFonts()); + await promise_rejects_dom(t, 'NotSupportedError', self.queryLocalFonts()); return; } await test_driver.set_permission({name: 'local-fonts'}, 'granted');