Skip to content

Commit

Permalink
[Device Posture] Add IDLHarness test for Device Posture.
Browse files Browse the repository at this point in the history
This is just a very basic IDL test as full testing will be coming later
(we need to be able to change the posture in the tests).

Bug: 40124716
Change-Id: Ife9ee4efdc5d40cac301e0cc308111b182d4d253
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5354691
Reviewed-by: Raphael Kubo Da Costa <[email protected]>
Reviewed-by: Reilly Grant <[email protected]>
Commit-Queue: Alexis Menard <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1270447}
  • Loading branch information
darktears authored and chromium-wpt-export-bot committed Mar 8, 2024
1 parent 69e720a commit b1a2508
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions device-posture/META.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
spec: https://w3c.github.io/device-posture/
suggested_reviewers:
- reillyeon
- darktears
2 changes: 2 additions & 0 deletions device-posture/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This directory contains (tentative) tests for the
[Device Posture](https://w3c.github.io/device-posture/) specification.
12 changes: 12 additions & 0 deletions device-posture/idlharness.https.window.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

// https://w3c.github.io/device-posture/

'use strict';

idl_test(["device-posture"], ["html", "dom", "webidl"], (idl_array) => {
idl_array.add_objects({
DevicePosture: ["navigator.devicePosture"],
});
});

0 comments on commit b1a2508

Please sign in to comment.