Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
- {
name: windows,
target: x86_64-pc-windows-msvc,
os: warp-windows-2025-x64-8x,
os: windows-2025,
cross: false,
command: "test",
args: "--all --tests",
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/wpt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ permissions:
jobs:
wpt:
name: "Run WPT Tests"
runs-on: warp-ubuntu-latest-arm64-16x
timeout-minutes: 15
runs-on: ubuntu-24.04-arm
timeout-minutes: 60
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -33,7 +33,6 @@ jobs:
key: "blitz-wpt-linux"
cache-all-crates: "true"
cache-workspace-crates: "true"
cache-provider: "warpbuild"
save-if: ${{ github.ref == 'refs/heads/main' }}
# fonts-tlwg-loma-otf provides a Thai font; some WPT reftests (e.g.
# css/css-text/i18n/css3-text-line-break-opclns-201.html) depend on Thai glyphs
Expand Down
6 changes: 3 additions & 3 deletions tests/blitz-tests/tests/accessibility_hidden.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn excludes_div_with_hidden_attribute() -> TestResult<()> {
not(contains((
anything(),
matches_pattern!(AccessKitNode {
role(): eq(Role::GenericContainer)
html_tag(): eq(Some("div"))
})
)))
)
Expand All @@ -59,7 +59,7 @@ fn excludes_div_with_display_none() -> TestResult<()> {
not(contains((
anything(),
matches_pattern!(AccessKitNode {
role(): eq(Role::GenericContainer)
html_tag(): eq(Some("div"))
})
)))
)
Expand All @@ -80,7 +80,7 @@ fn excludes_div_with_visibility_hidden() -> TestResult<()> {
not(contains((
anything(),
matches_pattern!(AccessKitNode {
role(): eq(Role::GenericContainer)
html_tag(): eq(Some("div"))
})
)))
)
Expand Down
4 changes: 2 additions & 2 deletions tests/blitz-tests/tests/accessibility_label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn includes_aria_labelledby_as_labelled_by_for_one_node() -> TestResult<()> {
let (label_node_id, _) = tree_update
.nodes
.iter()
.find(|(_, node)| node.role() == Role::Label)
.find(|(_, node)| node.html_tag() == Some("label"))
.expect("Label must be present in accessibility tree");
verify_that!(
tree_update.nodes,
Expand Down Expand Up @@ -87,7 +87,7 @@ fn includes_aria_labelledby_as_labelled_by_for_two_nodes() -> TestResult<()> {
tree_update
.nodes
.iter()
.find(|(_, node)| node.role() == Role::Label)
.find(|(_, node)| node.html_tag() == Some("label"))
.expect("Expected to find label another-element in the tree")
.0,
);
Expand Down
6 changes: 3 additions & 3 deletions tests/blitz-tests/tests/accessibility_roles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ fn a_semantic_page_has_no_unknown_elements() {
<footer>End</footer>
</body></html>"##;

// <html> and <body> have no roles of their own. Everything else in
// this document should map to something an assistive technology can use.
assert_eq!(unknown_tags(html), vec!["body", "html"]);
// Every element maps to something an assistive technology can use;
// <html> and <body>, with no roles of their own, are generic containers.
assert_eq!(unknown_tags(html), Vec::<String>::new());
}
Loading