browser_viewport_domain.js (755B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 "use strict"; 6 7 // CacheKey::Viewport, CacheDomain::Viewport 8 addAccessibleTask( 9 `<div id="test">test</div>`, 10 async function (browser, docAcc) { 11 // On Linux and macOS, inconsistently, the viewport cache is populated on 12 // the DocAccessible without explicitly requesting it and is present once 13 // the document has loaded. 14 await testCachingPerPlatform(docAcc, "viewport", () => { 15 docAcc.getState({}, {}); 16 }); 17 }, 18 { 19 topLevel: true, 20 iframe: true, 21 remoteIframe: true, 22 cacheDomains: CacheDomain.None, 23 } 24 );