Roll chrome 96 attempt 2 (#100073)
* [web] roll Chromium dep to 96.2 Roll Chromium 96.2. This is the second attempt to roll it. The previous attempt (https://github.com/flutter/flutter/pull/99725) failed due to a LUCI cache issue. * cache-bust CIPD dependency by changing its name * specify chrome_and_driver version in canvaskit tests * fix CRC corruption in kTransparentImage
This commit is contained in:
@@ -38,25 +38,11 @@ void main() {
|
||||
// TODO(ianh): this delay violates our style guide. We should instead wait for a triggering event.
|
||||
await Future<void>.delayed(const Duration(seconds: 2));
|
||||
|
||||
// A flutter web app may be rendered directly on the body of the page, or
|
||||
// inside the shadow root of the flt-glass-pane (after Flutter 2.4). To
|
||||
// make this test backwards compatible, we first need to locate the correct
|
||||
// root for the app.
|
||||
//
|
||||
// It's either the shadowRoot within flt-glass-pane, or [driver.webDriver].
|
||||
final SearchContext appRoot = await driver.webDriver.execute(
|
||||
'return document.querySelector("flt-glass-pane")?.shadowRoot;',
|
||||
final WebElement? fltSemantics = await driver.webDriver.execute(
|
||||
'return document.querySelector("flt-glass-pane")?.shadowRoot.querySelector("flt-semantics")',
|
||||
<dynamic>[],
|
||||
) as SearchContext? ?? driver.webDriver;
|
||||
|
||||
// Elements with tag "flt-semantics" would show up after enabling
|
||||
// accessibility.
|
||||
//
|
||||
// The tag used here is based on
|
||||
// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/semantics/semantics.dart#L534
|
||||
final WebElement element = await appRoot.findElement(const By.cssSelector('flt-semantics'));
|
||||
|
||||
expect(element, isNotNull);
|
||||
) as WebElement?;
|
||||
expect(fltSemantics, isNotNull);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user